package config
import "github.com/docker/cli/cli/command/config"
Index ¶
- func FormatWrite(ctx formatter.Context, configs []swarm.Config) error
- func InspectFormatWrite(ctx formatter.Context, refs []string, getRef inspect.GetRefFunc) error
- func NewConfigCommand(dockerCli command.Cli) *cobra.Command
- func NewFormat(source string, quiet bool) formatter.Format
- func RunConfigCreate(dockerCli command.Cli, options CreateOptions) error
- func RunConfigInspect(dockerCli command.Cli, opts InspectOptions) error
- func RunConfigList(dockerCli command.Cli, options ListOptions) error
- func RunConfigRemove(dockerCli command.Cli, opts RemoveOptions) error
- type CreateOptions
- type InspectOptions
- type ListOptions
- type RemoveOptions
Functions ¶
func FormatWrite ¶
FormatWrite writes the context
func InspectFormatWrite ¶
InspectFormatWrite renders the context for a list of configs
func NewConfigCommand ¶
NewConfigCommand returns a cobra command for `config` subcommands
func NewFormat ¶
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 ¶
CreateOptions specifies some options that are used when creating a config.
type InspectOptions ¶
InspectOptions contains options for the docker config inspect command.
type ListOptions ¶
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
- 53 seconds ago –
Tools for package owners.