cli

package
v0.0.0-...-8b7e103 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 14 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 CreateAccountCommand

type CreateAccountCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

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.

func (*CreateAccountCommand) Run

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

Run makes the HTTP request corresponding to the CreateAccountCommand command.

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.

func (*CreateBottleCommand) Run

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

Run makes the HTTP request corresponding to the CreateBottleCommand command.

type DeleteAccountCommand

type DeleteAccountCommand struct {
	// Account ID
	AccountID   int
	PrettyPrint bool
}

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.

func (*DeleteAccountCommand) Run

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

Run makes the HTTP request corresponding to the DeleteAccountCommand command.

type DeleteBottleCommand

type DeleteBottleCommand struct {
	// Account ID
	AccountID   int
	BottleID    int
	PrettyPrint bool
}

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.

func (*DeleteBottleCommand) Run

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

Run makes the HTTP request corresponding to the DeleteBottleCommand 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 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.

func (*HealthHealthCommand) Run

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

Run makes the HTTP request corresponding to the HealthHealthCommand command.

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.

func (*ListAccountCommand) Run

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

Run makes the HTTP request corresponding to the ListAccountCommand command.

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.

func (*ListBottleCommand) Run

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

Run makes the HTTP request corresponding to the ListBottleCommand command.

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.

func (*RateBottleCommand) Run

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

Run makes the HTTP request corresponding to the RateBottleCommand command.

type ShowAccountCommand

type ShowAccountCommand struct {
	// Account ID
	AccountID   int
	PrettyPrint bool
}

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.

func (*ShowAccountCommand) Run

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

Run makes the HTTP request corresponding to the ShowAccountCommand command.

type ShowBottleCommand

type ShowBottleCommand struct {
	// Account ID
	AccountID   int
	BottleID    int
	PrettyPrint bool
}

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.

func (*ShowBottleCommand) Run

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

Run makes the HTTP request corresponding to the ShowBottleCommand command.

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.

func (*UpdateAccountCommand) Run

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

Run makes the HTTP request corresponding to the UpdateAccountCommand command.

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.

func (*UpdateBottleCommand) Run

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

Run makes the HTTP request corresponding to the UpdateBottleCommand command.

type WatchBottleCommand

type WatchBottleCommand struct {
	// Account ID
	AccountID   int
	BottleID    int
	PrettyPrint bool
}

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.

func (*WatchBottleCommand) Run

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

Run establishes a websocket connection for the WatchBottleCommand command.

Jump to

Keyboard shortcuts

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