package service
import "github.com/docker/docker/cli/command/service"
Index ¶
- func NewServiceCommand(dockerCli *command.DockerCli) *cobra.Command
- func PrintNotQuiet(out io.Writer, services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task)
- func PrintQuiet(out io.Writer, services []swarm.Service)
- func ValidatePort(value string) (string, error)
- type DurationOpt
- func (d *DurationOpt) Set(s string) error
- func (d *DurationOpt) String() string
- func (d *DurationOpt) Type() string
- func (d *DurationOpt) Value() *time.Duration
- type PositiveDurationOpt
- type SecretOpt
- func (o *SecretOpt) Set(value string) error
- func (o *SecretOpt) String() string
- func (o *SecretOpt) Type() string
- func (o *SecretOpt) Value() []*SecretRequestSpec
- type SecretRequestSpec
- type Uint64Opt
Functions ¶
func NewServiceCommand ¶
NewServiceCommand returns a cobra command for `service` subcommands
func PrintNotQuiet ¶
PrintNotQuiet shows service list in a non-quiet way. Besides this, command `docker stack services xxx` will call this, too.
func PrintQuiet ¶
PrintQuiet shows service list in a quiet way. Besides this, command `docker stack services xxx` will call this, too.
func ValidatePort ¶
ValidatePort validates a string is in the expected format for a port definition
Types ¶
type DurationOpt ¶
type DurationOpt struct {
// contains filtered or unexported fields
}
DurationOpt is an option type for time.Duration that uses a pointer. This allows us to get nil values outside, instead of defaulting to 0
func (*DurationOpt) Set ¶
func (d *DurationOpt) Set(s string) error
Set a new value on the option
func (*DurationOpt) String ¶
func (d *DurationOpt) String() string
String returns a string repr of this option
func (*DurationOpt) Type ¶
func (d *DurationOpt) Type() string
Type returns the type of this option, which will be displayed in `--help` output
func (*DurationOpt) Value ¶
func (d *DurationOpt) Value() *time.Duration
Value returns the time.Duration
type PositiveDurationOpt ¶
type PositiveDurationOpt struct { DurationOpt }
PositiveDurationOpt is an option type for time.Duration that uses a pointer. It bahave similarly to DurationOpt but only allows positive duration values.
func (*PositiveDurationOpt) Set ¶
func (d *PositiveDurationOpt) Set(s string) error
Set a new value on the option. Setting a negative duration value will cause an error to be returned.
type SecretOpt ¶
type SecretOpt struct {
// contains filtered or unexported fields
}
SecretOpt is a Value type for parsing secrets
func (*SecretOpt) Set ¶
Set a new secret value
func (*SecretOpt) String ¶
String returns a string repr of this option
func (*SecretOpt) Type ¶
Type returns the type of this option
func (*SecretOpt) Value ¶
func (o *SecretOpt) Value() []*SecretRequestSpec
Value returns the secret requests
type SecretRequestSpec ¶
type SecretRequestSpec struct {
// contains filtered or unexported fields
}
SecretRequestSpec is a type for requesting secrets
type Uint64Opt ¶
type Uint64Opt struct {
// contains filtered or unexported fields
}
Uint64Opt represents a uint64.
func (*Uint64Opt) Set ¶
Set a new value on the option
func (*Uint64Opt) String ¶
String returns a string repr of this option
func (*Uint64Opt) Type ¶
Type returns the type of this option, which will be displayed in `--help` output
func (*Uint64Opt) Value ¶
Value returns the uint64
Source Files ¶
cmd.go create.go inspect.go list.go logs.go opts.go parse.go ps.go remove.go scale.go trust.go update.go
- Version
- v1.13.0
- Published
- Jan 17, 2017
- Platform
- js/wasm
- Imports
- 42 packages
- Last checked
- 5 minutes ago –
Tools for package owners.