Documentation
¶
Index ¶
- func ListFormatWrite(ctx formatter.Context, services client.ServiceListResult) error
- func NewListFormat(source string, quiet bool) formatter.Format
- func ParseConfigs(ctx context.Context, apiClient client.ConfigAPIClient, ...) ([]*swarm.ConfigReference, error)
- func ParseGenericResources(value []string) ([]swarm.GenericResource, error)
- func ParseSecrets(ctx context.Context, apiClient client.SecretAPIClient, ...) ([]*swarm.SecretReference, error)
- func ValidateSingleGenericResource(val string) (string, error)
- func WaitOnService(ctx context.Context, dockerCli command.Cli, serviceID string, quiet bool) error
- type ShlexOpt
- type Uint64Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListFormatWrite ¶
func ListFormatWrite(ctx formatter.Context, services client.ServiceListResult) error
ListFormatWrite writes the context
func NewListFormat ¶
NewListFormat returns a Format for rendering using a service Context
func ParseConfigs ¶
func ParseConfigs(ctx context.Context, apiClient client.ConfigAPIClient, requestedConfigs []*swarm.ConfigReference) ([]*swarm.ConfigReference, error)
ParseConfigs retrieves the configs from the requested names and converts them to config references to use with the spec
func ParseGenericResources ¶
func ParseGenericResources(value []string) ([]swarm.GenericResource, error)
ParseGenericResources parses an array of Generic resourceResources Requesting Named Generic Resources for a service is not supported this is filtered here.
func ParseSecrets ¶
func ParseSecrets(ctx context.Context, apiClient client.SecretAPIClient, requestedSecrets []*swarm.SecretReference) ([]*swarm.SecretReference, error)
ParseSecrets retrieves the secrets with the requested names and fills secret IDs into the secret references.
func ValidateSingleGenericResource ¶
ValidateSingleGenericResource validates that a single entry in the generic resource list is valid. i.e 'GPU=UID1' is valid however 'GPU:UID1' or 'UID1' isn't
Types ¶
type ShlexOpt ¶
type ShlexOpt []string
ShlexOpt is a flag Value which parses a string as a list of shell words
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
genericresource
Package genericresource is a local fork of SwarmKit's genericresource package, without protobuf dependencies.
|
Package genericresource is a local fork of SwarmKit's genericresource package, without protobuf dependencies. |