swarm

package
v20.10.21+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 22 Imported by: 144

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSwarmCommand

func NewSwarmCommand(dockerCli command.Cli) *cobra.Command

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