context

package
v28.5.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextCommand deprecated

func NewContextCommand(dockerCLI command.Cli) *cobra.Command

NewContextCommand returns the context cli subcommand

Deprecated: Do not import commands directly. They will be removed in a future release.

func RunCreate deprecated

func RunCreate(dockerCLI command.Cli, o *CreateOptions) error

Deprecated: this function was for internal use and will be removed in the next release.

func RunExport deprecated

func RunExport(dockerCli command.Cli, opts *ExportOptions) error

RunExport exports a Docker context

Deprecated: this function was for internal use and will be removed in the next release.

func RunImport deprecated

func RunImport(dockerCLI command.Cli, name string, source string) error

RunImport imports a Docker context

Deprecated: this function was for internal use and will be removed in the next release.

func RunRemove deprecated

func RunRemove(dockerCLI command.Cli, opts removeOptions, names []string) error

RunRemove removes one or more contexts

Deprecated: this function was for internal use and will be removed in the next release.

func RunUpdate deprecated

func RunUpdate(dockerCLI command.Cli, o *UpdateOptions) error

RunUpdate updates a Docker context

Deprecated: this function was for internal use and will be removed in the next release.

func RunUse deprecated

func RunUse(dockerCLI command.Cli, name string) error

RunUse set the current Docker context

Deprecated: this function was for internal use and will be removed in the next release.

Types

type CreateOptions deprecated

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

Deprecated: this type was for internal use and will be removed in the next release.

type ExportOptions deprecated

type ExportOptions struct {
	ContextName string
	Dest        string
}

ExportOptions are the options used for exporting a context

Deprecated: this type was for internal use and will be removed in the next release.

type RemoveOptions deprecated

type RemoveOptions struct {
	Force bool
}

RemoveOptions are the options used to remove contexts

Deprecated: this type was for internal use and will be removed in the next release.

type UpdateOptions deprecated

type UpdateOptions struct {
	Name        string
	Description string
	Docker      map[string]string
}

UpdateOptions are the options used to update a context

Deprecated: this type was for internal use and will be removed in the next release.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL