package context
import "github.com/docker/cli/cli/command/context"
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
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 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(dockerCLI 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 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
type UpdateOptions ¶
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 show.go update.go use.go
- Version
- v28.0.1+incompatible
- Published
- Feb 25, 2025
- Platform
- windows/amd64
- Imports
- 22 packages
- Last checked
- 8 hours ago –
Tools for package owners.