{"modulePath":"github.com/xpippi/docker-cli","version":"v23.0.3+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package service\n\n## Functions\n\n```go\nfunc AppendServiceStatus(ctx context.Context, c client.APIClient, services []swarm.Service) ([]swarm.Service, error)\n```\nAppendServiceStatus propagates the ServiceStatus field for \"services\".\n\nIf API version v1.41 or up is used, this information is already set by the daemon. On older API versions, we need to do some extra requests to get that information. Theoretically, this function can be skipped based on API version, however, some of our unit tests don't set the API version, and there may be other situations where the client uses the \"default\" version. To take these situations into account, we do a quick check for services that don't have ServiceStatus set, and perform a lookup for those.\n\n```go\nfunc CompletionFn(dockerCli command.Cli) completion.ValidArgsFn\n```\nCompletionFn offers completion for swarm services\n\n```go\nfunc InspectFormatWrite(ctx formatter.Context, refs []string, getRef, getNetwork inspect.GetRefFunc) error\n```\nInspectFormatWrite renders the context for a list of services\n\n```go\nfunc ListFormatWrite(ctx formatter.Context, services []swarm.Service) error\n```\nListFormatWrite writes the context\n\n```go\nfunc NewFormat(source string) formatter.Format\n```\nNewFormat returns a Format for rendering using a 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 NewServiceCommand(dockerCli command.Cli) *cobra.Command\n```\nNewServiceCommand returns a cobra command for \\`service\\` subcommands\n\n```go\nfunc ParseConfigs(client client.ConfigAPIClient, requestedConfigs []*swarmtypes.ConfigReference) ([]*swarmtypes.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(client client.SecretAPIClient, requestedSecrets []*swarmtypes.SecretReference) ([]*swarmtypes.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## 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 (s *ShlexOpt) Type() string\n```\nType returns the tyep 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 (i *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/xpippi/docker-cli/cli/command/service","name":"service","synopsis":"","isRedistributable":true}
