cli

package
v0.0.0-...-136c4f7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 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 AddAuthorizedKeysUserCommand

type AddAuthorizedKeysUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

AddAuthorizedKeysUserCommand is the command line data structure for the addAuthorizedKeys action of user

func (*AddAuthorizedKeysUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*AddAuthorizedKeysUserCommand) Run

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

Run makes the HTTP request corresponding to the AddAuthorizedKeysUserCommand command.

type CreateContainerCommand

type CreateContainerCommand struct {
	// Command to run specified as a string or an array of strings.
	Command []string
	// The entry point for the container as a string or an array of strings
	Entrypoint []string
	// Environment variables
	Env []string
	// Name of image
	Image string
	// Name of container and subdomain
	Name string
	// Whether HTTP is redirected to HTTPS
	SslRedirect string
	// Path to volumes in a container
	Volumes []string
	// Current directory (PWD) in the command will be launched
	WorkingDir  string
	PrettyPrint bool
}

CreateContainerCommand is the command line data structure for the create action of container

func (*CreateContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateContainerCommand) Run

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

Run makes the HTTP request corresponding to the CreateContainerCommand 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 DownloadContainerCommand

type DownloadContainerCommand struct {
	// ID or name
	ID string
	// Path in the container to save files
	InternalPath string
	PrettyPrint  bool
}

DownloadContainerCommand is the command line data structure for the download action of container

func (*DownloadContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*DownloadContainerCommand) Run

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

Run makes the HTTP request corresponding to the DownloadContainerCommand command.

type ExecContainerCommand

type ExecContainerCommand struct {
	// id or name
	ID string
	// The path to the executable file
	Command []string
	// Tty
	Tty         string
	PrettyPrint bool
}

ExecContainerCommand is the command line data structure for the exec action of container

func (*ExecContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ExecContainerCommand) Run

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

Run establishes a websocket connection for the ExecContainerCommand command.

type GetConfigContainerCommand

type GetConfigContainerCommand struct {
	// id or name
	ID          string
	PrettyPrint bool
}

GetConfigContainerCommand is the command line data structure for the getConfig action of container

func (*GetConfigContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetConfigContainerCommand) Run

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

Run makes the HTTP request corresponding to the GetConfigContainerCommand command.

type GetConfigUserCommand

type GetConfigUserCommand struct {
	PrettyPrint bool
}

GetConfigUserCommand is the command line data structure for the getConfig action of user

func (*GetConfigUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetConfigUserCommand) Run

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

Run makes the HTTP request corresponding to the GetConfigUserCommand command.

type GetDefaultShellUserCommand

type GetDefaultShellUserCommand struct {
	PrettyPrint bool
}

GetDefaultShellUserCommand is the command line data structure for the getDefaultShell action of user

func (*GetDefaultShellUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*GetDefaultShellUserCommand) Run

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

Run makes the HTTP request corresponding to the GetDefaultShellUserCommand command.

type InspectContainerCommand

type InspectContainerCommand struct {
	// ID or name
	ID          string
	PrettyPrint bool
}

InspectContainerCommand is the command line data structure for the inspect action of container

func (*InspectContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*InspectContainerCommand) Run

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

Run makes the HTTP request corresponding to the InspectContainerCommand command.

type ListAuthorizedKeysUserCommand

type ListAuthorizedKeysUserCommand struct {
	PrettyPrint bool
}

ListAuthorizedKeysUserCommand is the command line data structure for the listAuthorizedKeys action of user

func (*ListAuthorizedKeysUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListAuthorizedKeysUserCommand) Run

Run makes the HTTP request corresponding to the ListAuthorizedKeysUserCommand command.

type ListContainerCommand

type ListContainerCommand struct {
	PrettyPrint bool
}

ListContainerCommand is the command line data structure for the list action of container

func (*ListContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ListContainerCommand) Run

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

Run makes the HTTP request corresponding to the ListContainerCommand command.

type LogsContainerCommand

type LogsContainerCommand struct {
	// id or name
	ID          string
	Follow      string
	Since       string
	Stderr      string
	Stdout      string
	Tail        string
	Timestamps  string
	Until       string
	PrettyPrint bool
}

LogsContainerCommand is the command line data structure for the logs action of container

func (*LogsContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*LogsContainerCommand) Run

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

Run establishes a websocket connection for the LogsContainerCommand command.

type RemoveAuthorizedKeysUserCommand

type RemoveAuthorizedKeysUserCommand struct {
	Label       string
	PrettyPrint bool
}

RemoveAuthorizedKeysUserCommand is the command line data structure for the removeAuthorizedKeys action of user

func (*RemoveAuthorizedKeysUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RemoveAuthorizedKeysUserCommand) Run

Run makes the HTTP request corresponding to the RemoveAuthorizedKeysUserCommand command.

type RemoveContainerCommand

type RemoveContainerCommand struct {
	// id or name
	ID string
	// If the container is running, kill it before removing it.
	Force       string
	PrettyPrint bool
}

RemoveContainerCommand is the command line data structure for the remove action of container

func (*RemoveContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*RemoveContainerCommand) Run

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

Run makes the HTTP request corresponding to the RemoveContainerCommand command.

type SetAuthorizedKeysUserCommand

type SetAuthorizedKeysUserCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

SetAuthorizedKeysUserCommand is the command line data structure for the setAuthorizedKeys action of user

func (*SetAuthorizedKeysUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SetAuthorizedKeysUserCommand) Run

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

Run makes the HTTP request corresponding to the SetAuthorizedKeysUserCommand command.

type SetConfigContainerCommand

type SetConfigContainerCommand struct {
	Payload     string
	ContentType string
	// id or name
	ID          string
	PrettyPrint bool
}

SetConfigContainerCommand is the command line data structure for the setConfig action of container

func (*SetConfigContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SetConfigContainerCommand) Run

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

Run makes the HTTP request corresponding to the SetConfigContainerCommand command.

type SetDefaultShellUserCommand

type SetDefaultShellUserCommand struct {
	DefaultShell string
	PrettyPrint  bool
}

SetDefaultShellUserCommand is the command line data structure for the setDefaultShell action of user

func (*SetDefaultShellUserCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*SetDefaultShellUserCommand) Run

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

Run makes the HTTP request corresponding to the SetDefaultShellUserCommand command.

type StartContainerCommand

type StartContainerCommand struct {
	// id or name
	ID          string
	PrettyPrint bool
}

StartContainerCommand is the command line data structure for the start action of container

func (*StartContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StartContainerCommand) Run

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

Run makes the HTTP request corresponding to the StartContainerCommand command.

type StopContainerCommand

type StopContainerCommand struct {
	// id or name
	ID          string
	PrettyPrint bool
}

StopContainerCommand is the command line data structure for the stop action of container

func (*StopContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StopContainerCommand) Run

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

Run makes the HTTP request corresponding to the StopContainerCommand command.

type UploadContainerCommand

type UploadContainerCommand struct {
	Payload     string
	ContentType string
	// ID or name
	ID          string
	PrettyPrint bool
}

UploadContainerCommand is the command line data structure for the upload action of container

func (*UploadContainerCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*UploadContainerCommand) Run

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

Run makes the HTTP request corresponding to the UploadContainerCommand command.

Jump to

Keyboard shortcuts

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