cli

package
v0.0.0-...-c65c6a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

Types

type AddAccountsCommand

type AddAccountsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddAccountsCommand is the command line data structure for the add action of accounts

func (*AddAccountsCommand) RegisterFlags

func (cmd *AddAccountsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*AddAccountsCommand) Run

func (cmd *AddAccountsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AddAccountsCommand command.

type AddAccountsDataCommand

type AddAccountsDataCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddAccountsDataCommand is the command line data structure for the add action of accounts_data

func (*AddAccountsDataCommand) RegisterFlags

func (cmd *AddAccountsDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*AddAccountsDataCommand) Run

func (cmd *AddAccountsDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AddAccountsDataCommand command.

type AddBottlesCommand

type AddBottlesCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddBottlesCommand is the command line data structure for the add action of bottles

func (*AddBottlesCommand) RegisterFlags

func (cmd *AddBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*AddBottlesCommand) Run

func (cmd *AddBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AddBottlesCommand command.

type AddBottlesDataCommand

type AddBottlesDataCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddBottlesDataCommand is the command line data structure for the add action of bottles_data

func (*AddBottlesDataCommand) RegisterFlags

func (cmd *AddBottlesDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*AddBottlesDataCommand) Run

func (cmd *AddBottlesDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AddBottlesDataCommand command.

type ArrayResponseCommand

type ArrayResponseCommand struct {
	PrettyPrint bool
}

ArrayResponseCommand is the command line data structure for the array action of response

func (*ArrayResponseCommand) RegisterFlags

func (cmd *ArrayResponseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ArrayResponseCommand) Run

func (cmd *ArrayResponseCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ArrayResponseCommand command.

type DeleteAccountsCommand

type DeleteAccountsCommand struct {
	// 名前
	ID          int
	PrettyPrint bool
}

DeleteAccountsCommand is the command line data structure for the delete action of accounts

func (*DeleteAccountsCommand) RegisterFlags

func (cmd *DeleteAccountsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteAccountsCommand) Run

func (cmd *DeleteAccountsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteAccountsCommand command.

type DeleteAccountsDataCommand

type DeleteAccountsDataCommand struct {
	// 名前
	ID          int
	PrettyPrint bool
}

DeleteAccountsDataCommand is the command line data structure for the delete action of accounts_data

func (*DeleteAccountsDataCommand) RegisterFlags

func (cmd *DeleteAccountsDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteAccountsDataCommand) Run

func (cmd *DeleteAccountsDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteAccountsDataCommand command.

type DeleteBottlesCommand

type DeleteBottlesCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

DeleteBottlesCommand is the command line data structure for the delete action of bottles

func (*DeleteBottlesCommand) RegisterFlags

func (cmd *DeleteBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteBottlesCommand) Run

func (cmd *DeleteBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteBottlesCommand command.

type DeleteBottlesDataCommand

type DeleteBottlesDataCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

DeleteBottlesDataCommand is the command line data structure for the delete action of bottles_data

func (*DeleteBottlesDataCommand) RegisterFlags

func (cmd *DeleteBottlesDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteBottlesDataCommand) Run

func (cmd *DeleteBottlesDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteBottlesDataCommand command.

type DownloadCommand

type DownloadCommand struct {
	// OutFile is the path to the download output file.
	OutFile string
}

DownloadCommand is the command line data structure for the download command.

func (*DownloadCommand) Run

func (cmd *DownloadCommand) Run(c *client.Client, args []string) error

Run downloads files with given paths.

type EtcMethodCommand

type EtcMethodCommand struct {
	// id
	ID int
	// タイプ
	Type        int
	PrettyPrint bool
}

EtcMethodCommand is the command line data structure for the etc action of method

func (*EtcMethodCommand) RegisterFlags

func (cmd *EtcMethodCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*EtcMethodCommand) Run

func (cmd *EtcMethodCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the EtcMethodCommand command.

type FollowMethodCommand

type FollowMethodCommand struct {
	PrettyPrint bool
}

FollowMethodCommand is the command line data structure for the follow action of method

func (*FollowMethodCommand) RegisterFlags

func (cmd *FollowMethodCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*FollowMethodCommand) Run

func (cmd *FollowMethodCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the FollowMethodCommand command.

type HashResponseCommand

type HashResponseCommand struct {
	PrettyPrint bool
}

HashResponseCommand is the command line data structure for the hash action of response

func (*HashResponseCommand) RegisterFlags

func (cmd *HashResponseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*HashResponseCommand) Run

func (cmd *HashResponseCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the HashResponseCommand command.

type HelloActionsCommand

type HelloActionsCommand struct {
	// 名前
	Name        string
	PrettyPrint bool
}

HelloActionsCommand is the command line data structure for the hello action of actions

func (*HelloActionsCommand) RegisterFlags

func (cmd *HelloActionsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*HelloActionsCommand) Run

func (cmd *HelloActionsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the HelloActionsCommand command.

type IDActionsCommand

type IDActionsCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

IDActionsCommand is the command line data structure for the id action of actions

func (*IDActionsCommand) RegisterFlags

func (cmd *IDActionsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*IDActionsCommand) Run

func (cmd *IDActionsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the IDActionsCommand command.

type ListAccountsCommand

type ListAccountsCommand struct {
	PrettyPrint bool
}

ListAccountsCommand is the command line data structure for the list action of accounts

func (*ListAccountsCommand) RegisterFlags

func (cmd *ListAccountsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListAccountsCommand) Run

func (cmd *ListAccountsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListAccountsCommand command.

type ListAccountsDataCommand

type ListAccountsDataCommand struct {
	PrettyPrint bool
}

ListAccountsDataCommand is the command line data structure for the list action of accounts_data

func (*ListAccountsDataCommand) RegisterFlags

func (cmd *ListAccountsDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListAccountsDataCommand) Run

func (cmd *ListAccountsDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListAccountsDataCommand command.

type ListBottlesCommand

type ListBottlesCommand struct {
	PrettyPrint bool
}

ListBottlesCommand is the command line data structure for the list action of bottles

func (*ListBottlesCommand) RegisterFlags

func (cmd *ListBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListBottlesCommand) Run

func (cmd *ListBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListBottlesCommand command.

type ListBottlesDataCommand

type ListBottlesDataCommand struct {
	PrettyPrint bool
}

ListBottlesDataCommand is the command line data structure for the list action of bottles_data

func (*ListBottlesDataCommand) RegisterFlags

func (cmd *ListBottlesDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListBottlesDataCommand) Run

func (cmd *ListBottlesDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListBottlesDataCommand command.

type ListMethodCommand

type ListMethodCommand struct {
	PrettyPrint bool
}

ListMethodCommand is the command line data structure for the list action of method

func (*ListMethodCommand) RegisterFlags

func (cmd *ListMethodCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListMethodCommand) Run

func (cmd *ListMethodCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListMethodCommand command.

type ListRelationBottlesCommand

type ListRelationBottlesCommand struct {
	PrettyPrint bool
}

ListRelationBottlesCommand is the command line data structure for the listRelation action of bottles

func (*ListRelationBottlesCommand) RegisterFlags

func (cmd *ListRelationBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListRelationBottlesCommand) Run

func (cmd *ListRelationBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListRelationBottlesCommand command.

type ListResponseCommand

type ListResponseCommand struct {
	PrettyPrint bool
}

ListResponseCommand is the command line data structure for the list action of response

func (*ListResponseCommand) RegisterFlags

func (cmd *ListResponseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ListResponseCommand) Run

func (cmd *ListResponseCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListResponseCommand command.

type MethodMethodCommand

type MethodMethodCommand struct {
	PrettyPrint bool
}

MethodMethodCommand is the command line data structure for the method action of method

func (*MethodMethodCommand) RegisterFlags

func (cmd *MethodMethodCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*MethodMethodCommand) Run

func (cmd *MethodMethodCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the MethodMethodCommand command.

type NestedResponseCommand

type NestedResponseCommand struct {
	Test        string
	PrettyPrint bool
}

NestedResponseCommand is the command line data structure for the nested action of response

func (*NestedResponseCommand) RegisterFlags

func (cmd *NestedResponseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*NestedResponseCommand) Run

func (cmd *NestedResponseCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the NestedResponseCommand command.

type PingActionsCommand

type PingActionsCommand struct {
	PrettyPrint bool
}

PingActionsCommand is the command line data structure for the ping action of actions

func (*PingActionsCommand) RegisterFlags

func (cmd *PingActionsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*PingActionsCommand) Run

func (cmd *PingActionsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the PingActionsCommand command.

type SecuritySecurityCommand

type SecuritySecurityCommand struct {
	PrettyPrint bool
}

SecuritySecurityCommand is the command line data structure for the security action of security

func (*SecuritySecurityCommand) RegisterFlags

func (cmd *SecuritySecurityCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*SecuritySecurityCommand) Run

func (cmd *SecuritySecurityCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the SecuritySecurityCommand command.

type ShowAccountsCommand

type ShowAccountsCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

ShowAccountsCommand is the command line data structure for the show action of accounts

func (*ShowAccountsCommand) RegisterFlags

func (cmd *ShowAccountsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowAccountsCommand) Run

func (cmd *ShowAccountsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowAccountsCommand command.

type ShowAccountsDataCommand

type ShowAccountsDataCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

ShowAccountsDataCommand is the command line data structure for the show action of accounts_data

func (*ShowAccountsDataCommand) RegisterFlags

func (cmd *ShowAccountsDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowAccountsDataCommand) Run

func (cmd *ShowAccountsDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowAccountsDataCommand command.

type ShowBottlesCommand

type ShowBottlesCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

ShowBottlesCommand is the command line data structure for the show action of bottles

func (*ShowBottlesCommand) RegisterFlags

func (cmd *ShowBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowBottlesCommand) Run

func (cmd *ShowBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowBottlesCommand command.

type ShowBottlesDataCommand

type ShowBottlesDataCommand struct {
	// id
	ID          int
	PrettyPrint bool
}

ShowBottlesDataCommand is the command line data structure for the show action of bottles_data

func (*ShowBottlesDataCommand) RegisterFlags

func (cmd *ShowBottlesDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowBottlesDataCommand) Run

func (cmd *ShowBottlesDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowBottlesDataCommand command.

type ShowResponseCommand

type ShowResponseCommand struct {
	ID          string
	PrettyPrint bool
}

ShowResponseCommand is the command line data structure for the show action of response

func (*ShowResponseCommand) RegisterFlags

func (cmd *ShowResponseCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowResponseCommand) Run

func (cmd *ShowResponseCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowResponseCommand command.

type UpdateAccountsCommand

type UpdateAccountsCommand struct {
	Payload     string
	ContentType string
	// id
	ID          int
	PrettyPrint bool
}

UpdateAccountsCommand is the command line data structure for the update action of accounts

func (*UpdateAccountsCommand) RegisterFlags

func (cmd *UpdateAccountsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateAccountsCommand) Run

func (cmd *UpdateAccountsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateAccountsCommand command.

type UpdateAccountsDataCommand

type UpdateAccountsDataCommand struct {
	Payload     string
	ContentType string
	// id
	ID          int
	PrettyPrint bool
}

UpdateAccountsDataCommand is the command line data structure for the update action of accounts_data

func (*UpdateAccountsDataCommand) RegisterFlags

func (cmd *UpdateAccountsDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateAccountsDataCommand) Run

func (cmd *UpdateAccountsDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateAccountsDataCommand command.

type UpdateBottlesCommand

type UpdateBottlesCommand struct {
	Payload     string
	ContentType string
	// id
	ID          int
	PrettyPrint bool
}

UpdateBottlesCommand is the command line data structure for the update action of bottles

func (*UpdateBottlesCommand) RegisterFlags

func (cmd *UpdateBottlesCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateBottlesCommand) Run

func (cmd *UpdateBottlesCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateBottlesCommand command.

type UpdateBottlesDataCommand

type UpdateBottlesDataCommand struct {
	Payload     string
	ContentType string
	// id
	ID          int
	PrettyPrint bool
}

UpdateBottlesDataCommand is the command line data structure for the update action of bottles_data

func (*UpdateBottlesDataCommand) RegisterFlags

func (cmd *UpdateBottlesDataCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateBottlesDataCommand) Run

func (cmd *UpdateBottlesDataCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateBottlesDataCommand command.

type ValidationValidationCommand

type ValidationValidationCommand struct {
	// デフォルト値
	DefaultType string
	// メールアドレス
	Email string
	// 列挙型
	EnumType string
	// id
	ID int
	// 数字(1〜10)
	IntegerType int
	// 正規表現
	Reg string
	// 文字(1~10文字)
	StringType  string
	PrettyPrint bool
}

ValidationValidationCommand is the command line data structure for the validation action of validation

func (*ValidationValidationCommand) RegisterFlags

func (cmd *ValidationValidationCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ValidationValidationCommand) Run

func (cmd *ValidationValidationCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ValidationValidationCommand command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL