cli

package
v0.0.0-...-e870905 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2017 License: Apache-2.0 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 CreateOrJoinClusterCommand

type CreateOrJoinClusterCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateOrJoinClusterCommand is the command line data structure for the create_or_join action of cluster

func (*CreateOrJoinClusterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateOrJoinClusterCommand) Run

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

Run makes the HTTP request corresponding to the CreateOrJoinClusterCommand command.

type GetStatusClusterCommand

type GetStatusClusterCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

GetStatusClusterCommand is the command line data structure for the get_status action of cluster

func (*GetStatusClusterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetStatusClusterCommand) Run

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

Run makes the HTTP request corresponding to the GetStatusClusterCommand command.

type StatusClusterCommand

type StatusClusterCommand struct {
	// Cluster ID
	ClusterID   string
	PrettyPrint bool
}

StatusClusterCommand is the command line data structure for the status action of cluster

func (*StatusClusterCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StatusClusterCommand) Run

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

Run makes the HTTP request corresponding to the StatusClusterCommand command.

Jump to

Keyboard shortcuts

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