Documentation ¶
Overview ¶
FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
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(ctx context.Context, dockerCli command.Cli, options CreateOptions) error
- func RunConfigInspect(ctx context.Context, dockerCli command.Cli, opts InspectOptions) error
- func RunConfigList(ctx context.Context, dockerCli command.Cli, options ListOptions) error
- func RunConfigRemove(ctx context.Context, dockerCli command.Cli, opts RemoveOptions) error
- type CreateOptions
- type InspectOptions
- type ListOptions
- type RemoveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 RunConfigCreate ¶
RunConfigCreate creates a config with the given options.
func RunConfigInspect ¶
RunConfigInspect inspects the given Swarm config.
func RunConfigList ¶
RunConfigList lists Swarm configs.
func RunConfigRemove ¶
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.