package config

import "github.com/docker/cli/cli/command/config"

Index

Functions

func FormatWrite

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

FormatWrite writes the context

func InspectFormatWrite

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

InspectFormatWrite renders the context for a list of configs

func NewConfigCommand

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

NewConfigCommand returns a cobra command for `config` subcommands

func NewFormat

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

NewFormat returns a Format for rendering using a config Context

func RunConfigCreate

func RunConfigCreate(dockerCli command.Cli, options CreateOptions) error

RunConfigCreate creates a config with the given options.

func RunConfigInspect

func RunConfigInspect(dockerCli command.Cli, opts InspectOptions) error

RunConfigInspect inspects the given Swarm config.

func RunConfigList

func RunConfigList(dockerCli command.Cli, options ListOptions) error

RunConfigList lists Swarm configs.

func RunConfigRemove

func RunConfigRemove(dockerCli command.Cli, opts RemoveOptions) error

RunConfigRemove removes the given Swarm configs.

Types

type CreateOptions

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

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

type InspectOptions

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

InspectOptions contains options for the docker config inspect command.

type ListOptions

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

ListOptions contains options for the docker config ls command.

type RemoveOptions

type RemoveOptions struct {
	Names []string
}

RemoveOptions contains options for the docker config rm command.

Source Files

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

Version
v24.0.5+incompatible
Published
Jul 19, 2023
Platform
linux/amd64
Imports
21 packages
Last checked
now

Tools for package owners.