{"modulePath":"github.com/rancher/docker-cli","version":"v0.0.0-20190201110649-896ff57b300c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package service\n\n## Functions\n\n```go\nfunc GetServicesStatus(services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) map[string]ListInfo\n```\nGetServicesStatus returns a map of mode and replicas\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, info map[string]ListInfo) 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 ListInfo struct {\n\tMode     string\n\tReplicas string\n}\n```\nListInfo stores the information about mode and replicas to be used by template\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/rancher/docker-cli/cli/command/service","name":"service","synopsis":"","isRedistributable":true}
