cli

package
v0.0.0-...-59a5801 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 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 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.

Jump to

Keyboard shortcuts

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