config

package
v28.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatWrite deprecated

func FormatWrite(fmtCtx formatter.Context, configs []swarm.Config) error

FormatWrite writes the context

Deprecated: this function was only used internally and will be removed in the next release.

func InspectFormatWrite deprecated

func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error

InspectFormatWrite renders the context for a list of configs

Deprecated: this function was only used internally and will be removed in the next release.

func NewConfigCommand deprecated

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

NewConfigCommand returns a cobra command for `config` subcommands

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

func NewFormat deprecated

func NewFormat(source string, quiet bool) formatter.Format

NewFormat returns a Format for rendering using a config Context

Deprecated: this function was only used internally and will be removed in the next release.

func RunConfigCreate deprecated

func RunConfigCreate(ctx context.Context, dockerCLI command.Cli, options CreateOptions) error

RunConfigCreate creates a config with the given options.

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

func RunConfigInspect deprecated

func RunConfigInspect(ctx context.Context, dockerCLI command.Cli, opts InspectOptions) error

RunConfigInspect inspects the given Swarm config.

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

func RunConfigList deprecated

func RunConfigList(ctx context.Context, dockerCLI command.Cli, options ListOptions) error

RunConfigList lists Swarm configs.

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

func RunConfigRemove deprecated

func RunConfigRemove(ctx context.Context, dockerCLI command.Cli, opts RemoveOptions) error

RunConfigRemove removes the given Swarm configs.

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

Types

type CreateOptions deprecated

type CreateOptions struct {
	Name           string
	TemplateDriver string
	File           string
	Labels         opts.ListOpts
}

CreateOptions specifies some options that are used when creating a config.

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

type InspectOptions deprecated

type InspectOptions struct {
	Names  []string
	Format string
	Pretty bool
}

InspectOptions contains options for the docker config inspect command.

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

type ListOptions deprecated

type ListOptions struct {
	Quiet  bool
	Format string
	Filter opts.FilterOpt
}

ListOptions contains options for the docker config ls command.

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

type RemoveOptions deprecated

type RemoveOptions struct {
	Names []string
}

RemoveOptions contains options for the docker config rm command.

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

Source Files

  • cmd.go
  • create.go
  • formatter.go
  • inspect.go
  • ls.go
  • remove.go

Jump to

Keyboard shortcuts

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