Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WORKER constant for worker name WORKER = "WORKER" // MANAGER constant for manager name MANAGER = "MANAGER" )
Variables ¶
This section is empty.
Functions ¶
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 NodeAddrOption ¶
type NodeAddrOption struct {
// contains filtered or unexported fields
}
NodeAddrOption is a pflag.Value for listen and remote addresses
func NewNodeAddrOption ¶
func NewNodeAddrOption() 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
Click to show internal directories.
Click to hide internal directories.