cli

package
v0.0.0-...-04d3a30 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: Apache-2.0 Imports: 12 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 InfoUserCommand

type InfoUserCommand struct {
	PrettyPrint bool
}

InfoUserCommand is the command line data structure for the info action of user

func (*InfoUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*InfoUserCommand) Run

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

Run makes the HTTP request corresponding to the InfoUserCommand command.

type LoginUserCommand

type LoginUserCommand struct {
	PrettyPrint bool
}

LoginUserCommand is the command line data structure for the login action of user

func (*LoginUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*LoginUserCommand) Run

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

Run makes the HTTP request corresponding to the LoginUserCommand command.

type LogoutUserCommand

type LogoutUserCommand struct {
	PrettyPrint bool
}

LogoutUserCommand is the command line data structure for the logout action of user

func (*LogoutUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*LogoutUserCommand) Run

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

Run makes the HTTP request corresponding to the LogoutUserCommand command.

type RegisterUserCommand

type RegisterUserCommand struct {
	PrettyPrint bool
}

RegisterUserCommand is the command line data structure for the register action of user

func (*RegisterUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RegisterUserCommand) Run

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

Run makes the HTTP request corresponding to the RegisterUserCommand command.

Jump to

Keyboard shortcuts

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