cli

package
v0.0.0-...-cdf3d8e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 13 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 GetElementKeysCommand

type GetElementKeysCommand struct {
	Element     string
	Key         string
	PrettyPrint bool
}

GetElementKeysCommand is the command line data structure for the getElement action of keys

func (*GetElementKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetElementKeysCommand) Run

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

Run makes the HTTP request corresponding to the GetElementKeysCommand command.

type GetKeysCommand

type GetKeysCommand struct {
	Key         string
	PrettyPrint bool
}

GetKeysCommand is the command line data structure for the get action of keys

func (*GetKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetKeysCommand) Run

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

Run makes the HTTP request corresponding to the GetKeysCommand command.

type ListKeysCommand

type ListKeysCommand struct {
	PrettyPrint bool
}

ListKeysCommand is the command line data structure for the list action of keys

func (*ListKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListKeysCommand) Run

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

Run makes the HTTP request corresponding to the ListKeysCommand command.

type RemoveKeysCommand

type RemoveKeysCommand struct {
	Key         string
	PrettyPrint bool
}

RemoveKeysCommand is the command line data structure for the remove action of keys

func (*RemoveKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RemoveKeysCommand) Run

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

Run makes the HTTP request corresponding to the RemoveKeysCommand command.

type SetKeysCommand

type SetKeysCommand struct {
	Payload     string
	ContentType string
	Key         string
	TTL         int
	PrettyPrint bool
}

SetKeysCommand is the command line data structure for the set action of keys

func (*SetKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SetKeysCommand) Run

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

Run makes the HTTP request corresponding to the SetKeysCommand command.

type UpdateKeysCommand

type UpdateKeysCommand struct {
	Payload     string
	ContentType string
	Key         string
	PrettyPrint bool
}

UpdateKeysCommand is the command line data structure for the update action of keys

func (*UpdateKeysCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UpdateKeysCommand) Run

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

Run makes the HTTP request corresponding to the UpdateKeysCommand command.

Jump to

Keyboard shortcuts

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