package service
import "github.com/docker/docker/api/client/service"
Index ¶
- func NewServiceCommand(dockerCli *client.DockerCli) *cobra.Command
- 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 MountOpt
- func (m *MountOpt) Set(value string) error
- func (m *MountOpt) String() string
- func (m *MountOpt) Type() string
- func (m *MountOpt) Value() []swarm.Mount
- type Uint64Opt
Functions ¶
func NewServiceCommand ¶
NewServiceCommand returns a cobra command for `service` subcommands
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
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
func (*MountOpt) Set ¶
Set a new mount value
func (*MountOpt) String ¶
String returns a string repr of this option
func (*MountOpt) Type ¶
Type returns the type of this option
func (*MountOpt) Value ¶
Value returns the mounts
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
func (*Uint64Opt) Value ¶
Value returns the uint64
Source Files ¶
cmd.go create.go inspect.go list.go opts.go ps.go remove.go scale.go update.go
- Version
- v1.12.2
- Published
- Oct 11, 2016
- Platform
- js/wasm
- Imports
- 29 packages
- Last checked
- 6 seconds ago –
Tools for package owners.