package swarm
import "github.com/dotcloud/docker/api/client/swarm"
Index ¶
- Constants
- func NewSwarmCommand(dockerCli *client.DockerCli) *cobra.Command
- type AutoAcceptOption
- func NewAutoAcceptOption() AutoAcceptOption
- func (o *AutoAcceptOption) Policies(secret *string) []swarm.Policy
- func (o *AutoAcceptOption) Set(value string) error
- func (o *AutoAcceptOption) String() string
- func (o *AutoAcceptOption) Type() string
- 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
Constants ¶
const ( // WORKER constant for worker name WORKER = "WORKER" // MANAGER constant for manager name MANAGER = "MANAGER" )
Functions ¶
func NewSwarmCommand ¶
NewSwarmCommand returns a cobra command for `swarm` subcommands
Types ¶
type AutoAcceptOption ¶
type AutoAcceptOption struct {
// contains filtered or unexported fields
}
AutoAcceptOption is a value type for auto-accept policy
func NewAutoAcceptOption ¶
func NewAutoAcceptOption() AutoAcceptOption
NewAutoAcceptOption returns a new auto-accept option
func (*AutoAcceptOption) Policies ¶
func (o *AutoAcceptOption) Policies(secret *string) []swarm.Policy
Policies returns a representation of this option for the api
func (*AutoAcceptOption) Set ¶
func (o *AutoAcceptOption) Set(value string) error
Set sets a new value on this option
func (*AutoAcceptOption) String ¶
func (o *AutoAcceptOption) String() string
String prints a string representation of this option
func (*AutoAcceptOption) Type ¶
func (o *AutoAcceptOption) Type() string
Type returns the type of this option
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 listen and remote 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
Source Files ¶
cmd.go init.go inspect.go join.go leave.go opts.go update.go
- Version
- v1.12.0-rc3
- Published
- Jul 1, 2016
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 1 minute ago –
Tools for package owners.