{"modulePath":"github.com/cspotcode/docker-cli","version":"v20.10.0-rc1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package context\n\n## Functions\n\n```go\nfunc NewContextCommand(dockerCli command.Cli) *cobra.Command\n```\nNewContextCommand returns the context cli subcommand\n\n```go\nfunc RunCreate(cli command.Cli, o *CreateOptions) error\n```\nRunCreate creates a Docker context\n\n```go\nfunc RunExport(dockerCli command.Cli, opts *ExportOptions) error\n```\nRunExport exports a Docker context\n\n```go\nfunc RunImport(dockerCli command.Cli, name string, source string) error\n```\nRunImport imports a Docker context\n\n```go\nfunc RunRemove(dockerCli command.Cli, opts RemoveOptions, names []string) error\n```\nRunRemove removes one or more contexts\n\n```go\nfunc RunUpdate(cli command.Cli, o *UpdateOptions) error\n```\nRunUpdate updates a Docker context\n\n```go\nfunc RunUse(dockerCli command.Cli, name string) error\n```\nRunUse set the current Docker context\n\n## Types\n\n```go\ntype CreateOptions struct {\n\tName                     string\n\tDescription              string\n\tDefaultStackOrchestrator string\n\tDocker                   map[string]string\n\tKubernetes               map[string]string\n\tFrom                     string\n}\n```\nCreateOptions are the options used for creating a context\n\n```go\ntype ExportOptions struct {\n\tKubeconfig  bool\n\tContextName string\n\tDest        string\n}\n```\nExportOptions are the options used for exporting a context\n\n```go\ntype RemoveOptions struct {\n\tForce bool\n}\n```\nRemoveOptions are the options used to remove contexts\n\n```go\ntype UpdateOptions struct {\n\tName                     string\n\tDescription              string\n\tDefaultStackOrchestrator string\n\tDocker                   map[string]string\n\tKubernetes               map[string]string\n}\n```\nUpdateOptions are the options used to update a context\n\n","path":"github.com/cspotcode/docker-cli/cli/command/context","name":"context","synopsis":"","isRedistributable":true}
