{"modulePath":"github.com/docker/CLI","version":"v29.10.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package service\n\n## Functions\n\n```go\nfunc ListFormatWrite(ctx formatter.Context, services client.ServiceListResult) error\n```\nListFormatWrite writes the context\n\n```go\nfunc NewListFormat(source string, quiet bool) formatter.Format\n```\nNewListFormat returns a Format for rendering using a service Context\n\n```go\nfunc ParseConfigs(ctx context.Context, apiClient client.ConfigAPIClient, requestedConfigs []*swarm.ConfigReference) ([]*swarm.ConfigReference, error)\n```\nParseConfigs retrieves the configs from the requested names and converts them to config references to use with the spec\n\n```go\nfunc ParseGenericResources(value []string) ([]swarm.GenericResource, error)\n```\nParseGenericResources parses an array of Generic resourceResources Requesting Named Generic Resources for a service is not supported this is filtered here.\n\n```go\nfunc ParseSecrets(ctx context.Context, apiClient client.SecretAPIClient, requestedSecrets []*swarm.SecretReference) ([]*swarm.SecretReference, error)\n```\nParseSecrets retrieves the secrets with the requested names and fills secret IDs into the secret references.\n\n```go\nfunc ValidateSingleGenericResource(val string) (string, error)\n```\nValidateSingleGenericResource 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\n\n```go\nfunc WaitOnService(ctx context.Context, dockerCli command.Cli, serviceID string, quiet bool) error\n```\nWaitOnService waits for the service to converge. It outputs a progress bar, if appropriate based on the CLI flags.\n\n## Types\n\n```go\ntype ShlexOpt []string\n```\nShlexOpt is a flag Value which parses a string as a list of shell words\n\n```go\nfunc (s *ShlexOpt) Set(value string) error\n```\nSet the value\n\n```go\nfunc (s *ShlexOpt) String() string\n```\n\n```go\nfunc (*ShlexOpt) Type() string\n```\nType returns the type of the value\n\n```go\nfunc (s *ShlexOpt) Value() []string\n```\nValue returns the value as a string slice\n\n```go\ntype Uint64Opt struct {\n\t// contains filtered or unexported fields\n}\n```\nUint64Opt represents a uint64.\n\n```go\nfunc (i *Uint64Opt) Set(s string) error\n```\nSet a new value on the option\n\n```go\nfunc (i *Uint64Opt) String() string\n```\nString returns a string repr of this option\n\n```go\nfunc (*Uint64Opt) Type() string\n```\nType returns the type of this option, which will be displayed in \\`--help\\` output\n\n```go\nfunc (i *Uint64Opt) Value() *uint64\n```\nValue returns the uint64\n\n","path":"github.com/docker/CLI/cli/command/service","name":"service","synopsis":"","isRedistributable":true}
