 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewContextCommand(dockerCli command.Cli) *cobra.Command
- func RunCreate(cli 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(cli 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(cli 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 RunImport ¶
RunImport imports a Docker context
func RunRemove ¶
func RunRemove(dockerCli command.Cli, opts RemoveOptions, names []string) error
RunRemove removes one or more contexts
func RunUpdate ¶
func RunUpdate(cli command.Cli, o *UpdateOptions) error
RunUpdate updates a Docker context
Types ¶
type CreateOptions ¶
type CreateOptions struct {
	Name                     string
	Description              string
	DefaultStackOrchestrator string
	Docker                   map[string]string
	Kubernetes               map[string]string
	From                     string
}
    CreateOptions are the options used for creating a context
type ExportOptions ¶
ExportOptions are the options used for exporting a context
       Source Files
      ¶
      Source Files
      ¶
    
- cmd.go
- create.go
- export.go
- import.go
- inspect.go
- list.go
- options.go
- remove.go
- update.go
- use.go
 Click to show internal directories. 
   Click to hide internal directories.