{"modulePath":"github.com/telecomposeio/docker-cli","version":"v0.0.0-20230330191823-de0d30ff24fa","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package swarm\n\n## Functions\n\n```go\nfunc NewSwarmCommand(dockerCli command.Cli) *cobra.Command\n```\nNewSwarmCommand returns a cobra command for \\`swarm\\` subcommands\n\n## Types\n\n```go\ntype ExternalCAOption struct {\n\t// contains filtered or unexported fields\n}\n```\nExternalCAOption is a Value type for parsing external CA specifications.\n\n```go\nfunc (m *ExternalCAOption) Set(value string) error\n```\nSet parses an external CA option.\n\n```go\nfunc (m *ExternalCAOption) String() string\n```\nString returns a string repr of this option.\n\n```go\nfunc (m *ExternalCAOption) Type() string\n```\nType returns the type of this option.\n\n```go\nfunc (m *ExternalCAOption) Value() []*swarm.ExternalCA\n```\nValue returns the external CAs\n\n```go\ntype NodeAddrOption struct {\n\t// contains filtered or unexported fields\n}\n```\nNodeAddrOption is a pflag.Value for listening addresses\n\n```go\nfunc NewListenAddrOption() NodeAddrOption\n```\nNewListenAddrOption returns a NodeAddrOption with default values\n\n```go\nfunc NewNodeAddrOption(addr string) NodeAddrOption\n```\nNewNodeAddrOption returns a new node address option\n\n```go\nfunc (a *NodeAddrOption) Set(value string) error\n```\nSet the value for this flag\n\n```go\nfunc (a *NodeAddrOption) String() string\n```\nString prints the representation of this flag\n\n```go\nfunc (a *NodeAddrOption) Type() string\n```\nType returns the type of this flag\n\n```go\nfunc (a *NodeAddrOption) Value() string\n```\nValue returns the value of this option as addr:port\n\n```go\ntype PEMFile struct {\n\t// contains filtered or unexported fields\n}\n```\nPEMFile represents the path to a pem-formatted file\n\n```go\nfunc (p *PEMFile) Contents() string\n```\nContents returns the contents of the PEM file\n\n```go\nfunc (p *PEMFile) Set(value string) error\n```\nSet parses a root rotation option\n\n```go\nfunc (p *PEMFile) String() string\n```\nString returns the path to the pem file\n\n```go\nfunc (p *PEMFile) Type() string\n```\nType returns the type of this option.\n\n","path":"github.com/telecomposeio/docker-cli/cli/command/swarm","name":"swarm","synopsis":"","isRedistributable":true}
