package swarm
import "github.com/docker/cli/cli/command/swarm"
Index ¶
- func NewSwarmCommand(dockerCli command.Cli) *cobra.Command
- type ExternalCAOption
- func (m *ExternalCAOption) Set(value string) error
- func (m *ExternalCAOption) String() string
- func (m *ExternalCAOption) Type() string
- func (m *ExternalCAOption) Value() []*swarm.ExternalCA
- type NodeAddrOption
- func NewListenAddrOption() NodeAddrOption
- func NewNodeAddrOption(addr string) NodeAddrOption
- func (a *NodeAddrOption) Set(value string) error
- func (a *NodeAddrOption) String() string
- func (a *NodeAddrOption) Type() string
- func (a *NodeAddrOption) Value() string
- type PEMFile
Functions ¶
func NewSwarmCommand ¶
NewSwarmCommand returns a cobra command for `swarm` subcommands
Types ¶
type ExternalCAOption ¶
type ExternalCAOption struct {
// contains filtered or unexported fields
}
ExternalCAOption is a Value type for parsing external CA specifications.
func (*ExternalCAOption) Set ¶
func (m *ExternalCAOption) Set(value string) error
Set parses an external CA option.
func (*ExternalCAOption) String ¶
func (m *ExternalCAOption) String() string
String returns a string repr of this option.
func (*ExternalCAOption) Type ¶
func (m *ExternalCAOption) Type() string
Type returns the type of this option.
func (*ExternalCAOption) Value ¶
func (m *ExternalCAOption) Value() []*swarm.ExternalCA
Value returns the external CAs
type NodeAddrOption ¶
type NodeAddrOption struct {
// contains filtered or unexported fields
}
NodeAddrOption is a pflag.Value for listening addresses
func NewListenAddrOption ¶
func NewListenAddrOption() NodeAddrOption
NewListenAddrOption returns a NodeAddrOption with default values
func NewNodeAddrOption ¶
func NewNodeAddrOption(addr string) NodeAddrOption
NewNodeAddrOption returns a new node address option
func (*NodeAddrOption) Set ¶
func (a *NodeAddrOption) Set(value string) error
Set the value for this flag
func (*NodeAddrOption) String ¶
func (a *NodeAddrOption) String() string
String prints the representation of this flag
func (*NodeAddrOption) Type ¶
func (a *NodeAddrOption) Type() string
Type returns the type of this flag
func (*NodeAddrOption) Value ¶
func (a *NodeAddrOption) Value() string
Value returns the value of this option as addr:port
type PEMFile ¶
type PEMFile struct {
// contains filtered or unexported fields
}
PEMFile represents the path to a pem-formatted file
func (*PEMFile) Contents ¶
Contents returns the contents of the PEM file
func (*PEMFile) Set ¶
Set parses a root rotation option
func (*PEMFile) String ¶
String returns the path to the pem file
func (*PEMFile) Type ¶
Type returns the type of this option.
Source Files ¶
ca.go cmd.go init.go ipnet_slice.go join.go join_token.go leave.go opts.go unlock.go unlock_key.go update.go
Directories ¶
Path | Synopsis |
---|---|
cli/command/swarm/progress |
- Version
- v26.1.0+incompatible
- Published
- Apr 22, 2024
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 3 hours ago –
Tools for package owners.