service

package
v1.12.4-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2016 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceCommand

func NewServiceCommand(dockerCli *client.DockerCli) *cobra.Command

NewServiceCommand returns a cobra command for `service` subcommands

func ValidatePort

func ValidatePort(value string) (string, error)

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

func (m *MountOpt) Set(value string) error

Set a new mount value

func (*MountOpt) String

func (m *MountOpt) String() string

String returns a string repr of this option

func (*MountOpt) Type

func (m *MountOpt) Type() string

Type returns the type of this option

func (*MountOpt) Value

func (m *MountOpt) Value() []swarm.Mount

Value returns the mounts

type Uint64Opt

type Uint64Opt struct {
	// contains filtered or unexported fields
}

Uint64Opt represents a uint64.

func (*Uint64Opt) Set

func (i *Uint64Opt) Set(s string) error

Set a new value on the option

func (*Uint64Opt) String

func (i *Uint64Opt) String() string

String returns a string repr of this option

func (*Uint64Opt) Type

func (i *Uint64Opt) Type() string

Type returns the type of this option

func (*Uint64Opt) Value

func (i *Uint64Opt) Value() *uint64

Value returns the uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL