Documentation ¶
Index ¶
- func NewContextCommand(dockerCli command.Cli) *cobra.Command
- func RunCreate(dockerCLI command.Cli, o *CreateOptions) error
- func RunExport(dockerCli command.Cli, opts *ExportOptions) error
- func RunImport(dockerCli command.Cli, name string, source string) error
- func RunRemove(dockerCli command.Cli, opts RemoveOptions, names []string) error
- func RunUpdate(dockerCLI command.Cli, o *UpdateOptions) error
- func RunUse(dockerCli command.Cli, name string) error
- type CreateOptions
- type ExportOptions
- type RemoveOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextCommand ¶
NewContextCommand returns the context cli subcommand
func RunCreate ¶
func RunCreate(dockerCLI command.Cli, o *CreateOptions) error
RunCreate creates a Docker context
func RunExport ¶
func RunExport(dockerCli command.Cli, opts *ExportOptions) error
RunExport exports a Docker context
func RunRemove ¶
func RunRemove(dockerCli command.Cli, opts RemoveOptions, names []string) error
RunRemove removes one or more contexts
Types ¶
type CreateOptions ¶
type CreateOptions struct { Name string Description string Docker map[string]string From string // contains filtered or unexported fields }
CreateOptions are the options used for creating a context
type ExportOptions ¶
ExportOptions are the options used for exporting a context
type RemoveOptions ¶
type RemoveOptions struct {
Force bool
}
RemoveOptions are the options used to remove contexts
Click to show internal directories.
Click to hide internal directories.