Documentation ¶
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
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.