context

package
v20.10.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 25 Imported by: 0 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

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

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

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

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

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

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

type ExportOptions struct {
	Kubeconfig  bool
	ContextName string
	Dest        string
}

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

Jump to

Keyboard shortcuts

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