Documentation ¶
Index ¶
- func RegisterCommands(app *cobra.Command, c *client.Client)
- type AddAuthorizedKeysUserCommand
- type CreateContainerCommand
- type DownloadCommand
- type DownloadContainerCommand
- type ExecContainerCommand
- type GetConfigContainerCommand
- type GetConfigUserCommand
- type GetDefaultShellUserCommand
- type InspectContainerCommand
- type ListAuthorizedKeysUserCommand
- type ListContainerCommand
- type LogsContainerCommand
- type RemoveAuthorizedKeysUserCommand
- type RemoveContainerCommand
- type SetAuthorizedKeysUserCommand
- type SetConfigContainerCommand
- type SetDefaultShellUserCommand
- type StartContainerCommand
- type StopContainerCommand
- type UploadContainerCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddAuthorizedKeysUserCommand ¶
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.
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.
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.
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.
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.
type GetConfigContainerCommand ¶
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.
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.
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.
type InspectContainerCommand ¶
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.
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.
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.
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.
type RemoveAuthorizedKeysUserCommand ¶
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.
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.
type SetAuthorizedKeysUserCommand ¶
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.
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.
type SetDefaultShellUserCommand ¶
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.
type StartContainerCommand ¶
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.
type StopContainerCommand ¶
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.
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.