Documentation ¶
Index ¶
- func GetServicesStatus(services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) map[string]formatter.ServiceListInfo
- func NewServiceCommand(dockerCli command.Cli) *cobra.Command
- func ParseConfigs(client client.ConfigAPIClient, requestedConfigs []*swarmtypes.ConfigReference) ([]*swarmtypes.ConfigReference, error)
- func ParseSecrets(client client.SecretAPIClient, requestedSecrets []*swarmtypes.SecretReference) ([]*swarmtypes.SecretReference, error)
- type ShlexOpt
- type Uint64Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServicesStatus ¶
func GetServicesStatus(services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) map[string]formatter.ServiceListInfo
GetServicesStatus returns a map of mode and replicas
func NewServiceCommand ¶
NewServiceCommand returns a cobra command for `service` subcommands
func ParseConfigs ¶
func ParseConfigs(client client.ConfigAPIClient, requestedConfigs []*swarmtypes.ConfigReference) ([]*swarmtypes.ConfigReference, error)
ParseConfigs retrieves the configs from the requested names and converts them to config references to use with the spec
func ParseSecrets ¶
func ParseSecrets(client client.SecretAPIClient, requestedSecrets []*swarmtypes.SecretReference) ([]*swarmtypes.SecretReference, error)
ParseSecrets retrieves the secrets with the requested names and fills secret IDs into the secret references.
Types ¶
type ShlexOpt ¶
type ShlexOpt []string
ShlexOpt is a flag Value which parses a string as a list of shell words
Source Files ¶
Click to show internal directories.
Click to hide internal directories.