Documentation ¶
Index ¶
- func NewServiceCommand(dockerCli *command.DockerCli) *cobra.Command
- func PrintNotQuiet(out io.Writer, services []swarm.Service, nodes []swarm.Node, ...)
- func PrintQuiet(out io.Writer, services []swarm.Service)
- func ValidatePort(value string) (string, error)
- type DurationOpt
- type MountOpt
- type Uint64Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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) String ¶
func (d *DurationOpt) String() string
String returns a string repr of this option
func (*DurationOpt) Value ¶
func (d *DurationOpt) Value() *time.Duration
Value returns the time.Duration
type MountOpt ¶
type MountOpt struct {
// contains filtered or unexported fields
}
MountOpt is a Value type for parsing mounts
Click to show internal directories.
Click to hide internal directories.