Documentation ¶
Index ¶
- func RegisterCommands(app *cobra.Command, c *client.Client)
- type CreateAccountCommand
- type CreateBottleCommand
- type DeleteAccountCommand
- type DeleteBottleCommand
- type DownloadCommand
- type HealthHealthCommand
- type ListAccountCommand
- type ListBottleCommand
- type RateBottleCommand
- type ShowAccountCommand
- type ShowBottleCommand
- type UpdateAccountCommand
- type UpdateBottleCommand
- type WatchBottleCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateAccountCommand ¶
CreateAccountCommand is the command line data structure for the create action of account
func (*CreateAccountCommand) RegisterFlags ¶
func (cmd *CreateAccountCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateBottleCommand ¶
type CreateBottleCommand struct { Payload string ContentType string // Account ID AccountID int PrettyPrint bool }
CreateBottleCommand is the command line data structure for the create action of bottle
func (*CreateBottleCommand) RegisterFlags ¶
func (cmd *CreateBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteAccountCommand ¶
DeleteAccountCommand is the command line data structure for the delete action of account
func (*DeleteAccountCommand) RegisterFlags ¶
func (cmd *DeleteAccountCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteBottleCommand ¶
DeleteBottleCommand is the command line data structure for the delete action of bottle
func (*DeleteBottleCommand) RegisterFlags ¶
func (cmd *DeleteBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
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.
type HealthHealthCommand ¶
type HealthHealthCommand struct {
PrettyPrint bool
}
HealthHealthCommand is the command line data structure for the health action of health
func (*HealthHealthCommand) RegisterFlags ¶
func (cmd *HealthHealthCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListAccountCommand ¶
type ListAccountCommand struct {
PrettyPrint bool
}
ListAccountCommand is the command line data structure for the list action of account
func (*ListAccountCommand) RegisterFlags ¶
func (cmd *ListAccountCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListBottleCommand ¶
type ListBottleCommand struct { // Account ID AccountID int // Filter by years Years []int PrettyPrint bool }
ListBottleCommand is the command line data structure for the list action of bottle
func (*ListBottleCommand) RegisterFlags ¶
func (cmd *ListBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type RateBottleCommand ¶
type RateBottleCommand struct { Payload string ContentType string // Account ID AccountID int BottleID int PrettyPrint bool }
RateBottleCommand is the command line data structure for the rate action of bottle
func (*RateBottleCommand) RegisterFlags ¶
func (cmd *RateBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowAccountCommand ¶
ShowAccountCommand is the command line data structure for the show action of account
func (*ShowAccountCommand) RegisterFlags ¶
func (cmd *ShowAccountCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowBottleCommand ¶
ShowBottleCommand is the command line data structure for the show action of bottle
func (*ShowBottleCommand) RegisterFlags ¶
func (cmd *ShowBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateAccountCommand ¶
type UpdateAccountCommand struct { Payload string ContentType string // Account ID AccountID int PrettyPrint bool }
UpdateAccountCommand is the command line data structure for the update action of account
func (*UpdateAccountCommand) RegisterFlags ¶
func (cmd *UpdateAccountCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateBottleCommand ¶
type UpdateBottleCommand struct { Payload string ContentType string // Account ID AccountID int BottleID int PrettyPrint bool }
UpdateBottleCommand is the command line data structure for the update action of bottle
func (*UpdateBottleCommand) RegisterFlags ¶
func (cmd *UpdateBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type WatchBottleCommand ¶
WatchBottleCommand is the command line data structure for the watch action of bottle
func (*WatchBottleCommand) RegisterFlags ¶
func (cmd *WatchBottleCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.