package context
import "github.com/docker/cli/cli/command/context"
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
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
func RunUse ¶
RunUse set the current 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
type RemoveOptions ¶
type RemoveOptions struct { Force bool }
RemoveOptions are the options used to remove contexts
type UpdateOptions ¶
type UpdateOptions struct { Name string Description string DefaultStackOrchestrator string Docker map[string]string Kubernetes map[string]string }
UpdateOptions are the options used to update a context
Source Files ¶
cmd.go create.go export.go import.go inspect.go list.go options.go remove.go update.go use.go
- Version
- v20.10.16+incompatible
- Published
- May 11, 2022
- Platform
- windows/amd64
- Imports
- 24 packages
- Last checked
- 1 second ago –
Tools for package owners.