models

package
v0.0.0-...-193a162 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: MIT Imports: 6 Imported by: 17

Documentation ¶

Index ¶

Constants ¶

View Source
const (

	// ContainerInspectOKBodyStateStatusCreated captures enum value "created"
	ContainerInspectOKBodyStateStatusCreated string = "created"

	// ContainerInspectOKBodyStateStatusRunning captures enum value "running"
	ContainerInspectOKBodyStateStatusRunning string = "running"

	// ContainerInspectOKBodyStateStatusPaused captures enum value "paused"
	ContainerInspectOKBodyStateStatusPaused string = "paused"

	// ContainerInspectOKBodyStateStatusRestarting captures enum value "restarting"
	ContainerInspectOKBodyStateStatusRestarting string = "restarting"

	// ContainerInspectOKBodyStateStatusRemoving captures enum value "removing"
	ContainerInspectOKBodyStateStatusRemoving string = "removing"

	// ContainerInspectOKBodyStateStatusExited captures enum value "exited"
	ContainerInspectOKBodyStateStatusExited string = "exited"

	// ContainerInspectOKBodyStateStatusDead captures enum value "dead"
	ContainerInspectOKBodyStateStatusDead string = "dead"
)
View Source
const (

	// EndpointPortConfigProtocolTCP captures enum value "tcp"
	EndpointPortConfigProtocolTCP string = "tcp"

	// EndpointPortConfigProtocolUDP captures enum value "udp"
	EndpointPortConfigProtocolUDP string = "udp"
)
View Source
const (

	// EndpointPortConfigPublishModeIngress captures enum value "ingress"
	EndpointPortConfigPublishModeIngress string = "ingress"

	// EndpointPortConfigPublishModeHost captures enum value "host"
	EndpointPortConfigPublishModeHost string = "host"
)
View Source
const (

	// EndpointSpecModeVip captures enum value "vip"
	EndpointSpecModeVip string = "vip"

	// EndpointSpecModeDNSRR captures enum value "dnsrr"
	EndpointSpecModeDNSRR string = "dnsrr"
)
View Source
const (

	// HostConfigAllOf1IsolationDefault captures enum value "default"
	HostConfigAllOf1IsolationDefault string = "default"

	// HostConfigAllOf1IsolationProcess captures enum value "process"
	HostConfigAllOf1IsolationProcess string = "process"

	// HostConfigAllOf1IsolationHyperv captures enum value "hyperv"
	HostConfigAllOf1IsolationHyperv string = "hyperv"
)
View Source
const (

	// HostConfigAllOf1LogConfigTypeJSONFile captures enum value "json-file"
	HostConfigAllOf1LogConfigTypeJSONFile string = "json-file"

	// HostConfigAllOf1LogConfigTypeSyslog captures enum value "syslog"
	HostConfigAllOf1LogConfigTypeSyslog string = "syslog"

	// HostConfigAllOf1LogConfigTypeJournald captures enum value "journald"
	HostConfigAllOf1LogConfigTypeJournald string = "journald"

	// HostConfigAllOf1LogConfigTypeGelf captures enum value "gelf"
	HostConfigAllOf1LogConfigTypeGelf string = "gelf"

	// HostConfigAllOf1LogConfigTypeFluentd captures enum value "fluentd"
	HostConfigAllOf1LogConfigTypeFluentd string = "fluentd"

	// HostConfigAllOf1LogConfigTypeAwslogs captures enum value "awslogs"
	HostConfigAllOf1LogConfigTypeAwslogs string = "awslogs"

	// HostConfigAllOf1LogConfigTypeSplunk captures enum value "splunk"
	HostConfigAllOf1LogConfigTypeSplunk string = "splunk"

	// HostConfigAllOf1LogConfigTypeEtwlogs captures enum value "etwlogs"
	HostConfigAllOf1LogConfigTypeEtwlogs string = "etwlogs"

	// HostConfigAllOf1LogConfigTypeNone captures enum value "none"
	HostConfigAllOf1LogConfigTypeNone string = "none"
)
View Source
const (

	// MountTypeBind captures enum value "bind"
	MountTypeBind string = "bind"

	// MountTypeVolume captures enum value "volume"
	MountTypeVolume string = "volume"

	// MountTypeTmpfs captures enum value "tmpfs"
	MountTypeTmpfs string = "tmpfs"
)
View Source
const (

	// MountBindOptionsPropagationPrivate captures enum value "private"
	MountBindOptionsPropagationPrivate string = "private"

	// MountBindOptionsPropagationRprivate captures enum value "rprivate"
	MountBindOptionsPropagationRprivate string = "rprivate"

	// MountBindOptionsPropagationShared captures enum value "shared"
	MountBindOptionsPropagationShared string = "shared"

	// MountBindOptionsPropagationRshared captures enum value "rshared"
	MountBindOptionsPropagationRshared string = "rshared"

	// MountBindOptionsPropagationSLAVE captures enum value "slave"
	MountBindOptionsPropagationSLAVE string = "slave"

	// MountBindOptionsPropagationRslave captures enum value "rslave"
	MountBindOptionsPropagationRslave string = "rslave"
)
View Source
const (

	// NodeSpecAvailabilityActive captures enum value "active"
	NodeSpecAvailabilityActive string = "active"

	// NodeSpecAvailabilityPause captures enum value "pause"
	NodeSpecAvailabilityPause string = "pause"

	// NodeSpecAvailabilityDrain captures enum value "drain"
	NodeSpecAvailabilityDrain string = "drain"
)
View Source
const (

	// NodeSpecRoleWorker captures enum value "worker"
	NodeSpecRoleWorker string = "worker"

	// NodeSpecRoleManager captures enum value "manager"
	NodeSpecRoleManager string = "manager"
)
View Source
const (

	// PortTypeTCP captures enum value "tcp"
	PortTypeTCP string = "tcp"

	// PortTypeUDP captures enum value "udp"
	PortTypeUDP string = "udp"
)
View Source
const (

	// RestartPolicyName captures enum value ""
	RestartPolicyName string = ""

	// RestartPolicyNameAlways captures enum value "always"
	RestartPolicyNameAlways string = "always"

	// RestartPolicyNameUnlessStopped captures enum value "unless-stopped"
	RestartPolicyNameUnlessStopped string = "unless-stopped"

	// RestartPolicyNameOnFailure captures enum value "on-failure"
	RestartPolicyNameOnFailure string = "on-failure"
)
View Source
const (

	// ServiceSpecRollbackConfigFailureActionContinue captures enum value "continue"
	ServiceSpecRollbackConfigFailureActionContinue string = "continue"

	// ServiceSpecRollbackConfigFailureActionPause captures enum value "pause"
	ServiceSpecRollbackConfigFailureActionPause string = "pause"
)
View Source
const (

	// ServiceSpecRollbackConfigOrderStopFirst captures enum value "stop-first"
	ServiceSpecRollbackConfigOrderStopFirst string = "stop-first"

	// ServiceSpecRollbackConfigOrderStartFirst captures enum value "start-first"
	ServiceSpecRollbackConfigOrderStartFirst string = "start-first"
)
View Source
const (

	// ServiceSpecUpdateConfigFailureActionContinue captures enum value "continue"
	ServiceSpecUpdateConfigFailureActionContinue string = "continue"

	// ServiceSpecUpdateConfigFailureActionPause captures enum value "pause"
	ServiceSpecUpdateConfigFailureActionPause string = "pause"

	// ServiceSpecUpdateConfigFailureActionRollback captures enum value "rollback"
	ServiceSpecUpdateConfigFailureActionRollback string = "rollback"
)
View Source
const (

	// ServiceSpecUpdateConfigOrderStopFirst captures enum value "stop-first"
	ServiceSpecUpdateConfigOrderStopFirst string = "stop-first"

	// ServiceSpecUpdateConfigOrderStartFirst captures enum value "start-first"
	ServiceSpecUpdateConfigOrderStartFirst string = "start-first"
)
View Source
const (

	// ServiceUpdateStatusStateUpdating captures enum value "updating"
	ServiceUpdateStatusStateUpdating string = "updating"

	// ServiceUpdateStatusStatePaused captures enum value "paused"
	ServiceUpdateStatusStatePaused string = "paused"

	// ServiceUpdateStatusStateCompleted captures enum value "completed"
	ServiceUpdateStatusStateCompleted string = "completed"
)
View Source
const (

	// SystemInfoCgroupDriverCgroupfs captures enum value "cgroupfs"
	SystemInfoCgroupDriverCgroupfs string = "cgroupfs"

	// SystemInfoCgroupDriverSystemd captures enum value "systemd"
	SystemInfoCgroupDriverSystemd string = "systemd"
)
View Source
const (

	// SystemInfoIsolationDefault captures enum value "default"
	SystemInfoIsolationDefault string = "default"

	// SystemInfoIsolationHyperv captures enum value "hyperv"
	SystemInfoIsolationHyperv string = "hyperv"

	// SystemInfoIsolationProcess captures enum value "process"
	SystemInfoIsolationProcess string = "process"
)
View Source
const (

	// TaskSpecContainerSpecIsolationDefault captures enum value "default"
	TaskSpecContainerSpecIsolationDefault string = "default"

	// TaskSpecContainerSpecIsolationProcess captures enum value "process"
	TaskSpecContainerSpecIsolationProcess string = "process"

	// TaskSpecContainerSpecIsolationHyperv captures enum value "hyperv"
	TaskSpecContainerSpecIsolationHyperv string = "hyperv"
)
View Source
const (

	// TaskSpecRestartPolicyConditionNone captures enum value "none"
	TaskSpecRestartPolicyConditionNone string = "none"

	// TaskSpecRestartPolicyConditionOnFailure captures enum value "on-failure"
	TaskSpecRestartPolicyConditionOnFailure string = "on-failure"

	// TaskSpecRestartPolicyConditionAny captures enum value "any"
	TaskSpecRestartPolicyConditionAny string = "any"
)
View Source
const (

	// VolumeScopeLocal captures enum value "local"
	VolumeScopeLocal string = "local"

	// VolumeScopeGlobal captures enum value "global"
	VolumeScopeGlobal string = "global"
)
View Source
const (

	// SwarmSpecCAConfigExternalCAsItemsProtocolCfssl captures enum value "cfssl"
	SwarmSpecCAConfigExternalCAsItemsProtocolCfssl string = "cfssl"
)

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type Address ¶

type Address struct {

	// IP address.
	Addr string `json:"Addr,omitempty"`

	// Mask length of the IP address.
	PrefixLen int64 `json:"PrefixLen,omitempty"`
}

Address Address represents an IPv4 or IPv6 IP address. swagger:model Address

func (*Address) MarshalBinary ¶

func (m *Address) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Address) UnmarshalBinary ¶

func (m *Address) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Address) Validate ¶

func (m *Address) Validate(formats strfmt.Registry) error

Validate validates this address

type AuthConfig ¶

type AuthConfig struct {

	// email
	Email string `json:"email,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// serveraddress
	Serveraddress string `json:"serveraddress,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

AuthConfig auth config swagger:model AuthConfig

func (*AuthConfig) MarshalBinary ¶

func (m *AuthConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuthConfig) UnmarshalBinary ¶

func (m *AuthConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuthConfig) Validate ¶

func (m *AuthConfig) Validate(formats strfmt.Registry) error

Validate validates this auth config

type BuildInfo ¶

type BuildInfo struct {

	// aux
	Aux *ImageID `json:"aux,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// error detail
	ErrorDetail *ErrorDetail `json:"errorDetail,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// progress
	Progress string `json:"progress,omitempty"`

	// progress detail
	ProgressDetail *ProgressDetail `json:"progressDetail,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// stream
	Stream string `json:"stream,omitempty"`
}

BuildInfo build info swagger:model BuildInfo

func (*BuildInfo) MarshalBinary ¶

func (m *BuildInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuildInfo) UnmarshalBinary ¶

func (m *BuildInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuildInfo) Validate ¶

func (m *BuildInfo) Validate(formats strfmt.Registry) error

Validate validates this build info

type BuildPruneOKBody ¶

type BuildPruneOKBody struct {

	// Disk space reclaimed in bytes
	SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"`
}

BuildPruneOKBody BuildPruneResponse swagger:model buildPruneOKBody

func (*BuildPruneOKBody) MarshalBinary ¶

func (m *BuildPruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BuildPruneOKBody) UnmarshalBinary ¶

func (m *BuildPruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BuildPruneOKBody) Validate ¶

func (m *BuildPruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this build prune o k body

type ClusterInfo ¶

type ClusterInfo struct {

	// Date and time at which the swarm was initialised in
	// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
	//
	CreatedAt string `json:"CreatedAt,omitempty"`

	// The ID of the swarm.
	ID string `json:"ID,omitempty"`

	// Whether there is currently a root CA rotation in progress for the swarm
	RootRotationInProgress bool `json:"RootRotationInProgress,omitempty"`

	// spec
	Spec *SwarmSpec `json:"Spec,omitempty"`

	// TLS info
	TLSInfo *TLSInfo `json:"TLSInfo,omitempty"`

	// Date and time at which the swarm was last updated in
	// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
	//
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

ClusterInfo ClusterInfo represents information about the swarm as is returned by the "/info" endpoint. Join-tokens are not included.

swagger:model ClusterInfo

func (*ClusterInfo) MarshalBinary ¶

func (m *ClusterInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterInfo) UnmarshalBinary ¶

func (m *ClusterInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterInfo) Validate ¶

func (m *ClusterInfo) Validate(formats strfmt.Registry) error

Validate validates this cluster info

type Commit ¶

type Commit struct {

	// Commit ID of external tool expected by dockerd as set at build time.
	//
	Expected string `json:"Expected,omitempty"`

	// Actual commit ID of external tool.
	ID string `json:"ID,omitempty"`
}

Commit Commit holds the Git-commit (SHA1) that a binary was built from, as reported in the version-string of external tools, such as `containerd`, or `runC`.

swagger:model Commit

func (*Commit) MarshalBinary ¶

func (m *Commit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Commit) UnmarshalBinary ¶

func (m *Commit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Commit) Validate ¶

func (m *Commit) Validate(formats strfmt.Registry) error

Validate validates this commit

type Config ¶

type Config struct {

	// created at
	CreatedAt string `json:"CreatedAt,omitempty"`

	// ID
	ID string `json:"ID,omitempty"`

	// spec
	Spec *ConfigSpec `json:"Spec,omitempty"`

	// updated at
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

Config config swagger:model Config

func (*Config) MarshalBinary ¶

func (m *Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Config) UnmarshalBinary ¶

func (m *Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Config) Validate ¶

func (m *Config) Validate(formats strfmt.Registry) error

Validate validates this config

type ConfigCreateCreatedBody ¶

type ConfigCreateCreatedBody struct {

	// The ID of the created config.
	ID string `json:"ID,omitempty"`
}

ConfigCreateCreatedBody config create created body swagger:model configCreateCreatedBody

func (*ConfigCreateCreatedBody) MarshalBinary ¶

func (m *ConfigCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfigCreateCreatedBody) UnmarshalBinary ¶

func (m *ConfigCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigCreateCreatedBody) Validate ¶

func (m *ConfigCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this config create created body

type ConfigCreateParamsBody ¶

type ConfigCreateParamsBody struct {
	ConfigSpec
}

ConfigCreateParamsBody config create params body swagger:model configCreateParamsBody

func (*ConfigCreateParamsBody) MarshalBinary ¶

func (m *ConfigCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ConfigCreateParamsBody) MarshalJSON ¶

func (m ConfigCreateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ConfigCreateParamsBody) UnmarshalBinary ¶

func (m *ConfigCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigCreateParamsBody) UnmarshalJSON ¶

func (m *ConfigCreateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ConfigCreateParamsBody) Validate ¶

func (m *ConfigCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this config create params body

type ConfigListOKBody ¶

type ConfigListOKBody []*Config

ConfigListOKBody config list o k body swagger:model configListOKBody

func (ConfigListOKBody) Validate ¶

func (m ConfigListOKBody) Validate(formats strfmt.Registry) error

Validate validates this config list o k body

type ConfigSpec ¶

type ConfigSpec struct {

	// Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
	// config data.
	//
	Data string `json:"Data,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// User-defined name of the config.
	Name string `json:"Name,omitempty"`
}

ConfigSpec config spec swagger:model ConfigSpec

func (*ConfigSpec) MarshalBinary ¶

func (m *ConfigSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfigSpec) UnmarshalBinary ¶

func (m *ConfigSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigSpec) Validate ¶

func (m *ConfigSpec) Validate(formats strfmt.Registry) error

Validate validates this config spec

type ContainerArchiveBadRequestBody ¶

type ContainerArchiveBadRequestBody struct {
	ErrorResponse

	ContainerArchiveBadRequestBodyAllOf1
}

ContainerArchiveBadRequestBody container archive bad request body swagger:model containerArchiveBadRequestBody

func (*ContainerArchiveBadRequestBody) MarshalBinary ¶

func (m *ContainerArchiveBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerArchiveBadRequestBody) MarshalJSON ¶

func (m ContainerArchiveBadRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerArchiveBadRequestBody) UnmarshalBinary ¶

func (m *ContainerArchiveBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveBadRequestBody) UnmarshalJSON ¶

func (m *ContainerArchiveBadRequestBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerArchiveBadRequestBody) Validate ¶

func (m *ContainerArchiveBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this container archive bad request body

type ContainerArchiveBadRequestBodyAllOf1 ¶

type ContainerArchiveBadRequestBodyAllOf1 struct {

	// The error message. Either "must specify path parameter" (path cannot be empty) or "not a directory" (path was asserted to be a directory but exists as a file).
	Message string `json:"message,omitempty"`
}

ContainerArchiveBadRequestBodyAllOf1 container archive bad request body all of1 swagger:model containerArchiveBadRequestBodyAllOf1

func (*ContainerArchiveBadRequestBodyAllOf1) MarshalBinary ¶

func (m *ContainerArchiveBadRequestBodyAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerArchiveBadRequestBodyAllOf1) UnmarshalBinary ¶

func (m *ContainerArchiveBadRequestBodyAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveBadRequestBodyAllOf1) Validate ¶

Validate validates this container archive bad request body all of1

type ContainerArchiveInfoBadRequestBody ¶

type ContainerArchiveInfoBadRequestBody struct {
	ErrorResponse

	ContainerArchiveInfoBadRequestBodyAllOf1
}

ContainerArchiveInfoBadRequestBody container archive info bad request body swagger:model containerArchiveInfoBadRequestBody

func (*ContainerArchiveInfoBadRequestBody) MarshalBinary ¶

func (m *ContainerArchiveInfoBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerArchiveInfoBadRequestBody) MarshalJSON ¶

func (m ContainerArchiveInfoBadRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerArchiveInfoBadRequestBody) UnmarshalBinary ¶

func (m *ContainerArchiveInfoBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveInfoBadRequestBody) UnmarshalJSON ¶

func (m *ContainerArchiveInfoBadRequestBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerArchiveInfoBadRequestBody) Validate ¶

Validate validates this container archive info bad request body

type ContainerArchiveInfoBadRequestBodyAllOf1 ¶

type ContainerArchiveInfoBadRequestBodyAllOf1 struct {

	// The error message. Either "must specify path parameter" (path cannot be empty) or "not a directory" (path was asserted to be a directory but exists as a file).
	Message string `json:"message,omitempty"`
}

ContainerArchiveInfoBadRequestBodyAllOf1 container archive info bad request body all of1 swagger:model containerArchiveInfoBadRequestBodyAllOf1

func (*ContainerArchiveInfoBadRequestBodyAllOf1) MarshalBinary ¶

func (m *ContainerArchiveInfoBadRequestBodyAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerArchiveInfoBadRequestBodyAllOf1) UnmarshalBinary ¶

func (m *ContainerArchiveInfoBadRequestBodyAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveInfoBadRequestBodyAllOf1) Validate ¶

Validate validates this container archive info bad request body all of1

type ContainerChangeResponseItem ¶

type ContainerChangeResponseItem struct {

	// Kind of change
	// Required: true
	Kind uint8 `json:"Kind"`

	// Path to file that has changed
	// Required: true
	Path string `json:"Path"`
}

ContainerChangeResponseItem ContainerChangeResponseItem

change item in response to ContainerChanges operation swagger:model ContainerChangeResponseItem

func (*ContainerChangeResponseItem) MarshalBinary ¶

func (m *ContainerChangeResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerChangeResponseItem) UnmarshalBinary ¶

func (m *ContainerChangeResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerChangeResponseItem) Validate ¶

func (m *ContainerChangeResponseItem) Validate(formats strfmt.Registry) error

Validate validates this container change response item

type ContainerChangesOKBody ¶

type ContainerChangesOKBody []*ContainerChangeResponseItem

ContainerChangesOKBody container changes o k body swagger:model containerChangesOKBody

func (ContainerChangesOKBody) Validate ¶

func (m ContainerChangesOKBody) Validate(formats strfmt.Registry) error

Validate validates this container changes o k body

type ContainerConfig ¶

type ContainerConfig struct {

	// Command is already escaped (Windows only)
	ArgsEscaped bool `json:"ArgsEscaped,omitempty"`

	// Whether to attach to `stderr`.
	AttachStderr *bool `json:"AttachStderr,omitempty"`

	// Whether to attach to `stdin`.
	AttachStdin *bool `json:"AttachStdin,omitempty"`

	// Whether to attach to `stdout`.
	AttachStdout *bool `json:"AttachStdout,omitempty"`

	// Command to run specified as a string or an array of strings.
	Cmd []string `json:"Cmd"`

	// The domain name to use for the container.
	Domainname string `json:"Domainname,omitempty"`

	// The entry point for the container as a string or an array of strings.
	//
	// If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
	//
	Entrypoint []string `json:"Entrypoint"`

	// A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value.
	//
	Env []string `json:"Env"`

	// An object mapping ports to an empty object in the form:
	//
	// `{"<port>/<tcp|udp>": {}}`
	//
	ExposedPorts map[string]interface{} `json:"ExposedPorts,omitempty"`

	// healthcheck
	Healthcheck *HealthConfig `json:"Healthcheck,omitempty"`

	// The hostname to use for the container, as a valid RFC 1123 hostname.
	Hostname string `json:"Hostname,omitempty"`

	// The name of the image to use when creating the container
	Image string `json:"Image,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// MAC address of the container.
	MacAddress string `json:"MacAddress,omitempty"`

	// Disable networking for the container.
	NetworkDisabled bool `json:"NetworkDisabled,omitempty"`

	// `ONBUILD` metadata that were defined in the image's `Dockerfile`.
	OnBuild []string `json:"OnBuild"`

	// Open `stdin`
	OpenStdin *bool `json:"OpenStdin,omitempty"`

	// Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
	Shell []string `json:"Shell"`

	// Close `stdin` after one attached client disconnects
	StdinOnce *bool `json:"StdinOnce,omitempty"`

	// Signal to stop a container as a string or unsigned integer.
	StopSignal *string `json:"StopSignal,omitempty"`

	// Timeout to stop a container in seconds.
	StopTimeout *int64 `json:"StopTimeout,omitempty"`

	// Attach standard streams to a TTY, including `stdin` if it is not closed.
	Tty *bool `json:"Tty,omitempty"`

	// The user that commands are run as inside the container.
	User string `json:"User,omitempty"`

	// volumes
	Volumes *ContainerConfigVolumes `json:"Volumes,omitempty"`

	// The working directory for commands to run in.
	WorkingDir string `json:"WorkingDir,omitempty"`
}

ContainerConfig Configuration for a container that is portable between hosts swagger:model ContainerConfig

func (*ContainerConfig) MarshalBinary ¶

func (m *ContainerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerConfig) UnmarshalBinary ¶

func (m *ContainerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerConfig) Validate ¶

func (m *ContainerConfig) Validate(formats strfmt.Registry) error

Validate validates this container config

type ContainerConfigVolumes ¶

type ContainerConfigVolumes struct {

	// additional properties
	AdditionalProperties interface{} `json:"additionalProperties,omitempty"`
}

ContainerConfigVolumes An object mapping mount point paths inside the container to empty objects. swagger:model containerConfigVolumes

func (*ContainerConfigVolumes) MarshalBinary ¶

func (m *ContainerConfigVolumes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerConfigVolumes) UnmarshalBinary ¶

func (m *ContainerConfigVolumes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerConfigVolumes) Validate ¶

func (m *ContainerConfigVolumes) Validate(formats strfmt.Registry) error

Validate validates this container config volumes

type ContainerCreateCreatedBody ¶

type ContainerCreateCreatedBody struct {

	// The ID of the created container
	// Required: true
	ID string `json:"Id"`

	// Warnings encountered when creating the container
	// Required: true
	Warnings []string `json:"Warnings"`
}

ContainerCreateCreatedBody ContainerCreateResponse

OK response to ContainerCreate operation swagger:model containerCreateCreatedBody

func (*ContainerCreateCreatedBody) MarshalBinary ¶

func (m *ContainerCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerCreateCreatedBody) UnmarshalBinary ¶

func (m *ContainerCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerCreateCreatedBody) Validate ¶

func (m *ContainerCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this container create created body

type ContainerCreateParamsBody ¶

type ContainerCreateParamsBody struct {
	ContainerConfig

	ContainerCreateParamsBodyAllOf1
}

ContainerCreateParamsBody container create params body swagger:model containerCreateParamsBody

func (*ContainerCreateParamsBody) MarshalBinary ¶

func (m *ContainerCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerCreateParamsBody) MarshalJSON ¶

func (m ContainerCreateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerCreateParamsBody) UnmarshalBinary ¶

func (m *ContainerCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerCreateParamsBody) UnmarshalJSON ¶

func (m *ContainerCreateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerCreateParamsBody) Validate ¶

func (m *ContainerCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this container create params body

type ContainerCreateParamsBodyAllOf1 ¶

type ContainerCreateParamsBodyAllOf1 struct {

	// host config
	HostConfig *HostConfig `json:"HostConfig,omitempty"`

	// networking config
	NetworkingConfig *ContainerCreateParamsBodyAllOf1NetworkingConfig `json:"NetworkingConfig,omitempty"`
}

ContainerCreateParamsBodyAllOf1 container create params body all of1 swagger:model containerCreateParamsBodyAllOf1

func (*ContainerCreateParamsBodyAllOf1) MarshalBinary ¶

func (m *ContainerCreateParamsBodyAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerCreateParamsBodyAllOf1) UnmarshalBinary ¶

func (m *ContainerCreateParamsBodyAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerCreateParamsBodyAllOf1) Validate ¶

Validate validates this container create params body all of1

type ContainerCreateParamsBodyAllOf1NetworkingConfig ¶

type ContainerCreateParamsBodyAllOf1NetworkingConfig struct {

	// endpoints config
	EndpointsConfig ContainerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig `json:"EndpointsConfig,omitempty"`
}

ContainerCreateParamsBodyAllOf1NetworkingConfig This container's networking configuration. swagger:model containerCreateParamsBodyAllOf1NetworkingConfig

func (*ContainerCreateParamsBodyAllOf1NetworkingConfig) MarshalBinary ¶

MarshalBinary interface implementation

func (*ContainerCreateParamsBodyAllOf1NetworkingConfig) UnmarshalBinary ¶

UnmarshalBinary interface implementation

func (*ContainerCreateParamsBodyAllOf1NetworkingConfig) Validate ¶

Validate validates this container create params body all of1 networking config

type ContainerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig ¶

type ContainerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig map[string]EndpointSettings

ContainerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig A mapping of network name to endpoint configuration for that network. swagger:model containerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig

func (ContainerCreateParamsBodyAllOf1NetworkingConfigEndpointsConfig) Validate ¶

Validate validates this container create params body all of1 networking config endpoints config

type ContainerExecParamsBody ¶

type ContainerExecParamsBody struct {

	// Attach to `stderr` of the exec command.
	AttachStderr bool `json:"AttachStderr,omitempty"`

	// Attach to `stdin` of the exec command.
	AttachStdin bool `json:"AttachStdin,omitempty"`

	// Attach to `stdout` of the exec command.
	AttachStdout bool `json:"AttachStdout,omitempty"`

	// Command to run, as a string or array of strings.
	Cmd []string `json:"Cmd"`

	// Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
	DetachKeys string `json:"DetachKeys,omitempty"`

	// A list of environment variables in the form `["VAR=value", ...]`.
	Env []string `json:"Env"`

	// Runs the exec process with extended privileges.
	Privileged *bool `json:"Privileged,omitempty"`

	// Allocate a pseudo-TTY.
	Tty bool `json:"Tty,omitempty"`

	// The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`.
	User string `json:"User,omitempty"`

	// The working directory for the exec process inside the container.
	WorkingDir string `json:"WorkingDir,omitempty"`
}

ContainerExecParamsBody container exec params body swagger:model containerExecParamsBody

func (*ContainerExecParamsBody) MarshalBinary ¶

func (m *ContainerExecParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerExecParamsBody) UnmarshalBinary ¶

func (m *ContainerExecParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerExecParamsBody) Validate ¶

func (m *ContainerExecParamsBody) Validate(formats strfmt.Registry) error

Validate validates this container exec params body

type ContainerInspectOKBody ¶

type ContainerInspectOKBody struct {

	// app armor profile
	AppArmorProfile string `json:"AppArmorProfile,omitempty"`

	// The arguments to the command being run
	Args []string `json:"Args"`

	// config
	Config *ContainerConfig `json:"Config,omitempty"`

	// The time the container was created
	Created string `json:"Created,omitempty"`

	// driver
	Driver string `json:"Driver,omitempty"`

	// exec ids
	ExecIds string `json:"ExecIDs,omitempty"`

	// graph driver
	GraphDriver *GraphDriverData `json:"GraphDriver,omitempty"`

	// host config
	HostConfig *HostConfig `json:"HostConfig,omitempty"`

	// hostname path
	HostnamePath string `json:"HostnamePath,omitempty"`

	// hosts path
	HostsPath string `json:"HostsPath,omitempty"`

	// The ID of the container
	ID string `json:"Id,omitempty"`

	// The container's image
	Image string `json:"Image,omitempty"`

	// log path
	LogPath string `json:"LogPath,omitempty"`

	// mount label
	MountLabel string `json:"MountLabel,omitempty"`

	// mounts
	Mounts ContainerInspectOKBodyMounts `json:"Mounts"`

	// name
	Name string `json:"Name,omitempty"`

	// network settings
	NetworkSettings *NetworkSettings `json:"NetworkSettings,omitempty"`

	// TODO
	Node interface{} `json:"Node,omitempty"`

	// The path to the command being run
	Path string `json:"Path,omitempty"`

	// process label
	ProcessLabel string `json:"ProcessLabel,omitempty"`

	// resolv conf path
	ResolvConfPath string `json:"ResolvConfPath,omitempty"`

	// restart count
	RestartCount int64 `json:"RestartCount,omitempty"`

	// The total size of all the files in this container.
	SizeRootFs int64 `json:"SizeRootFs,omitempty"`

	// The size of files that have been created or changed by this container.
	SizeRw int64 `json:"SizeRw,omitempty"`

	// state
	State *ContainerInspectOKBodyState `json:"State,omitempty"`
}

ContainerInspectOKBody ContainerInspectResponse swagger:model containerInspectOKBody

func (*ContainerInspectOKBody) MarshalBinary ¶

func (m *ContainerInspectOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerInspectOKBody) UnmarshalBinary ¶

func (m *ContainerInspectOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerInspectOKBody) Validate ¶

func (m *ContainerInspectOKBody) Validate(formats strfmt.Registry) error

Validate validates this container inspect o k body

type ContainerInspectOKBodyMounts ¶

type ContainerInspectOKBodyMounts []*MountPoint

ContainerInspectOKBodyMounts container inspect o k body mounts swagger:model containerInspectOKBodyMounts

func (ContainerInspectOKBodyMounts) Validate ¶

func (m ContainerInspectOKBodyMounts) Validate(formats strfmt.Registry) error

Validate validates this container inspect o k body mounts

type ContainerInspectOKBodyState ¶

type ContainerInspectOKBodyState struct {

	// dead
	Dead bool `json:"Dead,omitempty"`

	// error
	Error string `json:"Error,omitempty"`

	// The last exit code of this container
	ExitCode int64 `json:"ExitCode,omitempty"`

	// The time when this container last exited.
	FinishedAt string `json:"FinishedAt,omitempty"`

	// Whether this container has been killed because it ran out of memory.
	OOMKilled bool `json:"OOMKilled,omitempty"`

	// Whether this container is paused.
	Paused bool `json:"Paused,omitempty"`

	// The process ID of this container
	Pid int64 `json:"Pid,omitempty"`

	// Whether this container is restarting.
	Restarting bool `json:"Restarting,omitempty"`

	// Whether this container is running.
	//
	// Note that a running container can be _paused_. The `Running` and `Paused`
	// booleans are not mutually exclusive:
	//
	// When pausing a container (on Linux), the cgroups freezer is used to suspend
	// all processes in the container. Freezing the process requires the process to
	// be running. As a result, paused containers are both `Running` _and_ `Paused`.
	//
	// Use the `Status` field instead to determine if a container's state is "running".
	//
	Running bool `json:"Running,omitempty"`

	// The time when this container was last started.
	StartedAt string `json:"StartedAt,omitempty"`

	// The status of the container. For example, `"running"` or `"exited"`.
	//
	Status string `json:"Status,omitempty"`
}

ContainerInspectOKBodyState The state of the container. swagger:model containerInspectOKBodyState

func (*ContainerInspectOKBodyState) MarshalBinary ¶

func (m *ContainerInspectOKBodyState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerInspectOKBodyState) UnmarshalBinary ¶

func (m *ContainerInspectOKBodyState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerInspectOKBodyState) Validate ¶

func (m *ContainerInspectOKBodyState) Validate(formats strfmt.Registry) error

Validate validates this container inspect o k body state

type ContainerPruneOKBody ¶

type ContainerPruneOKBody struct {

	// Container IDs that were deleted
	ContainersDeleted []string `json:"ContainersDeleted"`

	// Disk space reclaimed in bytes
	SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"`
}

ContainerPruneOKBody ContainerPruneResponse swagger:model containerPruneOKBody

func (*ContainerPruneOKBody) MarshalBinary ¶

func (m *ContainerPruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerPruneOKBody) UnmarshalBinary ¶

func (m *ContainerPruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerPruneOKBody) Validate ¶

func (m *ContainerPruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this container prune o k body

type ContainerSummary ¶

type ContainerSummary []*ContainerSummaryItems

ContainerSummary container summary swagger:model ContainerSummary

func (ContainerSummary) Validate ¶

func (m ContainerSummary) Validate(formats strfmt.Registry) error

Validate validates this container summary

type ContainerSummaryItems ¶

type ContainerSummaryItems struct {

	// Command to run when starting the container
	Command string `json:"Command,omitempty"`

	// When the container was created
	Created int64 `json:"Created,omitempty"`

	// host config
	HostConfig *ContainerSummaryItemsHostConfig `json:"HostConfig,omitempty"`

	// The ID of this container
	ID string `json:"Id,omitempty"`

	// The name of the image used when creating this container
	Image string `json:"Image,omitempty"`

	// The ID of the image that this container was created from
	ImageID string `json:"ImageID,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// mounts
	Mounts ContainerSummaryItemsMounts `json:"Mounts"`

	// The names that this container has been given
	Names []string `json:"Names"`

	// network settings
	NetworkSettings *ContainerSummaryItemsNetworkSettings `json:"NetworkSettings,omitempty"`

	// ports
	Ports ContainerSummaryItemsPorts `json:"Ports"`

	// The total size of all the files in this container
	SizeRootFs int64 `json:"SizeRootFs,omitempty"`

	// The size of files that have been created or changed by this container
	SizeRw int64 `json:"SizeRw,omitempty"`

	// The state of this container (e.g. `Exited`)
	State string `json:"State,omitempty"`

	// Additional human-readable status of this container (e.g. `Exit 0`)
	Status string `json:"Status,omitempty"`
}

ContainerSummaryItems container summary items swagger:model containerSummaryItems

func (*ContainerSummaryItems) MarshalBinary ¶

func (m *ContainerSummaryItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerSummaryItems) UnmarshalBinary ¶

func (m *ContainerSummaryItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerSummaryItems) Validate ¶

func (m *ContainerSummaryItems) Validate(formats strfmt.Registry) error

Validate validates this container summary items

type ContainerSummaryItemsHostConfig ¶

type ContainerSummaryItemsHostConfig struct {

	// network mode
	NetworkMode string `json:"NetworkMode,omitempty"`
}

ContainerSummaryItemsHostConfig container summary items host config swagger:model containerSummaryItemsHostConfig

func (*ContainerSummaryItemsHostConfig) MarshalBinary ¶

func (m *ContainerSummaryItemsHostConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerSummaryItemsHostConfig) UnmarshalBinary ¶

func (m *ContainerSummaryItemsHostConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerSummaryItemsHostConfig) Validate ¶

Validate validates this container summary items host config

type ContainerSummaryItemsMounts ¶

type ContainerSummaryItemsMounts []*Mount

ContainerSummaryItemsMounts container summary items mounts swagger:model containerSummaryItemsMounts

func (ContainerSummaryItemsMounts) Validate ¶

func (m ContainerSummaryItemsMounts) Validate(formats strfmt.Registry) error

Validate validates this container summary items mounts

type ContainerSummaryItemsNetworkSettings ¶

type ContainerSummaryItemsNetworkSettings struct {

	// networks
	Networks ContainerSummaryItemsNetworkSettingsNetworks `json:"Networks,omitempty"`
}

ContainerSummaryItemsNetworkSettings A summary of the container's network settings swagger:model containerSummaryItemsNetworkSettings

func (*ContainerSummaryItemsNetworkSettings) MarshalBinary ¶

func (m *ContainerSummaryItemsNetworkSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerSummaryItemsNetworkSettings) UnmarshalBinary ¶

func (m *ContainerSummaryItemsNetworkSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerSummaryItemsNetworkSettings) Validate ¶

Validate validates this container summary items network settings

type ContainerSummaryItemsNetworkSettingsNetworks ¶

type ContainerSummaryItemsNetworkSettingsNetworks map[string]EndpointSettings

ContainerSummaryItemsNetworkSettingsNetworks container summary items network settings networks swagger:model containerSummaryItemsNetworkSettingsNetworks

func (ContainerSummaryItemsNetworkSettingsNetworks) Validate ¶

Validate validates this container summary items network settings networks

type ContainerSummaryItemsPorts ¶

type ContainerSummaryItemsPorts []*Port

ContainerSummaryItemsPorts The ports exposed by this container swagger:model containerSummaryItemsPorts

func (ContainerSummaryItemsPorts) Validate ¶

func (m ContainerSummaryItemsPorts) Validate(formats strfmt.Registry) error

Validate validates this container summary items ports

type ContainerTopOKBody ¶

type ContainerTopOKBody struct {

	// Each process running in the container, where each is process is an array of values corresponding to the titles
	Processes [][]string `json:"Processes"`

	// The ps column titles
	Titles []string `json:"Titles"`
}

ContainerTopOKBody ContainerTopResponse

OK response to ContainerTop operation swagger:model containerTopOKBody

func (*ContainerTopOKBody) MarshalBinary ¶

func (m *ContainerTopOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerTopOKBody) UnmarshalBinary ¶

func (m *ContainerTopOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerTopOKBody) Validate ¶

func (m *ContainerTopOKBody) Validate(formats strfmt.Registry) error

Validate validates this container top o k body

type ContainerUpdateOKBody ¶

type ContainerUpdateOKBody struct {

	// warnings
	Warnings []string `json:"Warnings"`
}

ContainerUpdateOKBody ContainerUpdateResponse

OK response to ContainerUpdate operation swagger:model containerUpdateOKBody

func (*ContainerUpdateOKBody) MarshalBinary ¶

func (m *ContainerUpdateOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerUpdateOKBody) UnmarshalBinary ¶

func (m *ContainerUpdateOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerUpdateOKBody) Validate ¶

func (m *ContainerUpdateOKBody) Validate(formats strfmt.Registry) error

Validate validates this container update o k body

type ContainerUpdateParamsBody ¶

type ContainerUpdateParamsBody struct {
	Resources

	ContainerUpdateParamsBodyAllOf1
}

ContainerUpdateParamsBody container update params body swagger:model containerUpdateParamsBody

func (*ContainerUpdateParamsBody) MarshalBinary ¶

func (m *ContainerUpdateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerUpdateParamsBody) MarshalJSON ¶

func (m ContainerUpdateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerUpdateParamsBody) UnmarshalBinary ¶

func (m *ContainerUpdateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerUpdateParamsBody) UnmarshalJSON ¶

func (m *ContainerUpdateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerUpdateParamsBody) Validate ¶

func (m *ContainerUpdateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this container update params body

type ContainerUpdateParamsBodyAllOf1 ¶

type ContainerUpdateParamsBodyAllOf1 struct {

	// restart policy
	RestartPolicy *RestartPolicy `json:"RestartPolicy,omitempty"`
}

ContainerUpdateParamsBodyAllOf1 container update params body all of1 swagger:model containerUpdateParamsBodyAllOf1

func (*ContainerUpdateParamsBodyAllOf1) MarshalBinary ¶

func (m *ContainerUpdateParamsBodyAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerUpdateParamsBodyAllOf1) UnmarshalBinary ¶

func (m *ContainerUpdateParamsBodyAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerUpdateParamsBodyAllOf1) Validate ¶

Validate validates this container update params body all of1

type ContainerWaitOKBody ¶

type ContainerWaitOKBody struct {

	// error
	Error *ContainerWaitOKBodyError `json:"Error,omitempty"`

	// Exit code of the container
	// Required: true
	StatusCode int64 `json:"StatusCode"`
}

ContainerWaitOKBody ContainerWaitResponse

OK response to ContainerWait operation swagger:model containerWaitOKBody

func (*ContainerWaitOKBody) MarshalBinary ¶

func (m *ContainerWaitOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerWaitOKBody) UnmarshalBinary ¶

func (m *ContainerWaitOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerWaitOKBody) Validate ¶

func (m *ContainerWaitOKBody) Validate(formats strfmt.Registry) error

Validate validates this container wait o k body

type CreateImageInfo ¶

type CreateImageInfo struct {

	// error
	Error string `json:"error,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// progress
	Progress string `json:"progress,omitempty"`

	// progress detail
	ProgressDetail *ProgressDetail `json:"progressDetail,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

CreateImageInfo create image info swagger:model CreateImageInfo

func (*CreateImageInfo) MarshalBinary ¶

func (m *CreateImageInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImageInfo) UnmarshalBinary ¶

func (m *CreateImageInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImageInfo) Validate ¶

func (m *CreateImageInfo) Validate(formats strfmt.Registry) error

Validate validates this create image info

type DeviceMapping ¶

type DeviceMapping struct {

	// cgroup permissions
	CgroupPermissions string `json:"CgroupPermissions,omitempty"`

	// path in container
	PathInContainer string `json:"PathInContainer,omitempty"`

	// path on host
	PathOnHost string `json:"PathOnHost,omitempty"`
}

DeviceMapping A device mapping between the host and container swagger:model DeviceMapping

func (*DeviceMapping) MarshalBinary ¶

func (m *DeviceMapping) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceMapping) UnmarshalBinary ¶

func (m *DeviceMapping) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceMapping) Validate ¶

func (m *DeviceMapping) Validate(formats strfmt.Registry) error

Validate validates this device mapping

type DistributionInspect ¶

type DistributionInspect struct {

	// descriptor
	// Required: true
	Descriptor *DistributionInspectOKBodyDescriptor `json:"Descriptor"`

	// platforms
	// Required: true
	Platforms DistributionInspectOKBodyPlatforms `json:"Platforms"`
}

DistributionInspect DistributionInspectResponse swagger:model DistributionInspect

func (*DistributionInspect) MarshalBinary ¶

func (m *DistributionInspect) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DistributionInspect) UnmarshalBinary ¶

func (m *DistributionInspect) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DistributionInspect) Validate ¶

func (m *DistributionInspect) Validate(formats strfmt.Registry) error

Validate validates this distribution inspect

type DistributionInspectOKBodyDescriptor ¶

type DistributionInspectOKBodyDescriptor struct {

	// digest
	Digest string `json:"Digest,omitempty"`

	// media type
	MediaType string `json:"MediaType,omitempty"`

	// size
	Size int64 `json:"Size,omitempty"`

	// urls
	Urls []string `json:"URLs"`
}

DistributionInspectOKBodyDescriptor A descriptor struct containing digest, media type, and size swagger:model distributionInspectOKBodyDescriptor

func (*DistributionInspectOKBodyDescriptor) MarshalBinary ¶

func (m *DistributionInspectOKBodyDescriptor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DistributionInspectOKBodyDescriptor) UnmarshalBinary ¶

func (m *DistributionInspectOKBodyDescriptor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DistributionInspectOKBodyDescriptor) Validate ¶

Validate validates this distribution inspect o k body descriptor

type DistributionInspectOKBodyPlatforms ¶

type DistributionInspectOKBodyPlatforms []*DistributionInspectOKBodyPlatformsItems

DistributionInspectOKBodyPlatforms An array containing all platforms supported by the image swagger:model distributionInspectOKBodyPlatforms

func (DistributionInspectOKBodyPlatforms) Validate ¶

Validate validates this distribution inspect o k body platforms

type DistributionInspectOKBodyPlatformsItems ¶

type DistributionInspectOKBodyPlatformsItems struct {

	// architecture
	Architecture string `json:"Architecture,omitempty"`

	// features
	Features []string `json:"Features"`

	// o s
	OS string `json:"OS,omitempty"`

	// o s features
	OSFeatures []string `json:"OSFeatures"`

	// o s version
	OSVersion string `json:"OSVersion,omitempty"`

	// variant
	Variant string `json:"Variant,omitempty"`
}

DistributionInspectOKBodyPlatformsItems distribution inspect o k body platforms items swagger:model distributionInspectOKBodyPlatformsItems

func (*DistributionInspectOKBodyPlatformsItems) MarshalBinary ¶

func (m *DistributionInspectOKBodyPlatformsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DistributionInspectOKBodyPlatformsItems) UnmarshalBinary ¶

func (m *DistributionInspectOKBodyPlatformsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DistributionInspectOKBodyPlatformsItems) Validate ¶

Validate validates this distribution inspect o k body platforms items

type Driver ¶

type Driver struct {

	// Name of the driver.
	// Required: true
	Name string `json:"Name"`

	// Key/value map of driver-specific options.
	Options map[string]string `json:"Options,omitempty"`
}

Driver Driver represents a driver (network, logging, secrets). swagger:model Driver

func (*Driver) MarshalBinary ¶

func (m *Driver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Driver) UnmarshalBinary ¶

func (m *Driver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Driver) Validate ¶

func (m *Driver) Validate(formats strfmt.Registry) error

Validate validates this driver

type EndpointIPAMConfig ¶

type EndpointIPAMConfig struct {

	// ipv4 address
	IPV4Address string `json:"IPv4Address,omitempty"`

	// ipv6 address
	IPV6Address string `json:"IPv6Address,omitempty"`

	// link local ips
	LinkLocalIps []string `json:"LinkLocalIPs"`
}

EndpointIPAMConfig EndpointIPAMConfig represents an endpoint's IPAM configuration.

swagger:model EndpointIPAMConfig

func (*EndpointIPAMConfig) MarshalBinary ¶

func (m *EndpointIPAMConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EndpointIPAMConfig) UnmarshalBinary ¶

func (m *EndpointIPAMConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EndpointIPAMConfig) Validate ¶

func (m *EndpointIPAMConfig) Validate(formats strfmt.Registry) error

Validate validates this endpoint IP a m config

type EndpointPortConfig ¶

type EndpointPortConfig struct {

	// name
	Name string `json:"Name,omitempty"`

	// protocol
	Protocol string `json:"Protocol,omitempty"`

	// The mode in which port is published.
	//
	// <p><br /></p>
	//
	// - "ingress" makes the target port accessible on on every node,
	//   regardless of whether there is a task for the service running on
	//   that node or not.
	// - "host" bypasses the routing mesh and publish the port directly on
	//   the swarm node where that service is running.
	//
	PublishMode *string `json:"PublishMode,omitempty"`

	// The port on the swarm hosts.
	PublishedPort int64 `json:"PublishedPort,omitempty"`

	// The port inside the container.
	TargetPort int64 `json:"TargetPort,omitempty"`
}

EndpointPortConfig endpoint port config swagger:model EndpointPortConfig

func (*EndpointPortConfig) MarshalBinary ¶

func (m *EndpointPortConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EndpointPortConfig) UnmarshalBinary ¶

func (m *EndpointPortConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EndpointPortConfig) Validate ¶

func (m *EndpointPortConfig) Validate(formats strfmt.Registry) error

Validate validates this endpoint port config

type EndpointSettings ¶

type EndpointSettings struct {

	// aliases
	Aliases []string `json:"Aliases"`

	// DriverOpts is a mapping of driver options and values. These options
	// are passed directly to the driver and are driver specific.
	//
	DriverOpts map[string]string `json:"DriverOpts,omitempty"`

	// Unique ID for the service endpoint in a Sandbox.
	//
	EndpointID string `json:"EndpointID,omitempty"`

	// Gateway address for this network.
	//
	Gateway string `json:"Gateway,omitempty"`

	// Global IPv6 address.
	//
	GlobalIPV6Address string `json:"GlobalIPv6Address,omitempty"`

	// Mask length of the global IPv6 address.
	//
	GlobalIPV6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"`

	// IP a m config
	IPAMConfig *EndpointIPAMConfig `json:"IPAMConfig,omitempty"`

	// IPv4 address.
	//
	IPAddress string `json:"IPAddress,omitempty"`

	// Mask length of the IPv4 address.
	//
	IPPrefixLen int64 `json:"IPPrefixLen,omitempty"`

	// IPv6 gateway address.
	//
	IPV6Gateway string `json:"IPv6Gateway,omitempty"`

	// links
	Links []string `json:"Links"`

	// MAC address for the endpoint on this network.
	//
	MacAddress string `json:"MacAddress,omitempty"`

	// Unique ID of the network.
	//
	NetworkID string `json:"NetworkID,omitempty"`
}

EndpointSettings Configuration for a network endpoint. swagger:model EndpointSettings

func (*EndpointSettings) MarshalBinary ¶

func (m *EndpointSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EndpointSettings) UnmarshalBinary ¶

func (m *EndpointSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EndpointSettings) Validate ¶

func (m *EndpointSettings) Validate(formats strfmt.Registry) error

Validate validates this endpoint settings

type EndpointSpec ¶

type EndpointSpec struct {

	// The mode of resolution to use for internal load balancing between tasks.
	Mode *string `json:"Mode,omitempty"`

	// ports
	Ports EndpointSpecPorts `json:"Ports"`
}

EndpointSpec Properties that can be configured to access and load balance a service. swagger:model EndpointSpec

func (*EndpointSpec) MarshalBinary ¶

func (m *EndpointSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EndpointSpec) UnmarshalBinary ¶

func (m *EndpointSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EndpointSpec) Validate ¶

func (m *EndpointSpec) Validate(formats strfmt.Registry) error

Validate validates this endpoint spec

type EndpointSpecPorts ¶

type EndpointSpecPorts []*EndpointPortConfig

EndpointSpecPorts List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. swagger:model endpointSpecPorts

func (EndpointSpecPorts) Validate ¶

func (m EndpointSpecPorts) Validate(formats strfmt.Registry) error

Validate validates this endpoint spec ports

type EngineDescription ¶

type EngineDescription struct {

	// engine version
	EngineVersion string `json:"EngineVersion,omitempty"`

	// labels
	Labels map[string]string `json:"Labels,omitempty"`

	// plugins
	Plugins EngineDescriptionPlugins `json:"Plugins"`
}

EngineDescription EngineDescription provides information about an engine. swagger:model EngineDescription

func (*EngineDescription) MarshalBinary ¶

func (m *EngineDescription) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EngineDescription) UnmarshalBinary ¶

func (m *EngineDescription) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EngineDescription) Validate ¶

func (m *EngineDescription) Validate(formats strfmt.Registry) error

Validate validates this engine description

type EngineDescriptionPlugins ¶

type EngineDescriptionPlugins []*EngineDescriptionPluginsItems

EngineDescriptionPlugins engine description plugins swagger:model engineDescriptionPlugins

func (EngineDescriptionPlugins) Validate ¶

func (m EngineDescriptionPlugins) Validate(formats strfmt.Registry) error

Validate validates this engine description plugins

type EngineDescriptionPluginsItems ¶

type EngineDescriptionPluginsItems struct {

	// name
	Name string `json:"Name,omitempty"`

	// type
	Type string `json:"Type,omitempty"`
}

EngineDescriptionPluginsItems engine description plugins items swagger:model engineDescriptionPluginsItems

func (*EngineDescriptionPluginsItems) MarshalBinary ¶

func (m *EngineDescriptionPluginsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EngineDescriptionPluginsItems) UnmarshalBinary ¶

func (m *EngineDescriptionPluginsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EngineDescriptionPluginsItems) Validate ¶

func (m *EngineDescriptionPluginsItems) Validate(formats strfmt.Registry) error

Validate validates this engine description plugins items

type ErrorDetail ¶

type ErrorDetail struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

ErrorDetail error detail swagger:model ErrorDetail

func (*ErrorDetail) MarshalBinary ¶

func (m *ErrorDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorDetail) UnmarshalBinary ¶

func (m *ErrorDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorDetail) Validate ¶

func (m *ErrorDetail) Validate(formats strfmt.Registry) error

Validate validates this error detail

type ErrorResponse ¶

type ErrorResponse struct {

	// The error message.
	// Required: true
	Message string `json:"message"`
}

ErrorResponse Represents an error. swagger:model ErrorResponse

func (*ErrorResponse) MarshalBinary ¶

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary ¶

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate ¶

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ExecInspectOKBody ¶

type ExecInspectOKBody struct {

	// can remove
	CanRemove bool `json:"CanRemove,omitempty"`

	// container ID
	ContainerID string `json:"ContainerID,omitempty"`

	// detach keys
	DetachKeys string `json:"DetachKeys,omitempty"`

	// exit code
	ExitCode int64 `json:"ExitCode,omitempty"`

	// ID
	ID string `json:"ID,omitempty"`

	// open stderr
	OpenStderr bool `json:"OpenStderr,omitempty"`

	// open stdin
	OpenStdin bool `json:"OpenStdin,omitempty"`

	// open stdout
	OpenStdout bool `json:"OpenStdout,omitempty"`

	// The system process ID for the exec process.
	Pid int64 `json:"Pid,omitempty"`

	// process config
	ProcessConfig *ProcessConfig `json:"ProcessConfig,omitempty"`

	// running
	Running bool `json:"Running,omitempty"`
}

ExecInspectOKBody ExecInspectResponse swagger:model execInspectOKBody

func (*ExecInspectOKBody) MarshalBinary ¶

func (m *ExecInspectOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExecInspectOKBody) UnmarshalBinary ¶

func (m *ExecInspectOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExecInspectOKBody) Validate ¶

func (m *ExecInspectOKBody) Validate(formats strfmt.Registry) error

Validate validates this exec inspect o k body

type ExecStartParamsBody ¶

type ExecStartParamsBody struct {

	// Detach from the command.
	Detach bool `json:"Detach,omitempty"`

	// Allocate a pseudo-TTY.
	Tty bool `json:"Tty,omitempty"`
}

ExecStartParamsBody exec start params body swagger:model execStartParamsBody

func (*ExecStartParamsBody) MarshalBinary ¶

func (m *ExecStartParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExecStartParamsBody) UnmarshalBinary ¶

func (m *ExecStartParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExecStartParamsBody) Validate ¶

func (m *ExecStartParamsBody) Validate(formats strfmt.Registry) error

Validate validates this exec start params body

type GenericResources ¶

type GenericResources []*GenericResourcesItems

GenericResources User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`) swagger:model GenericResources

func (GenericResources) Validate ¶

func (m GenericResources) Validate(formats strfmt.Registry) error

Validate validates this generic resources

type GenericResourcesItems ¶

type GenericResourcesItems struct {

	// discrete resource spec
	DiscreteResourceSpec *GenericResourcesItemsDiscreteResourceSpec `json:"DiscreteResourceSpec,omitempty"`

	// named resource spec
	NamedResourceSpec *GenericResourcesItemsNamedResourceSpec `json:"NamedResourceSpec,omitempty"`
}

GenericResourcesItems generic resources items swagger:model genericResourcesItems

func (*GenericResourcesItems) MarshalBinary ¶

func (m *GenericResourcesItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericResourcesItems) UnmarshalBinary ¶

func (m *GenericResourcesItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericResourcesItems) Validate ¶

func (m *GenericResourcesItems) Validate(formats strfmt.Registry) error

Validate validates this generic resources items

type GenericResourcesItemsDiscreteResourceSpec ¶

type GenericResourcesItemsDiscreteResourceSpec struct {

	// kind
	Kind string `json:"Kind,omitempty"`

	// value
	Value int64 `json:"Value,omitempty"`
}

GenericResourcesItemsDiscreteResourceSpec generic resources items discrete resource spec swagger:model genericResourcesItemsDiscreteResourceSpec

func (*GenericResourcesItemsDiscreteResourceSpec) MarshalBinary ¶

func (m *GenericResourcesItemsDiscreteResourceSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericResourcesItemsDiscreteResourceSpec) UnmarshalBinary ¶

func (m *GenericResourcesItemsDiscreteResourceSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericResourcesItemsDiscreteResourceSpec) Validate ¶

Validate validates this generic resources items discrete resource spec

type GenericResourcesItemsNamedResourceSpec ¶

type GenericResourcesItemsNamedResourceSpec struct {

	// kind
	Kind string `json:"Kind,omitempty"`

	// value
	Value string `json:"Value,omitempty"`
}

GenericResourcesItemsNamedResourceSpec generic resources items named resource spec swagger:model genericResourcesItemsNamedResourceSpec

func (*GenericResourcesItemsNamedResourceSpec) MarshalBinary ¶

func (m *GenericResourcesItemsNamedResourceSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericResourcesItemsNamedResourceSpec) UnmarshalBinary ¶

func (m *GenericResourcesItemsNamedResourceSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericResourcesItemsNamedResourceSpec) Validate ¶

Validate validates this generic resources items named resource spec

type GetPluginPrivilegesOKBody ¶

type GetPluginPrivilegesOKBody []*GetPluginPrivilegesOKBodyItems

GetPluginPrivilegesOKBody get plugin privileges o k body swagger:model getPluginPrivilegesOKBody

func (GetPluginPrivilegesOKBody) Validate ¶

func (m GetPluginPrivilegesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get plugin privileges o k body

type GetPluginPrivilegesOKBodyItems ¶

type GetPluginPrivilegesOKBodyItems struct {

	// description
	Description string `json:"Description,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// value
	Value []string `json:"Value"`
}

GetPluginPrivilegesOKBodyItems PluginPrivilegeItem

Describes a permission the user has to accept upon installing the plugin. swagger:model getPluginPrivilegesOKBodyItems

func (*GetPluginPrivilegesOKBodyItems) MarshalBinary ¶

func (m *GetPluginPrivilegesOKBodyItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPluginPrivilegesOKBodyItems) UnmarshalBinary ¶

func (m *GetPluginPrivilegesOKBodyItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPluginPrivilegesOKBodyItems) Validate ¶

func (m *GetPluginPrivilegesOKBodyItems) Validate(formats strfmt.Registry) error

Validate validates this get plugin privileges o k body items

type GraphDriverData ¶

type GraphDriverData struct {

	// data
	// Required: true
	Data map[string]string `json:"Data"`

	// name
	// Required: true
	Name string `json:"Name"`
}

GraphDriverData Information about a container's graph driver. swagger:model GraphDriverData

func (*GraphDriverData) MarshalBinary ¶

func (m *GraphDriverData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GraphDriverData) UnmarshalBinary ¶

func (m *GraphDriverData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GraphDriverData) Validate ¶

func (m *GraphDriverData) Validate(formats strfmt.Registry) error

Validate validates this graph driver data

type HealthConfig ¶

type HealthConfig struct {

	// The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
	Interval int64 `json:"Interval,omitempty"`

	// The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit.
	Retries int64 `json:"Retries,omitempty"`

	// Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
	StartPeriod int64 `json:"StartPeriod,omitempty"`

	// The test to perform. Possible values are:
	//
	// - `[]` inherit healthcheck from image or parent image
	// - `["NONE"]` disable healthcheck
	// - `["CMD", args...]` exec arguments directly
	// - `["CMD-SHELL", command]` run command with system's default shell
	//
	Test []string `json:"Test"`

	// The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
	Timeout int64 `json:"Timeout,omitempty"`
}

HealthConfig A test to perform to check that the container is healthy. swagger:model HealthConfig

func (*HealthConfig) MarshalBinary ¶

func (m *HealthConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HealthConfig) UnmarshalBinary ¶

func (m *HealthConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HealthConfig) Validate ¶

func (m *HealthConfig) Validate(formats strfmt.Registry) error

Validate validates this health config

type HistoryResponseItem ¶

type HistoryResponseItem struct {

	// comment
	// Required: true
	Comment string `json:"Comment"`

	// created
	// Required: true
	Created int64 `json:"Created"`

	// created by
	// Required: true
	CreatedBy string `json:"CreatedBy"`

	// Id
	// Required: true
	ID string `json:"Id"`

	// size
	// Required: true
	Size int64 `json:"Size"`

	// tags
	// Required: true
	Tags []string `json:"Tags"`
}

HistoryResponseItem HistoryResponseItem

individual image layer information in response to ImageHistory operation swagger:model HistoryResponseItem

func (*HistoryResponseItem) MarshalBinary ¶

func (m *HistoryResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HistoryResponseItem) UnmarshalBinary ¶

func (m *HistoryResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HistoryResponseItem) Validate ¶

func (m *HistoryResponseItem) Validate(formats strfmt.Registry) error

Validate validates this history response item

type HostConfig ¶

type HostConfig struct {
	Resources

	HostConfigAllOf1
}

HostConfig Container configuration that depends on the host we are running on swagger:model HostConfig

func (*HostConfig) MarshalBinary ¶

func (m *HostConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (HostConfig) MarshalJSON ¶

func (m HostConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*HostConfig) UnmarshalBinary ¶

func (m *HostConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostConfig) UnmarshalJSON ¶

func (m *HostConfig) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*HostConfig) Validate ¶

func (m *HostConfig) Validate(formats strfmt.Registry) error

Validate validates this host config

type HostConfigAllOf1 ¶

type HostConfigAllOf1 struct {

	// Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set.
	AutoRemove bool `json:"AutoRemove,omitempty"`

	// A list of volume bindings for this container. Each volume binding is a string in one of these forms:
	//
	// - `host-src:container-dest` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path.
	// - `host-src:container-dest:ro` to make the bind mount read-only inside the container. Both `host-src`, and `container-dest` must be an _absolute_ path.
	// - `volume-name:container-dest` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path.
	// - `volume-name:container-dest:ro` to mount the volume read-only inside the container.  `container-dest` must be an _absolute_ path.
	//
	Binds []string `json:"Binds"`

	// A list of kernel capabilities to add to the container.
	CapAdd []string `json:"CapAdd"`

	// A list of kernel capabilities to drop from the container.
	CapDrop []string `json:"CapDrop"`

	// Cgroup to use for the container.
	Cgroup string `json:"Cgroup,omitempty"`

	// Initial console size, as an `[height, width]` array. (Windows only)
	// Max Items: 2
	// Min Items: 2
	ConsoleSize []*int64 `json:"ConsoleSize"`

	// Path to a file where the container ID is written
	ContainerIDFile string `json:"ContainerIDFile,omitempty"`

	// A list of DNS servers for the container to use.
	DNS []string `json:"Dns"`

	// A list of DNS options.
	DNSOptions []string `json:"DnsOptions"`

	// A list of DNS search domains.
	DNSSearch []string `json:"DnsSearch"`

	// A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `["hostname:IP"]`.
	//
	ExtraHosts []string `json:"ExtraHosts"`

	// A list of additional groups that the container process will run as.
	GroupAdd []string `json:"GroupAdd"`

	// IPC sharing mode for the container. Possible values are:
	//
	// - `"none"`: own private IPC namespace, with /dev/shm not mounted
	// - `"private"`: own private IPC namespace
	// - `"shareable"`: own private IPC namespace, with a possibility to share it with other containers
	// - `"container:<name|id>"`: join another (shareable) container's IPC namespace
	// - `"host"`: use the host system's IPC namespace
	//
	// If not specified, daemon default is used, which can either be `"private"`
	// or `"shareable"`, depending on daemon version and configuration.
	//
	IpcMode string `json:"IpcMode,omitempty"`

	// Isolation technology of the container. (Windows only)
	Isolation string `json:"Isolation,omitempty"`

	// A list of links for the container in the form `container_name:alias`.
	Links []string `json:"Links"`

	// log config
	LogConfig *HostConfigAllOf1LogConfig `json:"LogConfig,omitempty"`

	// mounts
	Mounts HostConfigAllOf1Mounts `json:"Mounts"`

	// Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value is taken as a custom network's name to which this container should connect to.
	NetworkMode string `json:"NetworkMode,omitempty"`

	// An integer value containing the score given to the container in order to tune OOM killer preferences.
	OomScoreAdj int64 `json:"OomScoreAdj,omitempty"`

	// Set the PID (Process) Namespace mode for the container. It can be either:
	//
	// - `"container:<name|id>"`: joins another container's PID namespace
	// - `"host"`: use the host's PID namespace inside the container
	//
	PidMode string `json:"PidMode,omitempty"`

	// port bindings
	PortBindings PortMap `json:"PortBindings,omitempty"`

	// Gives the container full access to the host.
	Privileged bool `json:"Privileged,omitempty"`

	// Allocates an ephemeral host port for all of a container's
	// exposed ports.
	//
	// Ports are de-allocated when the container stops and allocated when the container starts.
	// The allocated port might be changed when restarting the container.
	//
	// The port is selected from the ephemeral port range that depends on the kernel.
	// For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
	//
	PublishAllPorts bool `json:"PublishAllPorts,omitempty"`

	// Mount the container's root filesystem as read only.
	ReadonlyRootfs bool `json:"ReadonlyRootfs,omitempty"`

	// restart policy
	RestartPolicy *RestartPolicy `json:"RestartPolicy,omitempty"`

	// Runtime to use with this container.
	Runtime string `json:"Runtime,omitempty"`

	// A list of string values to customize labels for MLS systems, such as SELinux.
	SecurityOpt []string `json:"SecurityOpt"`

	// Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
	// Minimum: 0
	ShmSize *int64 `json:"ShmSize,omitempty"`

	// Storage driver options for this container, in the form `{"size": "120G"}`.
	//
	StorageOpt map[string]string `json:"StorageOpt,omitempty"`

	// A list of kernel parameters (sysctls) to set in the container. For example: `{"net.ipv4.ip_forward": "1"}`
	//
	Sysctls map[string]string `json:"Sysctls,omitempty"`

	// A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: `{ "/run": "rw,noexec,nosuid,size=65536k" }`.
	//
	Tmpfs map[string]string `json:"Tmpfs,omitempty"`

	// UTS namespace to use for the container.
	UTSMode string `json:"UTSMode,omitempty"`

	// Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
	UsernsMode string `json:"UsernsMode,omitempty"`

	// Driver that this container uses to mount volumes.
	VolumeDriver string `json:"VolumeDriver,omitempty"`

	// A list of volumes to inherit from another container, specified in the form `<container name>[:<ro|rw>]`.
	VolumesFrom []string `json:"VolumesFrom"`
}

HostConfigAllOf1 host config all of1 swagger:model hostConfigAllOf1

func (*HostConfigAllOf1) MarshalBinary ¶

func (m *HostConfigAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostConfigAllOf1) UnmarshalBinary ¶

func (m *HostConfigAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostConfigAllOf1) Validate ¶

func (m *HostConfigAllOf1) Validate(formats strfmt.Registry) error

Validate validates this host config all of1

type HostConfigAllOf1LogConfig ¶

type HostConfigAllOf1LogConfig struct {

	// config
	Config map[string]string `json:"Config,omitempty"`

	// type
	Type string `json:"Type,omitempty"`
}

HostConfigAllOf1LogConfig The logging configuration for this container swagger:model hostConfigAllOf1LogConfig

func (*HostConfigAllOf1LogConfig) MarshalBinary ¶

func (m *HostConfigAllOf1LogConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostConfigAllOf1LogConfig) UnmarshalBinary ¶

func (m *HostConfigAllOf1LogConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostConfigAllOf1LogConfig) Validate ¶

func (m *HostConfigAllOf1LogConfig) Validate(formats strfmt.Registry) error

Validate validates this host config all of1 log config

type HostConfigAllOf1Mounts ¶

type HostConfigAllOf1Mounts []*Mount

HostConfigAllOf1Mounts Specification for mounts to be added to the container. swagger:model hostConfigAllOf1Mounts

func (HostConfigAllOf1Mounts) Validate ¶

func (m HostConfigAllOf1Mounts) Validate(formats strfmt.Registry) error

Validate validates this host config all of1 mounts

type HostConfigAllOf1PortBindings ¶

type HostConfigAllOf1PortBindings map[string]HostConfigAllOf1PortBindingsAdditionalProperties

HostConfigAllOf1PortBindings A map of exposed container ports and the host port they should map to. swagger:model hostConfigAllOf1PortBindings

func (HostConfigAllOf1PortBindings) Validate ¶

func (m HostConfigAllOf1PortBindings) Validate(formats strfmt.Registry) error

Validate validates this host config all of1 port bindings

type HostConfigAllOf1PortBindingsAdditionalProperties ¶

type HostConfigAllOf1PortBindingsAdditionalProperties struct {

	// The host IP address
	HostIP string `json:"HostIp,omitempty"`

	// The host port number, as a string
	HostPort string `json:"HostPort,omitempty"`
}

HostConfigAllOf1PortBindingsAdditionalProperties host config all of1 port bindings additional properties swagger:model hostConfigAllOf1PortBindingsAdditionalProperties

func (*HostConfigAllOf1PortBindingsAdditionalProperties) MarshalBinary ¶

MarshalBinary interface implementation

func (*HostConfigAllOf1PortBindingsAdditionalProperties) UnmarshalBinary ¶

UnmarshalBinary interface implementation

func (*HostConfigAllOf1PortBindingsAdditionalProperties) Validate ¶

Validate validates this host config all of1 port bindings additional properties

type IDResponse ¶

type IDResponse struct {

	// The id of the newly created object.
	// Required: true
	ID string `json:"Id"`
}

IDResponse Response to an API call that returns just an Id swagger:model IdResponse

func (*IDResponse) MarshalBinary ¶

func (m *IDResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IDResponse) UnmarshalBinary ¶

func (m *IDResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IDResponse) Validate ¶

func (m *IDResponse) Validate(formats strfmt.Registry) error

Validate validates this Id response

type IPAM ¶

type IPAM struct {

	// List of IPAM configuration options, specified as a map: `{"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}`
	Config []map[string]string `json:"Config"`

	// Name of the IPAM driver to use.
	Driver *string `json:"Driver,omitempty"`

	// Driver-specific options, specified as a map.
	Options []map[string]string `json:"Options"`
}

IPAM IP a m swagger:model IPAM

func (*IPAM) MarshalBinary ¶

func (m *IPAM) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IPAM) UnmarshalBinary ¶

func (m *IPAM) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IPAM) Validate ¶

func (m *IPAM) Validate(formats strfmt.Registry) error

Validate validates this IP a m

type Image ¶

type Image struct {

	// architecture
	// Required: true
	Architecture string `json:"Architecture"`

	// author
	// Required: true
	Author string `json:"Author"`

	// comment
	// Required: true
	Comment string `json:"Comment"`

	// config
	Config *ContainerConfig `json:"Config,omitempty"`

	// container
	// Required: true
	Container string `json:"Container"`

	// container config
	ContainerConfig *ContainerConfig `json:"ContainerConfig,omitempty"`

	// created
	// Required: true
	Created string `json:"Created"`

	// docker version
	// Required: true
	DockerVersion string `json:"DockerVersion"`

	// graph driver
	// Required: true
	GraphDriver *GraphDriverData `json:"GraphDriver"`

	// Id
	// Required: true
	ID string `json:"Id"`

	// metadata
	Metadata *ImageMetadata `json:"Metadata,omitempty"`

	// os
	// Required: true
	Os string `json:"Os"`

	// os version
	OsVersion string `json:"OsVersion,omitempty"`

	// parent
	// Required: true
	Parent string `json:"Parent"`

	// repo digests
	RepoDigests []string `json:"RepoDigests"`

	// repo tags
	RepoTags []string `json:"RepoTags"`

	// root f s
	// Required: true
	RootFS *ImageRootFS `json:"RootFS"`

	// size
	// Required: true
	Size int64 `json:"Size"`

	// virtual size
	// Required: true
	VirtualSize int64 `json:"VirtualSize"`
}

Image image swagger:model Image

func (*Image) MarshalBinary ¶

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary ¶

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate ¶

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type ImageDeleteOKBody ¶

type ImageDeleteOKBody []*ImageDeleteResponseItem

ImageDeleteOKBody image delete o k body swagger:model imageDeleteOKBody

func (ImageDeleteOKBody) Validate ¶

func (m ImageDeleteOKBody) Validate(formats strfmt.Registry) error

Validate validates this image delete o k body

type ImageDeleteResponseItem ¶

type ImageDeleteResponseItem struct {

	// The image ID of an image that was deleted
	Deleted string `json:"Deleted,omitempty"`

	// The image ID of an image that was untagged
	Untagged string `json:"Untagged,omitempty"`
}

ImageDeleteResponseItem image delete response item swagger:model ImageDeleteResponseItem

func (*ImageDeleteResponseItem) MarshalBinary ¶

func (m *ImageDeleteResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageDeleteResponseItem) UnmarshalBinary ¶

func (m *ImageDeleteResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageDeleteResponseItem) Validate ¶

func (m *ImageDeleteResponseItem) Validate(formats strfmt.Registry) error

Validate validates this image delete response item

type ImageHistoryOKBody ¶

type ImageHistoryOKBody []*HistoryResponseItem

ImageHistoryOKBody image history o k body swagger:model imageHistoryOKBody

func (ImageHistoryOKBody) Validate ¶

func (m ImageHistoryOKBody) Validate(formats strfmt.Registry) error

Validate validates this image history o k body

type ImageListOKBody ¶

type ImageListOKBody []*ImageSummary

ImageListOKBody image list o k body swagger:model imageListOKBody

func (ImageListOKBody) Validate ¶

func (m ImageListOKBody) Validate(formats strfmt.Registry) error

Validate validates this image list o k body

type ImageMetadata ¶

type ImageMetadata struct {

	// last tag time
	LastTagTime string `json:"LastTagTime,omitempty"`
}

ImageMetadata image metadata swagger:model imageMetadata

func (*ImageMetadata) MarshalBinary ¶

func (m *ImageMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageMetadata) UnmarshalBinary ¶

func (m *ImageMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageMetadata) Validate ¶

func (m *ImageMetadata) Validate(formats strfmt.Registry) error

Validate validates this image metadata

type ImagePruneOKBody ¶

type ImagePruneOKBody struct {

	// images deleted
	ImagesDeleted ImagePruneOKBodyImagesDeleted `json:"ImagesDeleted"`

	// Disk space reclaimed in bytes
	SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"`
}

ImagePruneOKBody ImagePruneResponse swagger:model imagePruneOKBody

func (*ImagePruneOKBody) MarshalBinary ¶

func (m *ImagePruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImagePruneOKBody) UnmarshalBinary ¶

func (m *ImagePruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImagePruneOKBody) Validate ¶

func (m *ImagePruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this image prune o k body

type ImagePruneOKBodyImagesDeleted ¶

type ImagePruneOKBodyImagesDeleted []*ImageDeleteResponseItem

ImagePruneOKBodyImagesDeleted Images that were deleted swagger:model imagePruneOKBodyImagesDeleted

func (ImagePruneOKBodyImagesDeleted) Validate ¶

func (m ImagePruneOKBodyImagesDeleted) Validate(formats strfmt.Registry) error

Validate validates this image prune o k body images deleted

type ImageRootFS ¶

type ImageRootFS struct {

	// base layer
	BaseLayer string `json:"BaseLayer,omitempty"`

	// layers
	Layers []string `json:"Layers"`

	// type
	// Required: true
	Type string `json:"Type"`
}

ImageRootFS image root f s swagger:model imageRootFS

func (*ImageRootFS) MarshalBinary ¶

func (m *ImageRootFS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageRootFS) UnmarshalBinary ¶

func (m *ImageRootFS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageRootFS) Validate ¶

func (m *ImageRootFS) Validate(formats strfmt.Registry) error

Validate validates this image root f s

type ImageSearchOKBody ¶

type ImageSearchOKBody []*ImageSearchOKBodyItems

ImageSearchOKBody image search o k body swagger:model imageSearchOKBody

func (ImageSearchOKBody) Validate ¶

func (m ImageSearchOKBody) Validate(formats strfmt.Registry) error

Validate validates this image search o k body

type ImageSearchOKBodyItems ¶

type ImageSearchOKBodyItems struct {

	// description
	Description string `json:"description,omitempty"`

	// is automated
	IsAutomated bool `json:"is_automated,omitempty"`

	// is official
	IsOfficial bool `json:"is_official,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// star count
	StarCount int64 `json:"star_count,omitempty"`
}

ImageSearchOKBodyItems ImageSearchResponseItem swagger:model imageSearchOKBodyItems

func (*ImageSearchOKBodyItems) MarshalBinary ¶

func (m *ImageSearchOKBodyItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageSearchOKBodyItems) UnmarshalBinary ¶

func (m *ImageSearchOKBodyItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageSearchOKBodyItems) Validate ¶

func (m *ImageSearchOKBodyItems) Validate(formats strfmt.Registry) error

Validate validates this image search o k body items

type ImageSummary ¶

type ImageSummary struct {

	// containers
	// Required: true
	Containers int64 `json:"Containers"`

	// created
	// Required: true
	Created int64 `json:"Created"`

	// Id
	// Required: true
	ID string `json:"Id"`

	// labels
	// Required: true
	Labels map[string]string `json:"Labels"`

	// parent Id
	// Required: true
	ParentID string `json:"ParentId"`

	// repo digests
	// Required: true
	RepoDigests []string `json:"RepoDigests"`

	// repo tags
	// Required: true
	RepoTags []string `json:"RepoTags"`

	// shared size
	// Required: true
	SharedSize int64 `json:"SharedSize"`

	// size
	// Required: true
	Size int64 `json:"Size"`

	// virtual size
	// Required: true
	VirtualSize int64 `json:"VirtualSize"`
}

ImageSummary image summary swagger:model ImageSummary

func (*ImageSummary) MarshalBinary ¶

func (m *ImageSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageSummary) UnmarshalBinary ¶

func (m *ImageSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageSummary) Validate ¶

func (m *ImageSummary) Validate(formats strfmt.Registry) error

Validate validates this image summary

type IndexInfo ¶

type IndexInfo struct {

	// List of mirrors, expressed as URIs.
	//
	Mirrors []string `json:"Mirrors"`

	// Name of the registry, such as "docker.io".
	//
	Name string `json:"Name,omitempty"`

	// Indicates whether this is an official registry (i.e., Docker Hub / docker.io)
	//
	Official bool `json:"Official,omitempty"`

	// Indicates if the the registry is part of the list of insecure
	// registries.
	//
	// If `false`, the registry is insecure. Insecure registries accept
	// un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from
	// unknown CAs) communication.
	//
	// > **Warning**: Insecure registries can be useful when running a local
	// > registry. However, because its use creates security vulnerabilities
	// > it should ONLY be enabled for testing purposes. For increased
	// > security, users should add their CA to their system's list of
	// > trusted CAs instead of enabling this option.
	//
	Secure bool `json:"Secure,omitempty"`
}

IndexInfo IndexInfo contains information about a registry. swagger:model IndexInfo

func (*IndexInfo) MarshalBinary ¶

func (m *IndexInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IndexInfo) UnmarshalBinary ¶

func (m *IndexInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IndexInfo) Validate ¶

func (m *IndexInfo) Validate(formats strfmt.Registry) error

Validate validates this index info

type JoinTokens ¶

type JoinTokens struct {

	// The token managers can use to join the swarm.
	//
	Manager string `json:"Manager,omitempty"`

	// The token workers can use to join the swarm.
	//
	Worker string `json:"Worker,omitempty"`
}

JoinTokens JoinTokens contains the tokens workers and managers need to join the swarm.

swagger:model JoinTokens

func (*JoinTokens) MarshalBinary ¶

func (m *JoinTokens) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JoinTokens) UnmarshalBinary ¶

func (m *JoinTokens) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JoinTokens) Validate ¶

func (m *JoinTokens) Validate(formats strfmt.Registry) error

Validate validates this join tokens

type LocalNodeState ¶

type LocalNodeState string

LocalNodeState Current local status of this node. swagger:model LocalNodeState

const (

	// LocalNodeState captures enum value ""
	LocalNodeState LocalNodeState = ""

	// LocalNodeStateInactive captures enum value "inactive"
	LocalNodeStateInactive LocalNodeState = "inactive"

	// LocalNodeStatePending captures enum value "pending"
	LocalNodeStatePending LocalNodeState = "pending"

	// LocalNodeStateActive captures enum value "active"
	LocalNodeStateActive LocalNodeState = "active"

	// LocalNodeStateError captures enum value "error"
	LocalNodeStateError LocalNodeState = "error"

	// LocalNodeStateLocked captures enum value "locked"
	LocalNodeStateLocked LocalNodeState = "locked"
)

func (LocalNodeState) Validate ¶

func (m LocalNodeState) Validate(formats strfmt.Registry) error

Validate validates this local node state

type ManagerStatus ¶

type ManagerStatus struct {

	// The IP address and port at which the manager is reachable.
	//
	Addr string `json:"Addr,omitempty"`

	// leader
	Leader *bool `json:"Leader,omitempty"`

	// reachability
	Reachability Reachability `json:"Reachability,omitempty"`
}

ManagerStatus ManagerStatus represents the status of a manager.

It provides the current status of a node's manager component, if the node is a manager.

swagger:model ManagerStatus

func (*ManagerStatus) MarshalBinary ¶

func (m *ManagerStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ManagerStatus) UnmarshalBinary ¶

func (m *ManagerStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ManagerStatus) Validate ¶

func (m *ManagerStatus) Validate(formats strfmt.Registry) error

Validate validates this manager status

type Mount ¶

type Mount struct {

	// bind options
	BindOptions *MountBindOptions `json:"BindOptions,omitempty"`

	// The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`.
	Consistency string `json:"Consistency,omitempty"`

	// Whether the mount should be read-only.
	ReadOnly bool `json:"ReadOnly,omitempty"`

	// Mount source (e.g. a volume name, a host path).
	Source string `json:"Source,omitempty"`

	// Container path.
	Target string `json:"Target,omitempty"`

	// tmpfs options
	TmpfsOptions *MountTmpfsOptions `json:"TmpfsOptions,omitempty"`

	// The mount type. Available types:
	//
	// - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container.
	// - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed.
	// - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.
	//
	Type string `json:"Type,omitempty"`

	// volume options
	VolumeOptions *MountVolumeOptions `json:"VolumeOptions,omitempty"`
}

Mount mount swagger:model Mount

func (*Mount) MarshalBinary ¶

func (m *Mount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Mount) UnmarshalBinary ¶

func (m *Mount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Mount) Validate ¶

func (m *Mount) Validate(formats strfmt.Registry) error

Validate validates this mount

type MountBindOptions ¶

type MountBindOptions struct {

	// A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`.
	Propagation string `json:"Propagation,omitempty"`
}

MountBindOptions Optional configuration for the `bind` type. swagger:model mountBindOptions

func (*MountBindOptions) MarshalBinary ¶

func (m *MountBindOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MountBindOptions) UnmarshalBinary ¶

func (m *MountBindOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MountBindOptions) Validate ¶

func (m *MountBindOptions) Validate(formats strfmt.Registry) error

Validate validates this mount bind options

type MountPoint ¶

type MountPoint struct {

	// destination
	Destination string `json:"Destination,omitempty"`

	// driver
	Driver string `json:"Driver,omitempty"`

	// mode
	Mode string `json:"Mode,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// propagation
	Propagation string `json:"Propagation,omitempty"`

	// r w
	RW bool `json:"RW,omitempty"`

	// source
	Source string `json:"Source,omitempty"`

	// type
	Type string `json:"Type,omitempty"`
}

MountPoint A mount point inside a container swagger:model MountPoint

func (*MountPoint) MarshalBinary ¶

func (m *MountPoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MountPoint) UnmarshalBinary ¶

func (m *MountPoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MountPoint) Validate ¶

func (m *MountPoint) Validate(formats strfmt.Registry) error

Validate validates this mount point

type MountTmpfsOptions ¶

type MountTmpfsOptions struct {

	// The permission mode for the tmpfs mount in an integer.
	Mode int64 `json:"Mode,omitempty"`

	// The size for the tmpfs mount in bytes.
	SizeBytes int64 `json:"SizeBytes,omitempty"`
}

MountTmpfsOptions Optional configuration for the `tmpfs` type. swagger:model mountTmpfsOptions

func (*MountTmpfsOptions) MarshalBinary ¶

func (m *MountTmpfsOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MountTmpfsOptions) UnmarshalBinary ¶

func (m *MountTmpfsOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MountTmpfsOptions) Validate ¶

func (m *MountTmpfsOptions) Validate(formats strfmt.Registry) error

Validate validates this mount tmpfs options

type MountVolumeOptions ¶

type MountVolumeOptions struct {

	// driver config
	DriverConfig *MountVolumeOptionsDriverConfig `json:"DriverConfig,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// Populate volume with data from the target.
	NoCopy *bool `json:"NoCopy,omitempty"`
}

MountVolumeOptions Optional configuration for the `volume` type. swagger:model mountVolumeOptions

func (*MountVolumeOptions) MarshalBinary ¶

func (m *MountVolumeOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MountVolumeOptions) UnmarshalBinary ¶

func (m *MountVolumeOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MountVolumeOptions) Validate ¶

func (m *MountVolumeOptions) Validate(formats strfmt.Registry) error

Validate validates this mount volume options

type MountVolumeOptionsDriverConfig ¶

type MountVolumeOptionsDriverConfig struct {

	// Name of the driver to use to create the volume.
	Name string `json:"Name,omitempty"`

	// key/value map of driver specific options.
	Options map[string]string `json:"Options,omitempty"`
}

MountVolumeOptionsDriverConfig Map of driver specific options swagger:model mountVolumeOptionsDriverConfig

func (*MountVolumeOptionsDriverConfig) MarshalBinary ¶

func (m *MountVolumeOptionsDriverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MountVolumeOptionsDriverConfig) UnmarshalBinary ¶

func (m *MountVolumeOptionsDriverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MountVolumeOptionsDriverConfig) Validate ¶

func (m *MountVolumeOptionsDriverConfig) Validate(formats strfmt.Registry) error

Validate validates this mount volume options driver config

type Network ¶

type Network struct {

	// attachable
	Attachable bool `json:"Attachable,omitempty"`

	// containers
	Containers NetworkContainers `json:"Containers,omitempty"`

	// created
	Created string `json:"Created,omitempty"`

	// driver
	Driver string `json:"Driver,omitempty"`

	// enable ipv6
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

	// IP a m
	IPAM *IPAM `json:"IPAM,omitempty"`

	// Id
	ID string `json:"Id,omitempty"`

	// ingress
	Ingress bool `json:"Ingress,omitempty"`

	// internal
	Internal bool `json:"Internal,omitempty"`

	// labels
	Labels map[string]string `json:"Labels,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// options
	Options map[string]string `json:"Options,omitempty"`

	// scope
	Scope string `json:"Scope,omitempty"`
}

Network network swagger:model Network

func (*Network) MarshalBinary ¶

func (m *Network) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Network) UnmarshalBinary ¶

func (m *Network) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Network) Validate ¶

func (m *Network) Validate(formats strfmt.Registry) error

Validate validates this network

type NetworkConnectParamsBody ¶

type NetworkConnectParamsBody struct {

	// The ID or name of the container to connect to the network.
	Container string `json:"Container,omitempty"`

	// endpoint config
	EndpointConfig *EndpointSettings `json:"EndpointConfig,omitempty"`
}

NetworkConnectParamsBody network connect params body swagger:model networkConnectParamsBody

func (*NetworkConnectParamsBody) MarshalBinary ¶

func (m *NetworkConnectParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkConnectParamsBody) UnmarshalBinary ¶

func (m *NetworkConnectParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkConnectParamsBody) Validate ¶

func (m *NetworkConnectParamsBody) Validate(formats strfmt.Registry) error

Validate validates this network connect params body

type NetworkContainer ¶

type NetworkContainer struct {

	// endpoint ID
	EndpointID string `json:"EndpointID,omitempty"`

	// ipv4 address
	IPV4Address string `json:"IPv4Address,omitempty"`

	// ipv6 address
	IPV6Address string `json:"IPv6Address,omitempty"`

	// mac address
	MacAddress string `json:"MacAddress,omitempty"`

	// name
	Name string `json:"Name,omitempty"`
}

NetworkContainer network container swagger:model NetworkContainer

func (*NetworkContainer) MarshalBinary ¶

func (m *NetworkContainer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkContainer) UnmarshalBinary ¶

func (m *NetworkContainer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkContainer) Validate ¶

func (m *NetworkContainer) Validate(formats strfmt.Registry) error

Validate validates this network container

type NetworkContainers ¶

type NetworkContainers map[string]NetworkContainer

NetworkContainers network containers swagger:model networkContainers

func (NetworkContainers) Validate ¶

func (m NetworkContainers) Validate(formats strfmt.Registry) error

Validate validates this network containers

type NetworkCreateCreatedBody ¶

type NetworkCreateCreatedBody struct {

	// The ID of the created network.
	ID string `json:"Id,omitempty"`

	// warning
	Warning string `json:"Warning,omitempty"`
}

NetworkCreateCreatedBody NetworkCreateResponse swagger:model networkCreateCreatedBody

func (*NetworkCreateCreatedBody) MarshalBinary ¶

func (m *NetworkCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateCreatedBody) UnmarshalBinary ¶

func (m *NetworkCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateCreatedBody) Validate ¶

func (m *NetworkCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this network create created body

type NetworkCreateParamsBody ¶

type NetworkCreateParamsBody struct {

	// Globally scoped network is manually attachable by regular containers from workers in swarm mode.
	Attachable bool `json:"Attachable,omitempty"`

	// Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions.
	CheckDuplicate bool `json:"CheckDuplicate,omitempty"`

	// Name of the network driver plugin to use.
	Driver *string `json:"Driver,omitempty"`

	// Enable IPv6 on the network.
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

	// Optional custom IP scheme for the network.
	IPAM *IPAM `json:"IPAM,omitempty"`

	// Ingress network is the network which provides the routing-mesh in swarm mode.
	Ingress bool `json:"Ingress,omitempty"`

	// Restrict external access to the network.
	Internal bool `json:"Internal,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// The network's name.
	// Required: true
	Name *string `json:"Name"`

	// Network specific options to be used by the drivers.
	Options map[string]string `json:"Options,omitempty"`
}

NetworkCreateParamsBody network create params body swagger:model networkCreateParamsBody

func (*NetworkCreateParamsBody) MarshalBinary ¶

func (m *NetworkCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateParamsBody) UnmarshalBinary ¶

func (m *NetworkCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateParamsBody) Validate ¶

func (m *NetworkCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this network create params body

type NetworkDisconnectParamsBody ¶

type NetworkDisconnectParamsBody struct {

	// The ID or name of the container to disconnect from the network.
	Container string `json:"Container,omitempty"`

	// Force the container to disconnect from the network.
	Force bool `json:"Force,omitempty"`
}

NetworkDisconnectParamsBody network disconnect params body swagger:model networkDisconnectParamsBody

func (*NetworkDisconnectParamsBody) MarshalBinary ¶

func (m *NetworkDisconnectParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkDisconnectParamsBody) UnmarshalBinary ¶

func (m *NetworkDisconnectParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkDisconnectParamsBody) Validate ¶

func (m *NetworkDisconnectParamsBody) Validate(formats strfmt.Registry) error

Validate validates this network disconnect params body

type NetworkListOKBody ¶

type NetworkListOKBody []*Network

NetworkListOKBody network list o k body swagger:model networkListOKBody

func (NetworkListOKBody) Validate ¶

func (m NetworkListOKBody) Validate(formats strfmt.Registry) error

Validate validates this network list o k body

type NetworkPruneOKBody ¶

type NetworkPruneOKBody struct {

	// Networks that were deleted
	NetworksDeleted []string `json:"NetworksDeleted"`
}

NetworkPruneOKBody NetworkPruneResponse swagger:model networkPruneOKBody

func (*NetworkPruneOKBody) MarshalBinary ¶

func (m *NetworkPruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkPruneOKBody) UnmarshalBinary ¶

func (m *NetworkPruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkPruneOKBody) Validate ¶

func (m *NetworkPruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this network prune o k body

type NetworkSettings ¶

type NetworkSettings struct {

	// Name of the network'a bridge (for example, `docker0`).
	Bridge string `json:"Bridge,omitempty"`

	// EndpointID uniquely represents a service endpoint in a Sandbox.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	EndpointID string `json:"EndpointID,omitempty"`

	// Gateway address for the default "bridge" network.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	Gateway string `json:"Gateway,omitempty"`

	// Global IPv6 address for the default "bridge" network.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	GlobalIPV6Address string `json:"GlobalIPv6Address,omitempty"`

	// Mask length of the global IPv6 address.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	GlobalIPV6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"`

	// Indicates if hairpin NAT should be enabled on the virtual interface.
	//
	HairpinMode bool `json:"HairpinMode,omitempty"`

	// IPv4 address for the default "bridge" network.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	IPAddress string `json:"IPAddress,omitempty"`

	// Mask length of the IPv4 address.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	IPPrefixLen int64 `json:"IPPrefixLen,omitempty"`

	// IPv6 gateway address for this network.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	IPV6Gateway string `json:"IPv6Gateway,omitempty"`

	// IPv6 unicast address using the link-local prefix.
	LinkLocalIPV6Address string `json:"LinkLocalIPv6Address,omitempty"`

	// Prefix length of the IPv6 unicast address.
	LinkLocalIPV6PrefixLen int64 `json:"LinkLocalIPv6PrefixLen,omitempty"`

	// MAC address for the container on the default "bridge" network.
	//
	// <p><br /></p>
	//
	// > **Deprecated**: This field is only propagated when attached to the
	// > default "bridge" network. Use the information from the "bridge"
	// > network inside the `Networks` map instead, which contains the same
	// > information. This field was deprecated in Docker 1.9 and is scheduled
	// > to be removed in Docker 17.12.0
	//
	MacAddress string `json:"MacAddress,omitempty"`

	// networks
	Networks NetworkSettingsNetworks `json:"Networks,omitempty"`

	// ports
	Ports PortMap `json:"Ports,omitempty"`

	// SandboxID uniquely represents a container's network stack.
	SandboxID string `json:"SandboxID,omitempty"`

	// SandboxKey identifies the sandbox
	SandboxKey string `json:"SandboxKey,omitempty"`

	// secondary IP addresses
	SecondaryIPAddresses *NetworkSettingsSecondaryIPAddresses `json:"SecondaryIPAddresses"`

	// secondary ipv6 addresses
	SecondaryIPV6Addresses *NetworkSettingsSecondaryIPV6Addresses `json:"SecondaryIPv6Addresses"`
}

NetworkSettings NetworkSettings exposes the network settings in the API swagger:model NetworkSettings

func (*NetworkSettings) MarshalBinary ¶

func (m *NetworkSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkSettings) UnmarshalBinary ¶

func (m *NetworkSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkSettings) Validate ¶

func (m *NetworkSettings) Validate(formats strfmt.Registry) error

Validate validates this network settings

type NetworkSettingsNetworks ¶

type NetworkSettingsNetworks map[string]EndpointSettings

NetworkSettingsNetworks Information about all networks that the container is connected to.

swagger:model networkSettingsNetworks

func (NetworkSettingsNetworks) Validate ¶

func (m NetworkSettingsNetworks) Validate(formats strfmt.Registry) error

Validate validates this network settings networks

type NetworkSettingsSecondaryIPAddresses ¶

type NetworkSettingsSecondaryIPAddresses []*Address

NetworkSettingsSecondaryIPAddresses network settings secondary Ip addresses swagger:model networkSettingsSecondaryIpAddresses

func (NetworkSettingsSecondaryIPAddresses) Validate ¶

Validate validates this network settings secondary Ip addresses

type NetworkSettingsSecondaryIPV6Addresses ¶

type NetworkSettingsSecondaryIPV6Addresses []*Address

NetworkSettingsSecondaryIPV6Addresses network settings secondary ipv6 addresses swagger:model networkSettingsSecondaryIpv6Addresses

func (NetworkSettingsSecondaryIPV6Addresses) Validate ¶

Validate validates this network settings secondary ipv6 addresses

type Node ¶

type Node struct {

	// Date and time at which the node was added to the swarm in
	// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
	//
	CreatedAt string `json:"CreatedAt,omitempty"`

	// description
	Description *NodeDescription `json:"Description,omitempty"`

	// ID
	ID string `json:"ID,omitempty"`

	// manager status
	ManagerStatus *ManagerStatus `json:"ManagerStatus,omitempty"`

	// spec
	Spec *NodeSpec `json:"Spec,omitempty"`

	// status
	Status *NodeStatus `json:"Status,omitempty"`

	// Date and time at which the node was last updated in
	// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
	//
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

Node node swagger:model Node

func (*Node) MarshalBinary ¶

func (m *Node) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Node) UnmarshalBinary ¶

func (m *Node) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Node) Validate ¶

func (m *Node) Validate(formats strfmt.Registry) error

Validate validates this node

type NodeDescription ¶

type NodeDescription struct {

	// engine
	Engine *EngineDescription `json:"Engine,omitempty"`

	// hostname
	Hostname string `json:"Hostname,omitempty"`

	// platform
	Platform *Platform `json:"Platform,omitempty"`

	// resources
	Resources *ResourceObject `json:"Resources,omitempty"`

	// TLS info
	TLSInfo *TLSInfo `json:"TLSInfo,omitempty"`
}

NodeDescription NodeDescription encapsulates the properties of the Node as reported by the agent.

swagger:model NodeDescription

func (*NodeDescription) MarshalBinary ¶

func (m *NodeDescription) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeDescription) UnmarshalBinary ¶

func (m *NodeDescription) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeDescription) Validate ¶

func (m *NodeDescription) Validate(formats strfmt.Registry) error

Validate validates this node description

type NodeListOKBody ¶

type NodeListOKBody []*Node

NodeListOKBody node list o k body swagger:model nodeListOKBody

func (NodeListOKBody) Validate ¶

func (m NodeListOKBody) Validate(formats strfmt.Registry) error

Validate validates this node list o k body

type NodeSpec ¶

type NodeSpec struct {

	// Availability of the node.
	Availability string `json:"Availability,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// Name for the node.
	Name string `json:"Name,omitempty"`

	// Role of the node.
	Role string `json:"Role,omitempty"`
}

NodeSpec node spec swagger:model NodeSpec

func (*NodeSpec) MarshalBinary ¶

func (m *NodeSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeSpec) UnmarshalBinary ¶

func (m *NodeSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeSpec) Validate ¶

func (m *NodeSpec) Validate(formats strfmt.Registry) error

Validate validates this node spec

type NodeState ¶

type NodeState string

NodeState NodeState represents the state of a node. swagger:model NodeState

const (

	// NodeStateUnknown captures enum value "unknown"
	NodeStateUnknown NodeState = "unknown"

	// NodeStateDown captures enum value "down"
	NodeStateDown NodeState = "down"

	// NodeStateReady captures enum value "ready"
	NodeStateReady NodeState = "ready"

	// NodeStateDisconnected captures enum value "disconnected"
	NodeStateDisconnected NodeState = "disconnected"
)

func (NodeState) Validate ¶

func (m NodeState) Validate(formats strfmt.Registry) error

Validate validates this node state

type NodeStatus ¶

type NodeStatus struct {

	// IP address of the node.
	Addr string `json:"Addr,omitempty"`

	// message
	Message string `json:"Message,omitempty"`

	// state
	State NodeState `json:"State,omitempty"`
}

NodeStatus NodeStatus represents the status of a node.

It provides the current status of the node, as seen by the manager.

swagger:model NodeStatus

func (*NodeStatus) MarshalBinary ¶

func (m *NodeStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeStatus) UnmarshalBinary ¶

func (m *NodeStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeStatus) Validate ¶

func (m *NodeStatus) Validate(formats strfmt.Registry) error

Validate validates this node status

type ObjectVersion ¶

type ObjectVersion struct {

	// index
	Index uint64 `json:"Index,omitempty"`
}

ObjectVersion The version number of the object such as node, service, etc. This is needed to avoid conflicting writes. The client must send the version number along with the modified specification when updating these objects. This approach ensures safe concurrency and determinism in that the change on the object may not be applied if the version number has changed from the last read. In other words, if two update requests specify the same base version, only one of the requests can succeed. As a result, two separate update requests that happen at the same time will not unintentionally overwrite each other.

swagger:model ObjectVersion

func (*ObjectVersion) MarshalBinary ¶

func (m *ObjectVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ObjectVersion) UnmarshalBinary ¶

func (m *ObjectVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ObjectVersion) Validate ¶

func (m *ObjectVersion) Validate(formats strfmt.Registry) error

Validate validates this object version

type PeerNode ¶

type PeerNode struct {

	// IP address and ports at which this node can be reached.
	//
	Addr string `json:"Addr,omitempty"`

	// Unique identifier of for this node in the swarm.
	NodeID string `json:"NodeID,omitempty"`
}

PeerNode Represents a peer-node in the swarm swagger:model PeerNode

func (*PeerNode) MarshalBinary ¶

func (m *PeerNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PeerNode) UnmarshalBinary ¶

func (m *PeerNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PeerNode) Validate ¶

func (m *PeerNode) Validate(formats strfmt.Registry) error

Validate validates this peer node

type Platform ¶

type Platform struct {

	// Architecture represents the hardware architecture (for example,
	// `x86_64`).
	//
	Architecture string `json:"Architecture,omitempty"`

	// OS represents the Operating System (for example, `linux` or `windows`).
	//
	OS string `json:"OS,omitempty"`
}

Platform Platform represents the platform (Arch/OS).

swagger:model Platform

func (*Platform) MarshalBinary ¶

func (m *Platform) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Platform) UnmarshalBinary ¶

func (m *Platform) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Platform) Validate ¶

func (m *Platform) Validate(formats strfmt.Registry) error

Validate validates this platform

type Plugin ¶

type Plugin struct {

	// config
	// Required: true
	Config PluginConfig `json:"Config"`

	// True if the plugin is running. False if the plugin is not running, only installed.
	// Required: true
	Enabled bool `json:"Enabled"`

	// Id
	ID string `json:"Id,omitempty"`

	// name
	// Required: true
	Name string `json:"Name"`

	// plugin remote reference used to push/pull the plugin
	PluginReference string `json:"PluginReference,omitempty"`

	// settings
	// Required: true
	Settings PluginSettings `json:"Settings"`
}

Plugin A plugin for the Engine API swagger:model Plugin

func (*Plugin) MarshalBinary ¶

func (m *Plugin) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Plugin) UnmarshalBinary ¶

func (m *Plugin) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Plugin) Validate ¶

func (m *Plugin) Validate(formats strfmt.Registry) error

Validate validates this plugin

type PluginConfig ¶

type PluginConfig struct {

	// args
	// Required: true
	Args PluginConfigArgs `json:"Args"`

	// description
	// Required: true
	Description string `json:"Description"`

	// Docker Version used to create the plugin
	DockerVersion string `json:"DockerVersion,omitempty"`

	// documentation
	// Required: true
	Documentation string `json:"Documentation"`

	// entrypoint
	// Required: true
	Entrypoint []string `json:"Entrypoint"`

	// env
	// Required: true
	Env PluginConfigEnv `json:"Env"`

	// interface
	// Required: true
	Interface PluginConfigInterface `json:"Interface"`

	// ipc host
	// Required: true
	IpcHost bool `json:"IpcHost"`

	// linux
	// Required: true
	Linux PluginConfigLinux `json:"Linux"`

	// mounts
	// Required: true
	Mounts PluginConfigMounts `json:"Mounts"`

	// network
	// Required: true
	Network PluginConfigNetwork `json:"Network"`

	// pid host
	// Required: true
	PidHost bool `json:"PidHost"`

	// propagated mount
	// Required: true
	PropagatedMount string `json:"PropagatedMount"`

	// user
	User PluginConfigUser `json:"User,omitempty"`

	// work dir
	// Required: true
	WorkDir string `json:"WorkDir"`

	// rootfs
	Rootfs *PluginConfigRootfs `json:"rootfs,omitempty"`
}

PluginConfig The config of a plugin. swagger:model pluginConfig

func (*PluginConfig) MarshalBinary ¶

func (m *PluginConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfig) UnmarshalBinary ¶

func (m *PluginConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfig) Validate ¶

func (m *PluginConfig) Validate(formats strfmt.Registry) error

Validate validates this plugin config

type PluginConfigArgs ¶

type PluginConfigArgs struct {

	// description
	// Required: true
	Description string `json:"Description"`

	// name
	// Required: true
	Name string `json:"Name"`

	// settable
	// Required: true
	Settable []string `json:"Settable"`

	// value
	// Required: true
	Value []string `json:"Value"`
}

PluginConfigArgs plugin config args swagger:model pluginConfigArgs

func (*PluginConfigArgs) MarshalBinary ¶

func (m *PluginConfigArgs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigArgs) UnmarshalBinary ¶

func (m *PluginConfigArgs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigArgs) Validate ¶

func (m *PluginConfigArgs) Validate(formats strfmt.Registry) error

Validate validates this plugin config args

type PluginConfigEnv ¶

type PluginConfigEnv []PluginEnv

PluginConfigEnv plugin config env swagger:model pluginConfigEnv

func (PluginConfigEnv) Validate ¶

func (m PluginConfigEnv) Validate(formats strfmt.Registry) error

Validate validates this plugin config env

type PluginConfigInterface ¶

type PluginConfigInterface struct {

	// socket
	// Required: true
	Socket string `json:"Socket"`

	// types
	// Required: true
	Types PluginConfigInterfaceTypes `json:"Types"`
}

PluginConfigInterface The interface between Docker and the plugin swagger:model pluginConfigInterface

func (*PluginConfigInterface) MarshalBinary ¶

func (m *PluginConfigInterface) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigInterface) UnmarshalBinary ¶

func (m *PluginConfigInterface) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigInterface) Validate ¶

func (m *PluginConfigInterface) Validate(formats strfmt.Registry) error

Validate validates this plugin config interface

type PluginConfigInterfaceTypes ¶

type PluginConfigInterfaceTypes []PluginInterfaceType

PluginConfigInterfaceTypes plugin config interface types swagger:model pluginConfigInterfaceTypes

func (PluginConfigInterfaceTypes) Validate ¶

func (m PluginConfigInterfaceTypes) Validate(formats strfmt.Registry) error

Validate validates this plugin config interface types

type PluginConfigLinux ¶

type PluginConfigLinux struct {

	// allow all devices
	// Required: true
	AllowAllDevices bool `json:"AllowAllDevices"`

	// capabilities
	// Required: true
	Capabilities []string `json:"Capabilities"`

	// devices
	// Required: true
	Devices PluginConfigLinuxDevices `json:"Devices"`
}

PluginConfigLinux plugin config linux swagger:model pluginConfigLinux

func (*PluginConfigLinux) MarshalBinary ¶

func (m *PluginConfigLinux) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigLinux) UnmarshalBinary ¶

func (m *PluginConfigLinux) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigLinux) Validate ¶

func (m *PluginConfigLinux) Validate(formats strfmt.Registry) error

Validate validates this plugin config linux

type PluginConfigLinuxDevices ¶

type PluginConfigLinuxDevices []PluginDevice

PluginConfigLinuxDevices plugin config linux devices swagger:model pluginConfigLinuxDevices

func (PluginConfigLinuxDevices) Validate ¶

func (m PluginConfigLinuxDevices) Validate(formats strfmt.Registry) error

Validate validates this plugin config linux devices

type PluginConfigMounts ¶

type PluginConfigMounts []PluginMount

PluginConfigMounts plugin config mounts swagger:model pluginConfigMounts

func (PluginConfigMounts) Validate ¶

func (m PluginConfigMounts) Validate(formats strfmt.Registry) error

Validate validates this plugin config mounts

type PluginConfigNetwork ¶

type PluginConfigNetwork struct {

	// type
	// Required: true
	Type string `json:"Type"`
}

PluginConfigNetwork plugin config network swagger:model pluginConfigNetwork

func (*PluginConfigNetwork) MarshalBinary ¶

func (m *PluginConfigNetwork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigNetwork) UnmarshalBinary ¶

func (m *PluginConfigNetwork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigNetwork) Validate ¶

func (m *PluginConfigNetwork) Validate(formats strfmt.Registry) error

Validate validates this plugin config network

type PluginConfigRootfs ¶

type PluginConfigRootfs struct {

	// diff ids
	DiffIds []string `json:"diff_ids"`

	// type
	Type string `json:"type,omitempty"`
}

PluginConfigRootfs plugin config rootfs swagger:model pluginConfigRootfs

func (*PluginConfigRootfs) MarshalBinary ¶

func (m *PluginConfigRootfs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigRootfs) UnmarshalBinary ¶

func (m *PluginConfigRootfs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigRootfs) Validate ¶

func (m *PluginConfigRootfs) Validate(formats strfmt.Registry) error

Validate validates this plugin config rootfs

type PluginConfigUser ¶

type PluginConfigUser struct {

	// g ID
	GID uint32 `json:"GID,omitempty"`

	// UID
	UID uint32 `json:"UID,omitempty"`
}

PluginConfigUser plugin config user swagger:model pluginConfigUser

func (*PluginConfigUser) MarshalBinary ¶

func (m *PluginConfigUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginConfigUser) UnmarshalBinary ¶

func (m *PluginConfigUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginConfigUser) Validate ¶

func (m *PluginConfigUser) Validate(formats strfmt.Registry) error

Validate validates this plugin config user

type PluginDevice ¶

type PluginDevice struct {

	// description
	// Required: true
	Description string `json:"Description"`

	// name
	// Required: true
	Name string `json:"Name"`

	// path
	// Required: true
	Path *string `json:"Path"`

	// settable
	// Required: true
	Settable []string `json:"Settable"`
}

PluginDevice plugin device swagger:model PluginDevice

func (*PluginDevice) MarshalBinary ¶

func (m *PluginDevice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginDevice) UnmarshalBinary ¶

func (m *PluginDevice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginDevice) Validate ¶

func (m *PluginDevice) Validate(formats strfmt.Registry) error

Validate validates this plugin device

type PluginEnv ¶

type PluginEnv struct {

	// description
	// Required: true
	Description string `json:"Description"`

	// name
	// Required: true
	Name string `json:"Name"`

	// settable
	// Required: true
	Settable []string `json:"Settable"`

	// value
	// Required: true
	Value *string `json:"Value"`
}

PluginEnv plugin env swagger:model PluginEnv

func (*PluginEnv) MarshalBinary ¶

func (m *PluginEnv) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginEnv) UnmarshalBinary ¶

func (m *PluginEnv) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginEnv) Validate ¶

func (m *PluginEnv) Validate(formats strfmt.Registry) error

Validate validates this plugin env

type PluginInterfaceType ¶

type PluginInterfaceType struct {

	// capability
	// Required: true
	Capability string `json:"Capability"`

	// prefix
	// Required: true
	Prefix string `json:"Prefix"`

	// version
	// Required: true
	Version string `json:"Version"`
}

PluginInterfaceType plugin interface type swagger:model PluginInterfaceType

func (*PluginInterfaceType) MarshalBinary ¶

func (m *PluginInterfaceType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginInterfaceType) UnmarshalBinary ¶

func (m *PluginInterfaceType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginInterfaceType) Validate ¶

func (m *PluginInterfaceType) Validate(formats strfmt.Registry) error

Validate validates this plugin interface type

type PluginListOKBody ¶

type PluginListOKBody []*Plugin

PluginListOKBody plugin list o k body swagger:model pluginListOKBody

func (PluginListOKBody) Validate ¶

func (m PluginListOKBody) Validate(formats strfmt.Registry) error

Validate validates this plugin list o k body

type PluginMount ¶

type PluginMount struct {

	// description
	// Required: true
	Description string `json:"Description"`

	// destination
	// Required: true
	Destination string `json:"Destination"`

	// name
	// Required: true
	Name string `json:"Name"`

	// options
	// Required: true
	Options []string `json:"Options"`

	// settable
	// Required: true
	Settable []string `json:"Settable"`

	// source
	// Required: true
	Source *string `json:"Source"`

	// type
	// Required: true
	Type string `json:"Type"`
}

PluginMount plugin mount swagger:model PluginMount

func (*PluginMount) MarshalBinary ¶

func (m *PluginMount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginMount) UnmarshalBinary ¶

func (m *PluginMount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginMount) Validate ¶

func (m *PluginMount) Validate(formats strfmt.Registry) error

Validate validates this plugin mount

type PluginPullParamsBody ¶

type PluginPullParamsBody []*PluginPullParamsBodyItems

PluginPullParamsBody plugin pull params body swagger:model pluginPullParamsBody

func (PluginPullParamsBody) Validate ¶

func (m PluginPullParamsBody) Validate(formats strfmt.Registry) error

Validate validates this plugin pull params body

type PluginPullParamsBodyItems ¶

type PluginPullParamsBodyItems struct {

	// description
	Description string `json:"Description,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// value
	Value []string `json:"Value"`
}

PluginPullParamsBodyItems Describes a permission accepted by the user upon installing the plugin. swagger:model pluginPullParamsBodyItems

func (*PluginPullParamsBodyItems) MarshalBinary ¶

func (m *PluginPullParamsBodyItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginPullParamsBodyItems) UnmarshalBinary ¶

func (m *PluginPullParamsBodyItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginPullParamsBodyItems) Validate ¶

func (m *PluginPullParamsBodyItems) Validate(formats strfmt.Registry) error

Validate validates this plugin pull params body items

type PluginSettings ¶

type PluginSettings struct {

	// args
	// Required: true
	Args []string `json:"Args"`

	// devices
	// Required: true
	Devices PluginSettingsDevices `json:"Devices"`

	// env
	// Required: true
	Env []string `json:"Env"`

	// mounts
	// Required: true
	Mounts PluginSettingsMounts `json:"Mounts"`
}

PluginSettings Settings that can be modified by users. swagger:model pluginSettings

func (*PluginSettings) MarshalBinary ¶

func (m *PluginSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginSettings) UnmarshalBinary ¶

func (m *PluginSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginSettings) Validate ¶

func (m *PluginSettings) Validate(formats strfmt.Registry) error

Validate validates this plugin settings

type PluginSettingsDevices ¶

type PluginSettingsDevices []PluginDevice

PluginSettingsDevices plugin settings devices swagger:model pluginSettingsDevices

func (PluginSettingsDevices) Validate ¶

func (m PluginSettingsDevices) Validate(formats strfmt.Registry) error

Validate validates this plugin settings devices

type PluginSettingsMounts ¶

type PluginSettingsMounts []PluginMount

PluginSettingsMounts plugin settings mounts swagger:model pluginSettingsMounts

func (PluginSettingsMounts) Validate ¶

func (m PluginSettingsMounts) Validate(formats strfmt.Registry) error

Validate validates this plugin settings mounts

type PluginUpgradeParamsBody ¶

type PluginUpgradeParamsBody []*PluginUpgradeParamsBodyItems

PluginUpgradeParamsBody plugin upgrade params body swagger:model pluginUpgradeParamsBody

func (PluginUpgradeParamsBody) Validate ¶

func (m PluginUpgradeParamsBody) Validate(formats strfmt.Registry) error

Validate validates this plugin upgrade params body

type PluginUpgradeParamsBodyItems ¶

type PluginUpgradeParamsBodyItems struct {

	// description
	Description string `json:"Description,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// value
	Value []string `json:"Value"`
}

PluginUpgradeParamsBodyItems Describes a permission accepted by the user upon installing the plugin. swagger:model pluginUpgradeParamsBodyItems

func (*PluginUpgradeParamsBodyItems) MarshalBinary ¶

func (m *PluginUpgradeParamsBodyItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginUpgradeParamsBodyItems) UnmarshalBinary ¶

func (m *PluginUpgradeParamsBodyItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginUpgradeParamsBodyItems) Validate ¶

func (m *PluginUpgradeParamsBodyItems) Validate(formats strfmt.Registry) error

Validate validates this plugin upgrade params body items

type PluginsInfo ¶

type PluginsInfo struct {

	// Names of available authorization plugins.
	Authorization []string `json:"Authorization"`

	// Names of available logging-drivers, and logging-driver plugins.
	Log []string `json:"Log"`

	// Names of available network-drivers, and network-driver plugins.
	Network []string `json:"Network"`

	// Names of available volume-drivers, and network-driver plugins.
	Volume []string `json:"Volume"`
}

PluginsInfo Available plugins per type.

<p><br /></p>

> **Note**: Only unmanaged (V1) plugins are included in this list. > V1 plugins are "lazily" loaded, and are not returned in this list > if there is no resource using the plugin.

swagger:model PluginsInfo

func (*PluginsInfo) MarshalBinary ¶

func (m *PluginsInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PluginsInfo) UnmarshalBinary ¶

func (m *PluginsInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PluginsInfo) Validate ¶

func (m *PluginsInfo) Validate(formats strfmt.Registry) error

Validate validates this plugins info

type Port ¶

type Port struct {

	// IP
	IP string `json:"IP,omitempty"`

	// Port on the container
	// Required: true
	PrivatePort uint16 `json:"PrivatePort"`

	// Port exposed on the host
	PublicPort uint16 `json:"PublicPort,omitempty"`

	// type
	// Required: true
	Type string `json:"Type"`
}

Port An open port on a container swagger:model Port

func (*Port) MarshalBinary ¶

func (m *Port) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Port) UnmarshalBinary ¶

func (m *Port) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Port) Validate ¶

func (m *Port) Validate(formats strfmt.Registry) error

Validate validates this port

type PortBinding ¶

type PortBinding struct {

	// Host IP address that the container's port is mapped to.
	HostIP string `json:"HostIp,omitempty"`

	// Host port number that the container's port is mapped to.
	HostPort string `json:"HostPort,omitempty"`
}

PortBinding PortBinding represents a binding between a host IP address and a host port.

swagger:model PortBinding

func (*PortBinding) MarshalBinary ¶

func (m *PortBinding) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PortBinding) UnmarshalBinary ¶

func (m *PortBinding) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PortBinding) Validate ¶

func (m *PortBinding) Validate(formats strfmt.Registry) error

Validate validates this port binding

type PortMap ¶

PortMap PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `<port>/<protocol>`, for example, `80/udp`.

If a container's port is mapped for both `tcp` and `udp`, two separate entries are added to the mapping table.

swagger:model PortMap

func (PortMap) Validate ¶

func (m PortMap) Validate(formats strfmt.Registry) error

Validate validates this port map

type PortMapAdditionalProperties ¶

type PortMapAdditionalProperties []*PortBinding

PortMapAdditionalProperties port map additional properties swagger:model portMapAdditionalProperties

func (PortMapAdditionalProperties) Validate ¶

func (m PortMapAdditionalProperties) Validate(formats strfmt.Registry) error

Validate validates this port map additional properties

type ProcessConfig ¶

type ProcessConfig struct {

	// arguments
	Arguments []string `json:"arguments"`

	// entrypoint
	Entrypoint string `json:"entrypoint,omitempty"`

	// privileged
	Privileged bool `json:"privileged,omitempty"`

	// tty
	Tty bool `json:"tty,omitempty"`

	// user
	User string `json:"user,omitempty"`
}

ProcessConfig process config swagger:model ProcessConfig

func (*ProcessConfig) MarshalBinary ¶

func (m *ProcessConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProcessConfig) UnmarshalBinary ¶

func (m *ProcessConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProcessConfig) Validate ¶

func (m *ProcessConfig) Validate(formats strfmt.Registry) error

Validate validates this process config

type ProgressDetail ¶

type ProgressDetail struct {

	// current
	Current int64 `json:"current,omitempty"`

	// total
	Total int64 `json:"total,omitempty"`
}

ProgressDetail progress detail swagger:model ProgressDetail

func (*ProgressDetail) MarshalBinary ¶

func (m *ProgressDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProgressDetail) UnmarshalBinary ¶

func (m *ProgressDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProgressDetail) Validate ¶

func (m *ProgressDetail) Validate(formats strfmt.Registry) error

Validate validates this progress detail

type PushImageInfo ¶

type PushImageInfo struct {

	// error
	Error string `json:"error,omitempty"`

	// progress
	Progress string `json:"progress,omitempty"`

	// progress detail
	ProgressDetail *ProgressDetail `json:"progressDetail,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

PushImageInfo push image info swagger:model PushImageInfo

func (*PushImageInfo) MarshalBinary ¶

func (m *PushImageInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PushImageInfo) UnmarshalBinary ¶

func (m *PushImageInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PushImageInfo) Validate ¶

func (m *PushImageInfo) Validate(formats strfmt.Registry) error

Validate validates this push image info

type Reachability ¶

type Reachability string

Reachability Reachability represents the reachability of a node. swagger:model Reachability

const (

	// ReachabilityUnknown captures enum value "unknown"
	ReachabilityUnknown Reachability = "unknown"

	// ReachabilityUnreachable captures enum value "unreachable"
	ReachabilityUnreachable Reachability = "unreachable"

	// ReachabilityReachable captures enum value "reachable"
	ReachabilityReachable Reachability = "reachable"
)

func (Reachability) Validate ¶

func (m Reachability) Validate(formats strfmt.Registry) error

Validate validates this reachability

type RegistryServiceConfig ¶

type RegistryServiceConfig struct {

	// List of IP ranges to which nondistributable artifacts can be pushed,
	// using the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632).
	//
	// Some images (for example, Windows base images) contain artifacts
	// whose distribution is restricted by license. When these images are
	// pushed to a registry, restricted artifacts are not included.
	//
	// This configuration override this behavior, and enables the daemon to
	// push nondistributable artifacts to all registries whose resolved IP
	// address is within the subnet described by the CIDR syntax.
	//
	// This option is useful when pushing images containing
	// nondistributable artifacts to a registry on an air-gapped network so
	// hosts on that network can pull the images without connecting to
	// another server.
	//
	// > **Warning**: Nondistributable artifacts typically have restrictions
	// > on how and where they can be distributed and shared. Only use this
	// > feature to push artifacts to private registries and ensure that you
	// > are in compliance with any terms that cover redistributing
	// > nondistributable artifacts.
	//
	AllowNondistributableArtifactsCIDRs []string `json:"AllowNondistributableArtifactsCIDRs"`

	// List of registry hostnames to which nondistributable artifacts can be
	// pushed, using the format `<hostname>[:<port>]` or `<IP address>[:<port>]`.
	//
	// Some images (for example, Windows base images) contain artifacts
	// whose distribution is restricted by license. When these images are
	// pushed to a registry, restricted artifacts are not included.
	//
	// This configuration override this behavior for the specified
	// registries.
	//
	// This option is useful when pushing images containing
	// nondistributable artifacts to a registry on an air-gapped network so
	// hosts on that network can pull the images without connecting to
	// another server.
	//
	// > **Warning**: Nondistributable artifacts typically have restrictions
	// > on how and where they can be distributed and shared. Only use this
	// > feature to push artifacts to private registries and ensure that you
	// > are in compliance with any terms that cover redistributing
	// > nondistributable artifacts.
	//
	AllowNondistributableArtifactsHostnames []string `json:"AllowNondistributableArtifactsHostnames"`

	// index configs
	IndexConfigs RegistryServiceConfigIndexConfigs `json:"IndexConfigs,omitempty"`

	// List of IP ranges of insecure registries, using the CIDR syntax
	// ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries
	// accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates
	// from unknown CAs) communication.
	//
	// By default, local registries (`127.0.0.0/8`) are configured as
	// insecure. All other registries are secure. Communicating with an
	// insecure registry is not possible if the daemon assumes that registry
	// is secure.
	//
	// This configuration override this behavior, insecure communication with
	// registries whose resolved IP address is within the subnet described by
	// the CIDR syntax.
	//
	// Registries can also be marked insecure by hostname. Those registries
	// are listed under `IndexConfigs` and have their `Secure` field set to
	// `false`.
	//
	// > **Warning**: Using this option can be useful when running a local
	// > registry, but introduces security vulnerabilities. This option
	// > should therefore ONLY be used for testing purposes. For increased
	// > security, users should add their CA to their system's list of trusted
	// > CAs instead of enabling this option.
	//
	InsecureRegistryCIDRs []string `json:"InsecureRegistryCIDRs"`

	// List of registry URLs that act as a mirror for the official
	// (`docker.io`) registry.
	//
	Mirrors []string `json:"Mirrors"`
}

RegistryServiceConfig RegistryServiceConfig stores daemon registry services configuration.

swagger:model RegistryServiceConfig

func (*RegistryServiceConfig) MarshalBinary ¶

func (m *RegistryServiceConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegistryServiceConfig) UnmarshalBinary ¶

func (m *RegistryServiceConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegistryServiceConfig) Validate ¶

func (m *RegistryServiceConfig) Validate(formats strfmt.Registry) error

Validate validates this registry service config

type RegistryServiceConfigIndexConfigs ¶

type RegistryServiceConfigIndexConfigs map[string]IndexInfo

RegistryServiceConfigIndexConfigs registry service config index configs swagger:model registryServiceConfigIndexConfigs

func (RegistryServiceConfigIndexConfigs) Validate ¶

Validate validates this registry service config index configs

type ResourceObject ¶

type ResourceObject struct {

	// generic resources
	GenericResources GenericResources `json:"GenericResources"`

	// memory bytes
	MemoryBytes int64 `json:"MemoryBytes,omitempty"`

	// nano cpus
	NanoCpus int64 `json:"NanoCPUs,omitempty"`
}

ResourceObject An object describing the resources which can be advertised by a node and requested by a task swagger:model ResourceObject

func (*ResourceObject) MarshalBinary ¶

func (m *ResourceObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceObject) UnmarshalBinary ¶

func (m *ResourceObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceObject) Validate ¶

func (m *ResourceObject) Validate(formats strfmt.Registry) error

Validate validates this resource object

type Resources ¶

type Resources struct {

	// blkio device read bps
	BlkioDeviceReadBps ResourcesBlkioDeviceReadBps `json:"BlkioDeviceReadBps"`

	// blkio device read i ops
	BlkioDeviceReadIOps ResourcesBlkioDeviceReadIOps `json:"BlkioDeviceReadIOps"`

	// blkio device write bps
	BlkioDeviceWriteBps ResourcesBlkioDeviceWriteBps `json:"BlkioDeviceWriteBps"`

	// blkio device write i ops
	BlkioDeviceWriteIOps ResourcesBlkioDeviceWriteIOps `json:"BlkioDeviceWriteIOps"`

	// Block IO weight (relative weight).
	// Maximum: 1000
	// Minimum: 0
	BlkioWeight *int64 `json:"BlkioWeight,omitempty"`

	// blkio weight device
	BlkioWeightDevice ResourcesBlkioWeightDevice `json:"BlkioWeightDevice"`

	// Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist.
	CgroupParent string `json:"CgroupParent,omitempty"`

	// The number of usable CPUs (Windows only).
	//
	// On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.
	//
	CPUCount int64 `json:"CpuCount,omitempty"`

	// The usable percentage of the available CPUs (Windows only).
	//
	// On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.
	//
	CPUPercent int64 `json:"CpuPercent,omitempty"`

	// The length of a CPU period in microseconds.
	CPUPeriod int64 `json:"CpuPeriod,omitempty"`

	// Microseconds of CPU time that the container can get in a CPU period.
	CPUQuota int64 `json:"CpuQuota,omitempty"`

	// The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks.
	CPURealtimePeriod int64 `json:"CpuRealtimePeriod,omitempty"`

	// The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks.
	CPURealtimeRuntime int64 `json:"CpuRealtimeRuntime,omitempty"`

	// An integer value representing this container's relative CPU weight versus other containers.
	CPUShares int64 `json:"CpuShares,omitempty"`

	// CPUs in which to allow execution (e.g., `0-3`, `0,1`)
	CpusetCpus string `json:"CpusetCpus,omitempty"`

	// Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
	CpusetMems string `json:"CpusetMems,omitempty"`

	// a list of cgroup rules to apply to the container
	DeviceCgroupRules []string `json:"DeviceCgroupRules"`

	// devices
	Devices ResourcesDevices `json:"Devices"`

	// Disk limit (in bytes).
	DiskQuota int64 `json:"DiskQuota,omitempty"`

	// Maximum IO in bytes per second for the container system drive (Windows only)
	IOMaximumBandwidth int64 `json:"IOMaximumBandwidth,omitempty"`

	// Maximum IOps for the container system drive (Windows only)
	IOMaximumIOps int64 `json:"IOMaximumIOps,omitempty"`

	// Kernel memory limit in bytes.
	KernelMemory int64 `json:"KernelMemory,omitempty"`

	// Memory limit in bytes.
	Memory int64 `json:"Memory,omitempty"`

	// Memory soft limit in bytes.
	MemoryReservation int64 `json:"MemoryReservation,omitempty"`

	// Total memory limit (memory + swap). Set as `-1` to enable unlimited swap.
	MemorySwap int64 `json:"MemorySwap,omitempty"`

	// Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100.
	// Maximum: 100
	// Minimum: 0
	MemorySwappiness *int64 `json:"MemorySwappiness,omitempty"`

	// CPU quota in units of 10<sup>-9</sup> CPUs.
	NanoCpus int64 `json:"NanoCPUs,omitempty"`

	// Disable OOM Killer for the container.
	OomKillDisable bool `json:"OomKillDisable,omitempty"`

	// Tune a container's pids limit. Set -1 for unlimited.
	PidsLimit int64 `json:"PidsLimit,omitempty"`

	// ulimits
	Ulimits ResourcesUlimits `json:"Ulimits"`
}

Resources A container's resources (cgroups config, ulimits, etc) swagger:model Resources

func (*Resources) MarshalBinary ¶

func (m *Resources) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Resources) UnmarshalBinary ¶

func (m *Resources) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Resources) Validate ¶

func (m *Resources) Validate(formats strfmt.Registry) error

Validate validates this resources

type ResourcesBlkioDeviceReadBps ¶

type ResourcesBlkioDeviceReadBps []*ThrottleDevice

ResourcesBlkioDeviceReadBps Limit read rate (bytes per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.

swagger:model resourcesBlkioDeviceReadBps

func (ResourcesBlkioDeviceReadBps) Validate ¶

func (m ResourcesBlkioDeviceReadBps) Validate(formats strfmt.Registry) error

Validate validates this resources blkio device read bps

type ResourcesBlkioDeviceReadIOps ¶

type ResourcesBlkioDeviceReadIOps []*ThrottleDevice

ResourcesBlkioDeviceReadIOps Limit read rate (IO per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.

swagger:model resourcesBlkioDeviceReadIOps

func (ResourcesBlkioDeviceReadIOps) Validate ¶

func (m ResourcesBlkioDeviceReadIOps) Validate(formats strfmt.Registry) error

Validate validates this resources blkio device read i ops

type ResourcesBlkioDeviceWriteBps ¶

type ResourcesBlkioDeviceWriteBps []*ThrottleDevice

ResourcesBlkioDeviceWriteBps Limit write rate (bytes per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.

swagger:model resourcesBlkioDeviceWriteBps

func (ResourcesBlkioDeviceWriteBps) Validate ¶

func (m ResourcesBlkioDeviceWriteBps) Validate(formats strfmt.Registry) error

Validate validates this resources blkio device write bps

type ResourcesBlkioDeviceWriteIOps ¶

type ResourcesBlkioDeviceWriteIOps []*ThrottleDevice

ResourcesBlkioDeviceWriteIOps Limit write rate (IO per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.

swagger:model resourcesBlkioDeviceWriteIOps

func (ResourcesBlkioDeviceWriteIOps) Validate ¶

func (m ResourcesBlkioDeviceWriteIOps) Validate(formats strfmt.Registry) error

Validate validates this resources blkio device write i ops

type ResourcesBlkioWeightDevice ¶

type ResourcesBlkioWeightDevice []*ResourcesBlkioWeightDeviceItems

ResourcesBlkioWeightDevice Block IO weight (relative device weight) in the form `[{"Path": "device_path", "Weight": weight}]`.

swagger:model resourcesBlkioWeightDevice

func (ResourcesBlkioWeightDevice) Validate ¶

func (m ResourcesBlkioWeightDevice) Validate(formats strfmt.Registry) error

Validate validates this resources blkio weight device

type ResourcesBlkioWeightDeviceItems ¶

type ResourcesBlkioWeightDeviceItems struct {

	// path
	Path string `json:"Path,omitempty"`

	// weight
	// Minimum: 0
	Weight *int64 `json:"Weight,omitempty"`
}

ResourcesBlkioWeightDeviceItems resources blkio weight device items swagger:model resourcesBlkioWeightDeviceItems

func (*ResourcesBlkioWeightDeviceItems) MarshalBinary ¶

func (m *ResourcesBlkioWeightDeviceItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcesBlkioWeightDeviceItems) UnmarshalBinary ¶

func (m *ResourcesBlkioWeightDeviceItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcesBlkioWeightDeviceItems) Validate ¶

Validate validates this resources blkio weight device items

type ResourcesDevices ¶

type ResourcesDevices []*DeviceMapping

ResourcesDevices A list of devices to add to the container. swagger:model resourcesDevices

func (ResourcesDevices) Validate ¶

func (m ResourcesDevices) Validate(formats strfmt.Registry) error

Validate validates this resources devices

type ResourcesUlimits ¶

type ResourcesUlimits []*ResourcesUlimitsItems

ResourcesUlimits A list of resource limits to set in the container. For example: `{"Name": "nofile", "Soft": 1024, "Hard": 2048}`"

swagger:model resourcesUlimits

func (ResourcesUlimits) Validate ¶

func (m ResourcesUlimits) Validate(formats strfmt.Registry) error

Validate validates this resources ulimits

type ResourcesUlimitsItems ¶

type ResourcesUlimitsItems struct {

	// Hard limit
	Hard int64 `json:"Hard,omitempty"`

	// Name of ulimit
	Name string `json:"Name,omitempty"`

	// Soft limit
	Soft int64 `json:"Soft,omitempty"`
}

ResourcesUlimitsItems resources ulimits items swagger:model resourcesUlimitsItems

func (*ResourcesUlimitsItems) MarshalBinary ¶

func (m *ResourcesUlimitsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcesUlimitsItems) UnmarshalBinary ¶

func (m *ResourcesUlimitsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcesUlimitsItems) Validate ¶

func (m *ResourcesUlimitsItems) Validate(formats strfmt.Registry) error

Validate validates this resources ulimits items

type RestartPolicy ¶

type RestartPolicy struct {

	// If `on-failure` is used, the number of times to retry before giving up
	MaximumRetryCount int64 `json:"MaximumRetryCount,omitempty"`

	// - Empty string means not to restart
	// - `always` Always restart
	// - `unless-stopped` Restart always except when the user has manually stopped the container
	// - `on-failure` Restart only when the container exit code is non-zero
	//
	Name string `json:"Name,omitempty"`
}

RestartPolicy The behavior to apply when the container exits. The default is not to restart.

An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server.

swagger:model RestartPolicy

func (*RestartPolicy) MarshalBinary ¶

func (m *RestartPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestartPolicy) UnmarshalBinary ¶

func (m *RestartPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestartPolicy) Validate ¶

func (m *RestartPolicy) Validate(formats strfmt.Registry) error

Validate validates this restart policy

type Runtime ¶

type Runtime struct {

	// Name and, optional, path, of the OCI executable binary.
	//
	// If the path is omitted, the daemon searches the host's `$PATH` for the
	// binary and uses the first result.
	//
	Path string `json:"path,omitempty"`

	// List of command-line arguments to pass to the runtime when invoked.
	//
	RuntimeArgs []string `json:"runtimeArgs"`
}

Runtime Runtime describes an [OCI compliant](https://github.com/opencontainers/runtime-spec) runtime.

The runtime is invoked by the daemon via the `containerd` daemon. OCI runtimes act as an interface to the Linux kernel namespaces, cgroups, and SELinux.

swagger:model Runtime

func (*Runtime) MarshalBinary ¶

func (m *Runtime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Runtime) UnmarshalBinary ¶

func (m *Runtime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Runtime) Validate ¶

func (m *Runtime) Validate(formats strfmt.Registry) error

Validate validates this runtime

type Secret ¶

type Secret struct {

	// created at
	CreatedAt string `json:"CreatedAt,omitempty"`

	// ID
	ID string `json:"ID,omitempty"`

	// spec
	Spec *SecretSpec `json:"Spec,omitempty"`

	// updated at
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

Secret secret swagger:model Secret

func (*Secret) MarshalBinary ¶

func (m *Secret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Secret) UnmarshalBinary ¶

func (m *Secret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Secret) Validate ¶

func (m *Secret) Validate(formats strfmt.Registry) error

Validate validates this secret

type SecretCreateCreatedBody ¶

type SecretCreateCreatedBody struct {

	// The ID of the created secret.
	ID string `json:"ID,omitempty"`
}

SecretCreateCreatedBody secret create created body swagger:model secretCreateCreatedBody

func (*SecretCreateCreatedBody) MarshalBinary ¶

func (m *SecretCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecretCreateCreatedBody) UnmarshalBinary ¶

func (m *SecretCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecretCreateCreatedBody) Validate ¶

func (m *SecretCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this secret create created body

type SecretCreateParamsBody ¶

type SecretCreateParamsBody struct {
	SecretSpec
}

SecretCreateParamsBody secret create params body swagger:model secretCreateParamsBody

func (*SecretCreateParamsBody) MarshalBinary ¶

func (m *SecretCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SecretCreateParamsBody) MarshalJSON ¶

func (m SecretCreateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SecretCreateParamsBody) UnmarshalBinary ¶

func (m *SecretCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecretCreateParamsBody) UnmarshalJSON ¶

func (m *SecretCreateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SecretCreateParamsBody) Validate ¶

func (m *SecretCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this secret create params body

type SecretListOKBody ¶

type SecretListOKBody []*Secret

SecretListOKBody secret list o k body swagger:model secretListOKBody

func (SecretListOKBody) Validate ¶

func (m SecretListOKBody) Validate(formats strfmt.Registry) error

Validate validates this secret list o k body

type SecretSpec ¶

type SecretSpec struct {

	// Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
	// data to store as secret.
	//
	// This field is only used to _create_ a secret, and is not returned by
	// other endpoints.
	//
	Data string `json:"Data,omitempty"`

	// Name of the secrets driver used to fetch the secret's value from an external secret store
	Driver *Driver `json:"Driver,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// User-defined name of the secret.
	Name string `json:"Name,omitempty"`
}

SecretSpec secret spec swagger:model SecretSpec

func (*SecretSpec) MarshalBinary ¶

func (m *SecretSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecretSpec) UnmarshalBinary ¶

func (m *SecretSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecretSpec) Validate ¶

func (m *SecretSpec) Validate(formats strfmt.Registry) error

Validate validates this secret spec

type Service ¶

type Service struct {

	// created at
	CreatedAt string `json:"CreatedAt,omitempty"`

	// endpoint
	Endpoint *ServiceEndpoint `json:"Endpoint,omitempty"`

	// ID
	ID string `json:"ID,omitempty"`

	// spec
	Spec *ServiceSpec `json:"Spec,omitempty"`

	// update status
	UpdateStatus *ServiceUpdateStatus `json:"UpdateStatus,omitempty"`

	// updated at
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

Service service swagger:model Service

func (*Service) MarshalBinary ¶

func (m *Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Service) UnmarshalBinary ¶

func (m *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Service) Validate ¶

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

type ServiceCreateCreatedBody ¶

type ServiceCreateCreatedBody struct {

	// The ID of the created service.
	ID string `json:"ID,omitempty"`

	// Optional warning message
	Warning string `json:"Warning,omitempty"`
}

ServiceCreateCreatedBody ServiceCreateResponse swagger:model serviceCreateCreatedBody

func (*ServiceCreateCreatedBody) MarshalBinary ¶

func (m *ServiceCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceCreateCreatedBody) UnmarshalBinary ¶

func (m *ServiceCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceCreateCreatedBody) Validate ¶

func (m *ServiceCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this service create created body

type ServiceCreateParamsBody ¶

type ServiceCreateParamsBody struct {
	ServiceSpec
}

ServiceCreateParamsBody service create params body swagger:model serviceCreateParamsBody

func (*ServiceCreateParamsBody) MarshalBinary ¶

func (m *ServiceCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ServiceCreateParamsBody) MarshalJSON ¶

func (m ServiceCreateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ServiceCreateParamsBody) UnmarshalBinary ¶

func (m *ServiceCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceCreateParamsBody) UnmarshalJSON ¶

func (m *ServiceCreateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ServiceCreateParamsBody) Validate ¶

func (m *ServiceCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this service create params body

type ServiceEndpoint ¶

type ServiceEndpoint struct {

	// ports
	Ports ServiceEndpointPorts `json:"Ports"`

	// spec
	Spec *EndpointSpec `json:"Spec,omitempty"`

	// virtual ips
	VirtualIps ServiceEndpointVirtualIps `json:"VirtualIPs"`
}

ServiceEndpoint service endpoint swagger:model serviceEndpoint

func (*ServiceEndpoint) MarshalBinary ¶

func (m *ServiceEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceEndpoint) UnmarshalBinary ¶

func (m *ServiceEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceEndpoint) Validate ¶

func (m *ServiceEndpoint) Validate(formats strfmt.Registry) error

Validate validates this service endpoint

type ServiceEndpointPorts ¶

type ServiceEndpointPorts []*EndpointPortConfig

ServiceEndpointPorts service endpoint ports swagger:model serviceEndpointPorts

func (ServiceEndpointPorts) Validate ¶

func (m ServiceEndpointPorts) Validate(formats strfmt.Registry) error

Validate validates this service endpoint ports

type ServiceEndpointVirtualIps ¶

type ServiceEndpointVirtualIps []*ServiceEndpointVirtualIpsItems

ServiceEndpointVirtualIps service endpoint virtual ips swagger:model serviceEndpointVirtualIps

func (ServiceEndpointVirtualIps) Validate ¶

func (m ServiceEndpointVirtualIps) Validate(formats strfmt.Registry) error

Validate validates this service endpoint virtual ips

type ServiceEndpointVirtualIpsItems ¶

type ServiceEndpointVirtualIpsItems struct {

	// addr
	Addr string `json:"Addr,omitempty"`

	// network ID
	NetworkID string `json:"NetworkID,omitempty"`
}

ServiceEndpointVirtualIpsItems service endpoint virtual ips items swagger:model serviceEndpointVirtualIpsItems

func (*ServiceEndpointVirtualIpsItems) MarshalBinary ¶

func (m *ServiceEndpointVirtualIpsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceEndpointVirtualIpsItems) UnmarshalBinary ¶

func (m *ServiceEndpointVirtualIpsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceEndpointVirtualIpsItems) Validate ¶

func (m *ServiceEndpointVirtualIpsItems) Validate(formats strfmt.Registry) error

Validate validates this service endpoint virtual ips items

type ServiceListOKBody ¶

type ServiceListOKBody []*Service

ServiceListOKBody service list o k body swagger:model serviceListOKBody

func (ServiceListOKBody) Validate ¶

func (m ServiceListOKBody) Validate(formats strfmt.Registry) error

Validate validates this service list o k body

type ServiceSpec ¶

type ServiceSpec struct {

	// endpoint spec
	EndpointSpec *EndpointSpec `json:"EndpointSpec,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// mode
	Mode *ServiceSpecMode `json:"Mode,omitempty"`

	// Name of the service.
	Name string `json:"Name,omitempty"`

	// networks
	Networks ServiceSpecNetworks `json:"Networks"`

	// rollback config
	RollbackConfig *ServiceSpecRollbackConfig `json:"RollbackConfig,omitempty"`

	// task template
	TaskTemplate *TaskSpec `json:"TaskTemplate,omitempty"`

	// update config
	UpdateConfig *ServiceSpecUpdateConfig `json:"UpdateConfig,omitempty"`
}

ServiceSpec User modifiable configuration for a service. swagger:model ServiceSpec

func (*ServiceSpec) MarshalBinary ¶

func (m *ServiceSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpec) UnmarshalBinary ¶

func (m *ServiceSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpec) Validate ¶

func (m *ServiceSpec) Validate(formats strfmt.Registry) error

Validate validates this service spec

type ServiceSpecMode ¶

type ServiceSpecMode struct {

	// global
	Global interface{} `json:"Global,omitempty"`

	// replicated
	Replicated *ServiceSpecModeReplicated `json:"Replicated,omitempty"`
}

ServiceSpecMode Scheduling mode for the service. swagger:model serviceSpecMode

func (*ServiceSpecMode) MarshalBinary ¶

func (m *ServiceSpecMode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpecMode) UnmarshalBinary ¶

func (m *ServiceSpecMode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpecMode) Validate ¶

func (m *ServiceSpecMode) Validate(formats strfmt.Registry) error

Validate validates this service spec mode

type ServiceSpecModeReplicated ¶

type ServiceSpecModeReplicated struct {

	// replicas
	Replicas int64 `json:"Replicas,omitempty"`
}

ServiceSpecModeReplicated service spec mode replicated swagger:model serviceSpecModeReplicated

func (*ServiceSpecModeReplicated) MarshalBinary ¶

func (m *ServiceSpecModeReplicated) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpecModeReplicated) UnmarshalBinary ¶

func (m *ServiceSpecModeReplicated) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpecModeReplicated) Validate ¶

func (m *ServiceSpecModeReplicated) Validate(formats strfmt.Registry) error

Validate validates this service spec mode replicated

type ServiceSpecNetworks ¶

type ServiceSpecNetworks []*ServiceSpecNetworksItems

ServiceSpecNetworks Array of network names or IDs to attach the service to. swagger:model serviceSpecNetworks

func (ServiceSpecNetworks) Validate ¶

func (m ServiceSpecNetworks) Validate(formats strfmt.Registry) error

Validate validates this service spec networks

type ServiceSpecNetworksItems ¶

type ServiceSpecNetworksItems struct {

	// aliases
	Aliases []string `json:"Aliases"`

	// target
	Target string `json:"Target,omitempty"`
}

ServiceSpecNetworksItems service spec networks items swagger:model serviceSpecNetworksItems

func (*ServiceSpecNetworksItems) MarshalBinary ¶

func (m *ServiceSpecNetworksItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpecNetworksItems) UnmarshalBinary ¶

func (m *ServiceSpecNetworksItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpecNetworksItems) Validate ¶

func (m *ServiceSpecNetworksItems) Validate(formats strfmt.Registry) error

Validate validates this service spec networks items

type ServiceSpecRollbackConfig ¶

type ServiceSpecRollbackConfig struct {

	// Amount of time between rollback iterations, in nanoseconds.
	Delay int64 `json:"Delay,omitempty"`

	// Action to take if an rolled back task fails to run, or stops running during the rollback.
	FailureAction string `json:"FailureAction,omitempty"`

	// The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1.
	MaxFailureRatio float64 `json:"MaxFailureRatio,omitempty"`

	// Amount of time to monitor each rolled back task for failures, in nanoseconds.
	Monitor int64 `json:"Monitor,omitempty"`

	// The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.
	Order string `json:"Order,omitempty"`

	// Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism).
	Parallelism int64 `json:"Parallelism,omitempty"`
}

ServiceSpecRollbackConfig Specification for the rollback strategy of the service. swagger:model serviceSpecRollbackConfig

func (*ServiceSpecRollbackConfig) MarshalBinary ¶

func (m *ServiceSpecRollbackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpecRollbackConfig) UnmarshalBinary ¶

func (m *ServiceSpecRollbackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpecRollbackConfig) Validate ¶

func (m *ServiceSpecRollbackConfig) Validate(formats strfmt.Registry) error

Validate validates this service spec rollback config

type ServiceSpecUpdateConfig ¶

type ServiceSpecUpdateConfig struct {

	// Amount of time between updates, in nanoseconds.
	Delay int64 `json:"Delay,omitempty"`

	// Action to take if an updated task fails to run, or stops running during the update.
	FailureAction string `json:"FailureAction,omitempty"`

	// The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1.
	MaxFailureRatio float64 `json:"MaxFailureRatio,omitempty"`

	// Amount of time to monitor each updated task for failures, in nanoseconds.
	Monitor int64 `json:"Monitor,omitempty"`

	// The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.
	Order string `json:"Order,omitempty"`

	// Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism).
	Parallelism int64 `json:"Parallelism,omitempty"`
}

ServiceSpecUpdateConfig Specification for the update strategy of the service. swagger:model serviceSpecUpdateConfig

func (*ServiceSpecUpdateConfig) MarshalBinary ¶

func (m *ServiceSpecUpdateConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceSpecUpdateConfig) UnmarshalBinary ¶

func (m *ServiceSpecUpdateConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceSpecUpdateConfig) Validate ¶

func (m *ServiceSpecUpdateConfig) Validate(formats strfmt.Registry) error

Validate validates this service spec update config

type ServiceUpdateParamsBody ¶

type ServiceUpdateParamsBody struct {
	ServiceSpec
}

ServiceUpdateParamsBody service update params body swagger:model serviceUpdateParamsBody

func (*ServiceUpdateParamsBody) MarshalBinary ¶

func (m *ServiceUpdateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ServiceUpdateParamsBody) MarshalJSON ¶

func (m ServiceUpdateParamsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ServiceUpdateParamsBody) UnmarshalBinary ¶

func (m *ServiceUpdateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceUpdateParamsBody) UnmarshalJSON ¶

func (m *ServiceUpdateParamsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ServiceUpdateParamsBody) Validate ¶

func (m *ServiceUpdateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this service update params body

type ServiceUpdateResponse ¶

type ServiceUpdateResponse struct {

	// Optional warning messages
	Warnings []string `json:"Warnings"`
}

ServiceUpdateResponse service update response swagger:model ServiceUpdateResponse

func (*ServiceUpdateResponse) MarshalBinary ¶

func (m *ServiceUpdateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceUpdateResponse) UnmarshalBinary ¶

func (m *ServiceUpdateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceUpdateResponse) Validate ¶

func (m *ServiceUpdateResponse) Validate(formats strfmt.Registry) error

Validate validates this service update response

type ServiceUpdateStatus ¶

type ServiceUpdateStatus struct {

	// completed at
	CompletedAt string `json:"CompletedAt,omitempty"`

	// message
	Message string `json:"Message,omitempty"`

	// started at
	StartedAt string `json:"StartedAt,omitempty"`

	// state
	State string `json:"State,omitempty"`
}

ServiceUpdateStatus The status of a service update. swagger:model serviceUpdateStatus

func (*ServiceUpdateStatus) MarshalBinary ¶

func (m *ServiceUpdateStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceUpdateStatus) UnmarshalBinary ¶

func (m *ServiceUpdateStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceUpdateStatus) Validate ¶

func (m *ServiceUpdateStatus) Validate(formats strfmt.Registry) error

Validate validates this service update status

type Swarm ¶

type Swarm struct {
	ClusterInfo

	SwarmAllOf1
}

Swarm swarm swagger:model Swarm

func (*Swarm) MarshalBinary ¶

func (m *Swarm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Swarm) MarshalJSON ¶

func (m Swarm) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*Swarm) UnmarshalBinary ¶

func (m *Swarm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Swarm) UnmarshalJSON ¶

func (m *Swarm) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*Swarm) Validate ¶

func (m *Swarm) Validate(formats strfmt.Registry) error

Validate validates this swarm

type SwarmAllOf1 ¶

type SwarmAllOf1 struct {

	// join tokens
	JoinTokens *JoinTokens `json:"JoinTokens,omitempty"`
}

SwarmAllOf1 swarm all of1 swagger:model swarmAllOf1

func (*SwarmAllOf1) MarshalBinary ¶

func (m *SwarmAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmAllOf1) UnmarshalBinary ¶

func (m *SwarmAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmAllOf1) Validate ¶

func (m *SwarmAllOf1) Validate(formats strfmt.Registry) error

Validate validates this swarm all of1

type SwarmInfo ¶

type SwarmInfo struct {

	// cluster
	Cluster *ClusterInfo `json:"Cluster,omitempty"`

	// control available
	ControlAvailable *bool `json:"ControlAvailable,omitempty"`

	// error
	Error string `json:"Error,omitempty"`

	// local node state
	LocalNodeState LocalNodeState `json:"LocalNodeState,omitempty"`

	// Total number of managers in the swarm.
	Managers *int64 `json:"Managers,omitempty"`

	// IP address at which this node can be reached by other nodes in the
	// swarm.
	//
	NodeAddr string `json:"NodeAddr,omitempty"`

	// Unique identifier of for this node in the swarm.
	NodeID string `json:"NodeID,omitempty"`

	// Total number of nodes in the swarm.
	Nodes *int64 `json:"Nodes,omitempty"`

	// remote managers
	RemoteManagers *SwarmInfoRemoteManagers `json:"RemoteManagers"`
}

SwarmInfo Represents generic information about swarm.

swagger:model SwarmInfo

func (*SwarmInfo) MarshalBinary ¶

func (m *SwarmInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmInfo) UnmarshalBinary ¶

func (m *SwarmInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmInfo) Validate ¶

func (m *SwarmInfo) Validate(formats strfmt.Registry) error

Validate validates this swarm info

type SwarmInfoRemoteManagers ¶

type SwarmInfoRemoteManagers []*PeerNode

SwarmInfoRemoteManagers List of ID's and addresses of other managers in the swarm.

swagger:model swarmInfoRemoteManagers

func (SwarmInfoRemoteManagers) Validate ¶

func (m SwarmInfoRemoteManagers) Validate(formats strfmt.Registry) error

Validate validates this swarm info remote managers

type SwarmInitParamsBody ¶

type SwarmInitParamsBody struct {

	// Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible.
	AdvertiseAddr string `json:"AdvertiseAddr,omitempty"`

	// Address or interface to use for data path traffic (format: `<ip|interface>`), for example,  `192.168.1.1`,
	// or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`
	// is used.
	//
	// The `DataPathAddr` specifies the address that global scope network drivers will publish towards other
	// nodes in order to reach the containers running on this node. Using this parameter it is possible to
	// separate the container data traffic from the management traffic of the cluster.
	//
	DataPathAddr string `json:"DataPathAddr,omitempty"`

	// Force creation of a new swarm.
	ForceNewCluster bool `json:"ForceNewCluster,omitempty"`

	// Listen address used for inter-manager communication, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is used.
	ListenAddr string `json:"ListenAddr,omitempty"`

	// spec
	Spec *SwarmSpec `json:"Spec,omitempty"`
}

SwarmInitParamsBody swarm init params body swagger:model swarmInitParamsBody

func (*SwarmInitParamsBody) MarshalBinary ¶

func (m *SwarmInitParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmInitParamsBody) UnmarshalBinary ¶

func (m *SwarmInitParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmInitParamsBody) Validate ¶

func (m *SwarmInitParamsBody) Validate(formats strfmt.Registry) error

Validate validates this swarm init params body

type SwarmJoinParamsBody ¶

type SwarmJoinParamsBody struct {

	// Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible.
	AdvertiseAddr string `json:"AdvertiseAddr,omitempty"`

	// Address or interface to use for data path traffic (format: `<ip|interface>`), for example,  `192.168.1.1`,
	// or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`
	// is used.
	//
	// The `DataPathAddr` specifies the address that global scope network drivers will publish towards other
	// nodes in order to reach the containers running on this node. Using this parameter it is possible to
	// separate the container data traffic from the management traffic of the cluster.
	//
	DataPathAddr string `json:"DataPathAddr,omitempty"`

	// Secret token for joining this swarm.
	JoinToken string `json:"JoinToken,omitempty"`

	// Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
	ListenAddr string `json:"ListenAddr,omitempty"`

	// Addresses of manager nodes already participating in the swarm.
	RemoteAddrs string `json:"RemoteAddrs,omitempty"`
}

SwarmJoinParamsBody swarm join params body swagger:model swarmJoinParamsBody

func (*SwarmJoinParamsBody) MarshalBinary ¶

func (m *SwarmJoinParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmJoinParamsBody) UnmarshalBinary ¶

func (m *SwarmJoinParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmJoinParamsBody) Validate ¶

func (m *SwarmJoinParamsBody) Validate(formats strfmt.Registry) error

Validate validates this swarm join params body

type SwarmSpec ¶

type SwarmSpec struct {

	// c a config
	CAConfig *SwarmSpecCAConfig `json:"CAConfig,omitempty"`

	// dispatcher
	Dispatcher *SwarmSpecDispatcher `json:"Dispatcher,omitempty"`

	// encryption config
	EncryptionConfig *SwarmSpecEncryptionConfig `json:"EncryptionConfig,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// Name of the swarm.
	Name string `json:"Name,omitempty"`

	// orchestration
	Orchestration *SwarmSpecOrchestration `json:"Orchestration,omitempty"`

	// raft
	Raft *SwarmSpecRaft `json:"Raft,omitempty"`

	// task defaults
	TaskDefaults *SwarmSpecTaskDefaults `json:"TaskDefaults,omitempty"`
}

SwarmSpec User modifiable swarm configuration. swagger:model SwarmSpec

func (*SwarmSpec) MarshalBinary ¶

func (m *SwarmSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpec) UnmarshalBinary ¶

func (m *SwarmSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpec) Validate ¶

func (m *SwarmSpec) Validate(formats strfmt.Registry) error

Validate validates this swarm spec

type SwarmSpecCAConfig ¶

type SwarmSpecCAConfig struct {

	// external c as
	ExternalCAs SwarmSpecCAConfigExternalCAs `json:"ExternalCAs"`

	// An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey`
	ForceRotate uint64 `json:"ForceRotate,omitempty"`

	// The duration node certificates are issued for.
	NodeCertExpiry int64 `json:"NodeCertExpiry,omitempty"`

	// The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format.
	SigningCACert string `json:"SigningCACert,omitempty"`

	// The desired signing CA key for all swarm node TLS leaf certificates, in PEM format.
	SigningCAKey string `json:"SigningCAKey,omitempty"`
}

SwarmSpecCAConfig CA configuration. swagger:model swarmSpecCAConfig

func (*SwarmSpecCAConfig) MarshalBinary ¶

func (m *SwarmSpecCAConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecCAConfig) UnmarshalBinary ¶

func (m *SwarmSpecCAConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecCAConfig) Validate ¶

func (m *SwarmSpecCAConfig) Validate(formats strfmt.Registry) error

Validate validates this swarm spec c a config

type SwarmSpecCAConfigExternalCAs ¶

type SwarmSpecCAConfigExternalCAs []*SwarmSpecCAConfigExternalCAsItems

SwarmSpecCAConfigExternalCAs Configuration for forwarding signing requests to an external certificate authority. swagger:model swarmSpecCAConfigExternalCAs

func (SwarmSpecCAConfigExternalCAs) Validate ¶

func (m SwarmSpecCAConfigExternalCAs) Validate(formats strfmt.Registry) error

Validate validates this swarm spec c a config external c as

type SwarmSpecCAConfigExternalCAsItems ¶

type SwarmSpecCAConfigExternalCAsItems struct {

	// The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided).
	CACert string `json:"CACert,omitempty"`

	// An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver.
	Options map[string]string `json:"Options,omitempty"`

	// Protocol for communication with the external CA (currently only `cfssl` is supported).
	Protocol *string `json:"Protocol,omitempty"`

	// URL where certificate signing requests should be sent.
	URL string `json:"URL,omitempty"`
}

SwarmSpecCAConfigExternalCAsItems swarm spec c a config external c as items swagger:model swarmSpecCAConfigExternalCAsItems

func (*SwarmSpecCAConfigExternalCAsItems) MarshalBinary ¶

func (m *SwarmSpecCAConfigExternalCAsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecCAConfigExternalCAsItems) UnmarshalBinary ¶

func (m *SwarmSpecCAConfigExternalCAsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecCAConfigExternalCAsItems) Validate ¶

Validate validates this swarm spec c a config external c as items

type SwarmSpecDispatcher ¶

type SwarmSpecDispatcher struct {

	// The delay for an agent to send a heartbeat to the dispatcher.
	HeartbeatPeriod int64 `json:"HeartbeatPeriod,omitempty"`
}

SwarmSpecDispatcher Dispatcher configuration. swagger:model swarmSpecDispatcher

func (*SwarmSpecDispatcher) MarshalBinary ¶

func (m *SwarmSpecDispatcher) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecDispatcher) UnmarshalBinary ¶

func (m *SwarmSpecDispatcher) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecDispatcher) Validate ¶

func (m *SwarmSpecDispatcher) Validate(formats strfmt.Registry) error

Validate validates this swarm spec dispatcher

type SwarmSpecEncryptionConfig ¶

type SwarmSpecEncryptionConfig struct {

	// If set, generate a key and use it to lock data stored on the managers.
	AutoLockManagers bool `json:"AutoLockManagers,omitempty"`
}

SwarmSpecEncryptionConfig Parameters related to encryption-at-rest. swagger:model swarmSpecEncryptionConfig

func (*SwarmSpecEncryptionConfig) MarshalBinary ¶

func (m *SwarmSpecEncryptionConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecEncryptionConfig) UnmarshalBinary ¶

func (m *SwarmSpecEncryptionConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecEncryptionConfig) Validate ¶

func (m *SwarmSpecEncryptionConfig) Validate(formats strfmt.Registry) error

Validate validates this swarm spec encryption config

type SwarmSpecOrchestration ¶

type SwarmSpecOrchestration struct {

	// The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks.
	TaskHistoryRetentionLimit int64 `json:"TaskHistoryRetentionLimit,omitempty"`
}

SwarmSpecOrchestration Orchestration configuration. swagger:model swarmSpecOrchestration

func (*SwarmSpecOrchestration) MarshalBinary ¶

func (m *SwarmSpecOrchestration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecOrchestration) UnmarshalBinary ¶

func (m *SwarmSpecOrchestration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecOrchestration) Validate ¶

func (m *SwarmSpecOrchestration) Validate(formats strfmt.Registry) error

Validate validates this swarm spec orchestration

type SwarmSpecRaft ¶

type SwarmSpecRaft struct {

	// The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. `ElectionTick` must be greater than `HeartbeatTick`.
	//
	// A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed.
	//
	ElectionTick int64 `json:"ElectionTick,omitempty"`

	// The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers.
	//
	// A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed.
	//
	HeartbeatTick int64 `json:"HeartbeatTick,omitempty"`

	// The number of snapshots to keep beyond the current snapshot.
	KeepOldSnapshots uint64 `json:"KeepOldSnapshots,omitempty"`

	// The number of log entries to keep around to sync up slow followers after a snapshot is created.
	LogEntriesForSlowFollowers uint64 `json:"LogEntriesForSlowFollowers,omitempty"`

	// The number of log entries between snapshots.
	SnapshotInterval uint64 `json:"SnapshotInterval,omitempty"`
}

SwarmSpecRaft Raft configuration. swagger:model swarmSpecRaft

func (*SwarmSpecRaft) MarshalBinary ¶

func (m *SwarmSpecRaft) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecRaft) UnmarshalBinary ¶

func (m *SwarmSpecRaft) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecRaft) Validate ¶

func (m *SwarmSpecRaft) Validate(formats strfmt.Registry) error

Validate validates this swarm spec raft

type SwarmSpecTaskDefaults ¶

type SwarmSpecTaskDefaults struct {

	// log driver
	LogDriver *SwarmSpecTaskDefaultsLogDriver `json:"LogDriver,omitempty"`
}

SwarmSpecTaskDefaults Defaults for creating tasks in this cluster. swagger:model swarmSpecTaskDefaults

func (*SwarmSpecTaskDefaults) MarshalBinary ¶

func (m *SwarmSpecTaskDefaults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecTaskDefaults) UnmarshalBinary ¶

func (m *SwarmSpecTaskDefaults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecTaskDefaults) Validate ¶

func (m *SwarmSpecTaskDefaults) Validate(formats strfmt.Registry) error

Validate validates this swarm spec task defaults

type SwarmSpecTaskDefaultsLogDriver ¶

type SwarmSpecTaskDefaultsLogDriver struct {

	// The log driver to use as a default for new tasks.
	//
	Name string `json:"Name,omitempty"`

	// Driver-specific options for the selectd log driver, specified
	// as key/value pairs.
	//
	Options map[string]string `json:"Options,omitempty"`
}

SwarmSpecTaskDefaultsLogDriver The log driver to use for tasks created in the orchestrator if unspecified by a service.

Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated.

swagger:model swarmSpecTaskDefaultsLogDriver

func (*SwarmSpecTaskDefaultsLogDriver) MarshalBinary ¶

func (m *SwarmSpecTaskDefaultsLogDriver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmSpecTaskDefaultsLogDriver) UnmarshalBinary ¶

func (m *SwarmSpecTaskDefaultsLogDriver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmSpecTaskDefaultsLogDriver) Validate ¶

func (m *SwarmSpecTaskDefaultsLogDriver) Validate(formats strfmt.Registry) error

Validate validates this swarm spec task defaults log driver

type SwarmUnlockParamsBody ¶

type SwarmUnlockParamsBody struct {

	// The swarm's unlock key.
	UnlockKey string `json:"UnlockKey,omitempty"`
}

SwarmUnlockParamsBody swarm unlock params body swagger:model swarmUnlockParamsBody

func (*SwarmUnlockParamsBody) MarshalBinary ¶

func (m *SwarmUnlockParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmUnlockParamsBody) UnmarshalBinary ¶

func (m *SwarmUnlockParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmUnlockParamsBody) Validate ¶

func (m *SwarmUnlockParamsBody) Validate(formats strfmt.Registry) error

Validate validates this swarm unlock params body

type SwarmUnlockkeyOKBody ¶

type SwarmUnlockkeyOKBody struct {

	// The swarm's unlock key.
	UnlockKey string `json:"UnlockKey,omitempty"`
}

SwarmUnlockkeyOKBody UnlockKeyResponse swagger:model swarmUnlockkeyOKBody

func (*SwarmUnlockkeyOKBody) MarshalBinary ¶

func (m *SwarmUnlockkeyOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SwarmUnlockkeyOKBody) UnmarshalBinary ¶

func (m *SwarmUnlockkeyOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SwarmUnlockkeyOKBody) Validate ¶

func (m *SwarmUnlockkeyOKBody) Validate(formats strfmt.Registry) error

Validate validates this swarm unlockkey o k body

type SystemAuthOKBody ¶

type SystemAuthOKBody struct {

	// An opaque token used to authenticate a user after a successful login
	IdentityToken string `json:"IdentityToken,omitempty"`

	// The status of the authentication
	// Required: true
	Status string `json:"Status"`
}

SystemAuthOKBody SystemAuthResponse swagger:model systemAuthOKBody

func (*SystemAuthOKBody) MarshalBinary ¶

func (m *SystemAuthOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemAuthOKBody) UnmarshalBinary ¶

func (m *SystemAuthOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemAuthOKBody) Validate ¶

func (m *SystemAuthOKBody) Validate(formats strfmt.Registry) error

Validate validates this system auth o k body

type SystemDataUsageOKBody ¶

type SystemDataUsageOKBody struct {

	// containers
	Containers SystemDataUsageOKBodyContainers `json:"Containers"`

	// images
	Images SystemDataUsageOKBodyImages `json:"Images"`

	// layers size
	LayersSize int64 `json:"LayersSize,omitempty"`

	// volumes
	Volumes SystemDataUsageOKBodyVolumes `json:"Volumes"`
}

SystemDataUsageOKBody SystemDataUsageResponse swagger:model systemDataUsageOKBody

func (*SystemDataUsageOKBody) MarshalBinary ¶

func (m *SystemDataUsageOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemDataUsageOKBody) UnmarshalBinary ¶

func (m *SystemDataUsageOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemDataUsageOKBody) Validate ¶

func (m *SystemDataUsageOKBody) Validate(formats strfmt.Registry) error

Validate validates this system data usage o k body

type SystemDataUsageOKBodyContainers ¶

type SystemDataUsageOKBodyContainers []ContainerSummary

SystemDataUsageOKBodyContainers system data usage o k body containers swagger:model systemDataUsageOKBodyContainers

func (SystemDataUsageOKBodyContainers) Validate ¶

Validate validates this system data usage o k body containers

type SystemDataUsageOKBodyImages ¶

type SystemDataUsageOKBodyImages []*ImageSummary

SystemDataUsageOKBodyImages system data usage o k body images swagger:model systemDataUsageOKBodyImages

func (SystemDataUsageOKBodyImages) Validate ¶

func (m SystemDataUsageOKBodyImages) Validate(formats strfmt.Registry) error

Validate validates this system data usage o k body images

type SystemDataUsageOKBodyVolumes ¶

type SystemDataUsageOKBodyVolumes []*Volume

SystemDataUsageOKBodyVolumes system data usage o k body volumes swagger:model systemDataUsageOKBodyVolumes

func (SystemDataUsageOKBodyVolumes) Validate ¶

func (m SystemDataUsageOKBodyVolumes) Validate(formats strfmt.Registry) error

Validate validates this system data usage o k body volumes

type SystemEventsOKBody ¶

type SystemEventsOKBody struct {

	// The type of event
	Action string `json:"Action,omitempty"`

	// actor
	Actor *SystemEventsOKBodyActor `json:"Actor,omitempty"`

	// The type of object emitting the event
	Type string `json:"Type,omitempty"`

	// Timestamp of event
	Time int64 `json:"time,omitempty"`

	// Timestamp of event, with nanosecond accuracy
	TimeNano int64 `json:"timeNano,omitempty"`
}

SystemEventsOKBody SystemEventsResponse swagger:model systemEventsOKBody

func (*SystemEventsOKBody) MarshalBinary ¶

func (m *SystemEventsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemEventsOKBody) UnmarshalBinary ¶

func (m *SystemEventsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemEventsOKBody) Validate ¶

func (m *SystemEventsOKBody) Validate(formats strfmt.Registry) error

Validate validates this system events o k body

type SystemEventsOKBodyActor ¶

type SystemEventsOKBodyActor struct {

	// Various key/value attributes of the object, depending on its type
	Attributes map[string]string `json:"Attributes,omitempty"`

	// The ID of the object emitting the event
	ID string `json:"ID,omitempty"`
}

SystemEventsOKBodyActor system events o k body actor swagger:model systemEventsOKBodyActor

func (*SystemEventsOKBodyActor) MarshalBinary ¶

func (m *SystemEventsOKBodyActor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemEventsOKBodyActor) UnmarshalBinary ¶

func (m *SystemEventsOKBodyActor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemEventsOKBodyActor) Validate ¶

func (m *SystemEventsOKBodyActor) Validate(formats strfmt.Registry) error

Validate validates this system events o k body actor

type SystemInfo ¶

type SystemInfo struct {

	// Hardware architecture of the host, as returned by the Go runtime
	// (`GOARCH`).
	//
	// A full list of possible values can be found in the [Go documentation](https://golang.org/doc/install/source#environment).
	//
	Architecture string `json:"Architecture,omitempty"`

	// Indicates if `bridge-nf-call-ip6tables` is available on the host.
	BridgeNfIp6tables bool `json:"BridgeNfIp6tables,omitempty"`

	// Indicates if `bridge-nf-call-iptables` is available on the host.
	BridgeNfIptables bool `json:"BridgeNfIptables,omitempty"`

	// Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.
	//
	// See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt)
	//
	CPUSet bool `json:"CPUSet,omitempty"`

	// Indicates if CPU Shares limiting is supported by the host.
	CPUShares bool `json:"CPUShares,omitempty"`

	// The driver to use for managing cgroups.
	//
	CgroupDriver *string `json:"CgroupDriver,omitempty"`

	// The network endpoint that the Engine advertises for the purpose of
	// node discovery. ClusterAdvertise is a `host:port` combination on which
	// the daemon is reachable by other hosts.
	//
	// <p><br /></p>
	//
	// > **Note**: This field is only propagated when using standalone Swarm
	// > mode, and overlay networking using an external k/v store. Overlay
	// > networks with Swarm mode enabled use the built-in raft store, and
	// > this field will be empty.
	//
	ClusterAdvertise string `json:"ClusterAdvertise,omitempty"`

	// URL of the distributed storage backend.
	//
	//
	// The storage backend is used for multihost networking (to store
	// network and endpoint information) and by the node discovery mechanism.
	//
	// <p><br /></p>
	//
	// > **Note**: This field is only propagated when using standalone Swarm
	// > mode, and overlay networking using an external k/v store. Overlay
	// > networks with Swarm mode enabled use the built-in raft store, and
	// > this field will be empty.
	//
	ClusterStore string `json:"ClusterStore,omitempty"`

	// containerd commit
	ContainerdCommit *Commit `json:"ContainerdCommit,omitempty"`

	// Total number of containers on the host.
	Containers int64 `json:"Containers,omitempty"`

	// Number of containers with status `"paused"`.
	//
	ContainersPaused int64 `json:"ContainersPaused,omitempty"`

	// Number of containers with status `"running"`.
	//
	ContainersRunning int64 `json:"ContainersRunning,omitempty"`

	// Number of containers with status `"stopped"`.
	//
	ContainersStopped int64 `json:"ContainersStopped,omitempty"`

	// Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host.
	CPUCfsPeriod bool `json:"CpuCfsPeriod,omitempty"`

	// Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host.
	CPUCfsQuota bool `json:"CpuCfsQuota,omitempty"`

	// Indicates if the daemon is running in debug-mode / with debug-level logging enabled.
	Debug bool `json:"Debug,omitempty"`

	// Name of the default OCI runtime that is used when starting containers.
	//
	// The default can be overridden per-container at create time.
	//
	DefaultRuntime *string `json:"DefaultRuntime,omitempty"`

	// Root directory of persistent Docker state.
	//
	// Defaults to `/var/lib/docker` on Linux, and `C:\ProgramData\docker`
	// on Windows.
	//
	DockerRootDir string `json:"DockerRootDir,omitempty"`

	// Name of the storage driver in use.
	Driver string `json:"Driver,omitempty"`

	// Information specific to the storage driver, provided as
	// "label" / "value" pairs.
	//
	// This information is provided by the storage driver, and formatted
	// in a way consistent with the output of `docker info` on the command
	// line.
	//
	// <p><br /></p>
	//
	// > **Note**: The information returned in this field, including the
	// > formatting of values and labels, should not be considered stable,
	// > and may change without notice.
	//
	DriverStatus [][]string `json:"DriverStatus"`

	// Indicates if experimental features are enabled on the daemon.
	//
	ExperimentalBuild bool `json:"ExperimentalBuild,omitempty"`

	// generic resources
	GenericResources GenericResources `json:"GenericResources"`

	// HTTP-proxy configured for the daemon. This value is obtained from the
	// [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
	//
	// Containers do not automatically inherit this configuration.
	//
	HTTPProxy string `json:"HttpProxy,omitempty"`

	// HTTPS-proxy configured for the daemon. This value is obtained from the
	// [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
	//
	// Containers do not automatically inherit this configuration.
	//
	HTTPSProxy string `json:"HttpsProxy,omitempty"`

	// Unique identifier of the daemon.
	//
	// <p><br /></p>
	//
	// > **Note**: The format of the ID itself is not part of the API, and
	// > should not be considered stable.
	//
	ID string `json:"ID,omitempty"`

	// Indicates IPv4 forwarding is enabled.
	IPV4Forwarding bool `json:"IPv4Forwarding,omitempty"`

	// Total number of images on the host.
	//
	// Both _tagged_ and _untagged_ (dangling) images are counted.
	//
	Images int64 `json:"Images,omitempty"`

	// Address / URL of the index server that is used for image search,
	// and as a default for user authentication for Docker Hub and Docker Cloud.
	//
	IndexServerAddress *string `json:"IndexServerAddress,omitempty"`

	// Name and, optional, path of the the `docker-init` binary.
	//
	// If the path is omitted, the daemon searches the host's `$PATH` for the
	// binary and uses the first result.
	//
	InitBinary string `json:"InitBinary,omitempty"`

	// init commit
	InitCommit *Commit `json:"InitCommit,omitempty"`

	// Represents the isolation technology to use as a default for containers.
	// The supported values are platform-specific.
	//
	// If no isolation value is specified on daemon start, on Windows client,
	// the default is `hyperv`, and on Windows server, the default is `process`.
	//
	// This option is currently not used on other platforms.
	//
	Isolation *string `json:"Isolation,omitempty"`

	// Indicates if the host has kernel memory limit support enabled.
	KernelMemory bool `json:"KernelMemory,omitempty"`

	// Kernel version of the host.
	//
	// On Linux, this information obtained from `uname`. On Windows this
	// information is queried from the <kbd>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\</kbd>
	// registry value, for example _"10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)"_.
	//
	KernelVersion string `json:"KernelVersion,omitempty"`

	// User-defined labels (key/value metadata) as set on the daemon.
	//
	// <p><br /></p>
	//
	// > **Note**: When part of a Swarm, nodes can both have _daemon_ labels,
	// > set through the daemon configuration, and _node_ labels, set from a
	// > manager node in the Swarm. Node labels are not included in this
	// > field. Node labels can be retrieved using the `/nodes/(id)` endpoint
	// > on a manager node in the Swarm.
	//
	Labels []string `json:"Labels"`

	// Indicates if live restore is enabled.
	//
	// If enabled, containers are kept running when the daemon is shutdown
	// or upon daemon start if running containers are detected.
	//
	LiveRestoreEnabled *bool `json:"LiveRestoreEnabled,omitempty"`

	// The logging driver to use as a default for new containers.
	//
	LoggingDriver string `json:"LoggingDriver,omitempty"`

	// Total amount of physical memory available on the host, in kilobytes (kB).
	//
	MemTotal int64 `json:"MemTotal,omitempty"`

	// Indicates if the host has memory limit support enabled.
	MemoryLimit bool `json:"MemoryLimit,omitempty"`

	// The number of logical CPUs usable by the daemon.
	//
	// The number of available CPUs is checked by querying the operating
	// system when the daemon starts. Changes to operating system CPU
	// allocation after the daemon is started are not reflected.
	//
	NCPU int64 `json:"NCPU,omitempty"`

	// Number of event listeners subscribed.
	NEventsListener int64 `json:"NEventsListener,omitempty"`

	// The total number of file Descriptors in use by the daemon process.
	//
	// This information is only returned if debug-mode is enabled.
	//
	NFd int64 `json:"NFd,omitempty"`

	// The  number of goroutines that currently exist.
	//
	// This information is only returned if debug-mode is enabled.
	//
	NGoroutines int64 `json:"NGoroutines,omitempty"`

	// Hostname of the host.
	Name string `json:"Name,omitempty"`

	// Comma-separated list of domain extensions for which no proxy should be
	// used. This value is obtained from the [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html)
	// environment variable.
	//
	// Containers do not automatically inherit this configuration.
	//
	NoProxy string `json:"NoProxy,omitempty"`

	// Generic type of the operating system of the host, as returned by the
	// Go runtime (`GOOS`).
	//
	// Currently returned values are "linux" and "windows". A full list of
	// possible values can be found in the [Go documentation](https://golang.org/doc/install/source#environment).
	//
	OSType string `json:"OSType,omitempty"`

	// Indicates if OOM killer disable is supported on the host.
	OomKillDisable bool `json:"OomKillDisable,omitempty"`

	// Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS"
	// or "Windows Server 2016 Datacenter"
	//
	OperatingSystem string `json:"OperatingSystem,omitempty"`

	// plugins
	Plugins *PluginsInfo `json:"Plugins,omitempty"`

	// registry config
	RegistryConfig *RegistryServiceConfig `json:"RegistryConfig,omitempty"`

	// runc commit
	RuncCommit *Commit `json:"RuncCommit,omitempty"`

	// runtimes
	Runtimes SystemInfoRuntimes `json:"Runtimes,omitempty"`

	// List of security features that are enabled on the daemon, such as
	// apparmor, seccomp, SELinux, and user-namespaces (userns).
	//
	// Additional configuration options for each security feature may
	// be present, and are included as a comma-separated list of key/value
	// pairs.
	//
	SecurityOptions []string `json:"SecurityOptions"`

	// Version string of the daemon.
	//
	// > **Note**: the [standalone Swarm API](https://docs.docker.com/swarm/swarm-api/)
	// > returns the Swarm version instead of the daemon  version, for example
	// > `swarm/1.2.8`.
	//
	ServerVersion string `json:"ServerVersion,omitempty"`

	// Indicates if the host has memory swap limit support enabled.
	SwapLimit bool `json:"SwapLimit,omitempty"`

	// swarm
	Swarm *SwarmInfo `json:"Swarm,omitempty"`

	// Status information about this node (standalone Swarm API).
	//
	// <p><br /></p>
	//
	// > **Note**: The information returned in this field is only propagated
	// > by the Swarm standalone API, and is empty (`null`) when using
	// > built-in swarm mode.
	//
	SystemStatus [][]string `json:"SystemStatus"`

	// Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt)
	// format with nano-seconds.
	//
	SystemTime string `json:"SystemTime,omitempty"`
}

SystemInfo system info swagger:model SystemInfo

func (*SystemInfo) MarshalBinary ¶

func (m *SystemInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemInfo) UnmarshalBinary ¶

func (m *SystemInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemInfo) Validate ¶

func (m *SystemInfo) Validate(formats strfmt.Registry) error

Validate validates this system info

type SystemInfoRuntimes ¶

type SystemInfoRuntimes map[string]Runtime

SystemInfoRuntimes List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes configured on the daemon. Keys hold the "name" used to reference the runtime.

The Docker daemon relies on an OCI compliant runtime (invoked via the `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux.

The default runtime is `runc`, and automatically configured. Additional runtimes can be configured by the user and will be listed here.

swagger:model systemInfoRuntimes

func (SystemInfoRuntimes) Validate ¶

func (m SystemInfoRuntimes) Validate(formats strfmt.Registry) error

Validate validates this system info runtimes

type SystemVersionOKBody ¶

type SystemVersionOKBody struct {

	// Api version
	APIVersion string `json:"ApiVersion,omitempty"`

	// arch
	Arch string `json:"Arch,omitempty"`

	// build time
	BuildTime string `json:"BuildTime,omitempty"`

	// components
	Components SystemVersionOKBodyComponents `json:"Components"`

	// experimental
	Experimental bool `json:"Experimental,omitempty"`

	// git commit
	GitCommit string `json:"GitCommit,omitempty"`

	// go version
	GoVersion string `json:"GoVersion,omitempty"`

	// kernel version
	KernelVersion string `json:"KernelVersion,omitempty"`

	// min API version
	MinAPIVersion string `json:"MinAPIVersion,omitempty"`

	// os
	Os string `json:"Os,omitempty"`

	// platform
	Platform *SystemVersionOKBodyPlatform `json:"Platform,omitempty"`

	// version
	Version string `json:"Version,omitempty"`
}

SystemVersionOKBody SystemVersionResponse swagger:model systemVersionOKBody

func (*SystemVersionOKBody) MarshalBinary ¶

func (m *SystemVersionOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemVersionOKBody) UnmarshalBinary ¶

func (m *SystemVersionOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemVersionOKBody) Validate ¶

func (m *SystemVersionOKBody) Validate(formats strfmt.Registry) error

Validate validates this system version o k body

type TLSInfo ¶

type TLSInfo struct {

	// The base64-url-safe-encoded raw public key bytes of the issuer
	CertIssuerPublicKey string `json:"CertIssuerPublicKey,omitempty"`

	// The base64-url-safe-encoded raw subject bytes of the issuer
	CertIssuerSubject string `json:"CertIssuerSubject,omitempty"`

	// The root CA certificate(s) that are used to validate leaf TLS certificates
	TrustRoot string `json:"TrustRoot,omitempty"`
}

TLSInfo Information about the issuer of leaf TLS certificates and the trusted root CA certificate swagger:model TLSInfo

func (*TLSInfo) MarshalBinary ¶

func (m *TLSInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TLSInfo) UnmarshalBinary ¶

func (m *TLSInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TLSInfo) Validate ¶

func (m *TLSInfo) Validate(formats strfmt.Registry) error

Validate validates this TLS info

type Task ¶

type Task struct {

	// assigned generic resources
	AssignedGenericResources GenericResources `json:"AssignedGenericResources"`

	// created at
	CreatedAt string `json:"CreatedAt,omitempty"`

	// desired state
	DesiredState TaskState `json:"DesiredState,omitempty"`

	// The ID of the task.
	ID string `json:"ID,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// Name of the task.
	Name string `json:"Name,omitempty"`

	// The ID of the node that this task is on.
	NodeID string `json:"NodeID,omitempty"`

	// The ID of the service this task is part of.
	ServiceID string `json:"ServiceID,omitempty"`

	// slot
	Slot int64 `json:"Slot,omitempty"`

	// spec
	Spec *TaskSpec `json:"Spec,omitempty"`

	// status
	Status *TaskStatus `json:"Status,omitempty"`

	// updated at
	UpdatedAt string `json:"UpdatedAt,omitempty"`

	// version
	Version *ObjectVersion `json:"Version,omitempty"`
}

Task task swagger:model Task

func (*Task) MarshalBinary ¶

func (m *Task) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Task) UnmarshalBinary ¶

func (m *Task) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Task) Validate ¶

func (m *Task) Validate(formats strfmt.Registry) error

Validate validates this task

type TaskListOKBody ¶

type TaskListOKBody []*Task

TaskListOKBody task list o k body swagger:model taskListOKBody

func (TaskListOKBody) Validate ¶

func (m TaskListOKBody) Validate(formats strfmt.Registry) error

Validate validates this task list o k body

type TaskSpec ¶

type TaskSpec struct {

	// container spec
	ContainerSpec *TaskSpecContainerSpec `json:"ContainerSpec,omitempty"`

	// A counter that triggers an update even if no relevant parameters have been changed.
	ForceUpdate int64 `json:"ForceUpdate,omitempty"`

	// log driver
	LogDriver *TaskSpecLogDriver `json:"LogDriver,omitempty"`

	// networks
	Networks TaskSpecNetworks `json:"Networks"`

	// placement
	Placement *TaskSpecPlacement `json:"Placement,omitempty"`

	// plugin spec
	PluginSpec *TaskSpecPluginSpec `json:"PluginSpec,omitempty"`

	// resources
	Resources *TaskSpecResources `json:"Resources,omitempty"`

	// restart policy
	RestartPolicy *TaskSpecRestartPolicy `json:"RestartPolicy,omitempty"`

	// Runtime is the type of runtime specified for the task executor.
	Runtime string `json:"Runtime,omitempty"`
}

TaskSpec User modifiable task configuration. swagger:model TaskSpec

func (*TaskSpec) MarshalBinary ¶

func (m *TaskSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpec) UnmarshalBinary ¶

func (m *TaskSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpec) Validate ¶

func (m *TaskSpec) Validate(formats strfmt.Registry) error

Validate validates this task spec

type TaskSpecContainerSpec ¶

type TaskSpecContainerSpec struct {

	// Arguments to the command.
	Args []string `json:"Args"`

	// The command to be run in the image.
	Command []string `json:"Command"`

	// configs
	Configs TaskSpecContainerSpecConfigs `json:"Configs"`

	// DNS config
	DNSConfig *TaskSpecContainerSpecDNSConfig `json:"DNSConfig,omitempty"`

	// The working directory for commands to run in.
	Dir string `json:"Dir,omitempty"`

	// A list of environment variables in the form `VAR=value`.
	Env []string `json:"Env"`

	// A list of additional groups that the container process will run as.
	Groups []string `json:"Groups"`

	// health check
	HealthCheck *HealthConfig `json:"HealthCheck,omitempty"`

	// The hostname to use for the container, as a valid RFC 1123 hostname.
	Hostname string `json:"Hostname,omitempty"`

	// A list of hostname/IP mappings to add to the container's `hosts`
	// file. The format of extra hosts is specified in the
	// [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html)
	// man page:
	//
	//     IP_address canonical_hostname [aliases...]
	//
	Hosts []string `json:"Hosts"`

	// The image name to use for the container
	Image string `json:"Image,omitempty"`

	// Isolation technology of the containers running the service. (Windows only)
	Isolation string `json:"Isolation,omitempty"`

	// User-defined key/value data.
	Labels map[string]string `json:"Labels,omitempty"`

	// mounts
	Mounts TaskSpecContainerSpecMounts `json:"Mounts"`

	// Open `stdin`
	OpenStdin bool `json:"OpenStdin,omitempty"`

	// privileges
	Privileges *TaskSpecContainerSpecPrivileges `json:"Privileges,omitempty"`

	// Mount the container's root filesystem as read only.
	ReadOnly bool `json:"ReadOnly,omitempty"`

	// secrets
	Secrets TaskSpecContainerSpecSecrets `json:"Secrets"`

	// Amount of time to wait for the container to terminate before forcefully killing it.
	StopGracePeriod int64 `json:"StopGracePeriod,omitempty"`

	// Signal to stop the container.
	StopSignal string `json:"StopSignal,omitempty"`

	// Whether a pseudo-TTY should be allocated.
	TTY bool `json:"TTY,omitempty"`

	// The user inside the container.
	User string `json:"User,omitempty"`
}

TaskSpecContainerSpec Invalid when specified with `PluginSpec`. swagger:model taskSpecContainerSpec

func (*TaskSpecContainerSpec) MarshalBinary ¶

func (m *TaskSpecContainerSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpec) UnmarshalBinary ¶

func (m *TaskSpecContainerSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpec) Validate ¶

func (m *TaskSpecContainerSpec) Validate(formats strfmt.Registry) error

Validate validates this task spec container spec

type TaskSpecContainerSpecConfigs ¶

type TaskSpecContainerSpecConfigs []*TaskSpecContainerSpecConfigsItems

TaskSpecContainerSpecConfigs Configs contains references to zero or more configs that will be exposed to the service. swagger:model taskSpecContainerSpecConfigs

func (TaskSpecContainerSpecConfigs) Validate ¶

func (m TaskSpecContainerSpecConfigs) Validate(formats strfmt.Registry) error

Validate validates this task spec container spec configs

type TaskSpecContainerSpecConfigsItems ¶

type TaskSpecContainerSpecConfigsItems struct {

	// ConfigID represents the ID of the specific config that we're referencing.
	ConfigID string `json:"ConfigID,omitempty"`

	// ConfigName is the name of the config that this references, but this is just provided for
	// lookup/display purposes. The config in the reference will be identified by its ID.
	//
	ConfigName string `json:"ConfigName,omitempty"`

	// file
	File *TaskSpecContainerSpecConfigsItemsFile `json:"File,omitempty"`
}

TaskSpecContainerSpecConfigsItems task spec container spec configs items swagger:model taskSpecContainerSpecConfigsItems

func (*TaskSpecContainerSpecConfigsItems) MarshalBinary ¶

func (m *TaskSpecContainerSpecConfigsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecConfigsItems) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecConfigsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecConfigsItems) Validate ¶

Validate validates this task spec container spec configs items

type TaskSpecContainerSpecConfigsItemsFile ¶

type TaskSpecContainerSpecConfigsItemsFile struct {

	// GID represents the file GID.
	GID string `json:"GID,omitempty"`

	// Mode represents the FileMode of the file.
	Mode uint32 `json:"Mode,omitempty"`

	// Name represents the final filename in the filesystem.
	Name string `json:"Name,omitempty"`

	// UID represents the file UID.
	UID string `json:"UID,omitempty"`
}

TaskSpecContainerSpecConfigsItemsFile File represents a specific target that is backed by a file. swagger:model taskSpecContainerSpecConfigsItemsFile

func (*TaskSpecContainerSpecConfigsItemsFile) MarshalBinary ¶

func (m *TaskSpecContainerSpecConfigsItemsFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecConfigsItemsFile) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecConfigsItemsFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecConfigsItemsFile) Validate ¶

Validate validates this task spec container spec configs items file

type TaskSpecContainerSpecDNSConfig ¶

type TaskSpecContainerSpecDNSConfig struct {

	// The IP addresses of the name servers.
	Nameservers []string `json:"Nameservers"`

	// A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.).
	Options []string `json:"Options"`

	// A search list for host-name lookup.
	Search []string `json:"Search"`
}

TaskSpecContainerSpecDNSConfig Specification for DNS related configurations in resolver configuration file (`resolv.conf`). swagger:model taskSpecContainerSpecDnsConfig

func (*TaskSpecContainerSpecDNSConfig) MarshalBinary ¶

func (m *TaskSpecContainerSpecDNSConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecDNSConfig) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecDNSConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecDNSConfig) Validate ¶

func (m *TaskSpecContainerSpecDNSConfig) Validate(formats strfmt.Registry) error

Validate validates this task spec container spec Dns config

type TaskSpecContainerSpecMounts ¶

type TaskSpecContainerSpecMounts []*Mount

TaskSpecContainerSpecMounts Specification for mounts to be added to containers created as part of the service. swagger:model taskSpecContainerSpecMounts

func (TaskSpecContainerSpecMounts) Validate ¶

func (m TaskSpecContainerSpecMounts) Validate(formats strfmt.Registry) error

Validate validates this task spec container spec mounts

type TaskSpecContainerSpecPrivileges ¶

type TaskSpecContainerSpecPrivileges struct {

	// credential spec
	CredentialSpec *TaskSpecContainerSpecPrivilegesCredentialSpec `json:"CredentialSpec,omitempty"`

	// s e linux context
	SELinuxContext *TaskSpecContainerSpecPrivilegesSELinuxContext `json:"SELinuxContext,omitempty"`
}

TaskSpecContainerSpecPrivileges Security options for the container swagger:model taskSpecContainerSpecPrivileges

func (*TaskSpecContainerSpecPrivileges) MarshalBinary ¶

func (m *TaskSpecContainerSpecPrivileges) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivileges) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecPrivileges) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivileges) Validate ¶

Validate validates this task spec container spec privileges

type TaskSpecContainerSpecPrivilegesCredentialSpec ¶

type TaskSpecContainerSpecPrivilegesCredentialSpec struct {

	// Load credential spec from this file. The file is read by the daemon, and must be present in the
	// `CredentialSpecs` subdirectory in the docker data directory, which defaults to
	// `C:\ProgramData\Docker\` on Windows.
	//
	// For example, specifying `spec.json` loads `C:\ProgramData\Docker\CredentialSpecs\spec.json`.
	//
	// <p><br /></p>
	//
	// > **Note**: `CredentialSpec.File` and `CredentialSpec.Registry` are mutually exclusive.
	//
	File string `json:"File,omitempty"`

	// Load credential spec from this value in the Windows registry. The specified registry value must be
	// located in:
	//
	// `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers\CredentialSpecs`
	//
	// <p><br /></p>
	//
	//
	// > **Note**: `CredentialSpec.File` and `CredentialSpec.Registry` are mutually exclusive.
	//
	Registry string `json:"Registry,omitempty"`
}

TaskSpecContainerSpecPrivilegesCredentialSpec CredentialSpec for managed service account (Windows only) swagger:model taskSpecContainerSpecPrivilegesCredentialSpec

func (*TaskSpecContainerSpecPrivilegesCredentialSpec) MarshalBinary ¶

MarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivilegesCredentialSpec) UnmarshalBinary ¶

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivilegesCredentialSpec) Validate ¶

Validate validates this task spec container spec privileges credential spec

type TaskSpecContainerSpecPrivilegesSELinuxContext ¶

type TaskSpecContainerSpecPrivilegesSELinuxContext struct {

	// Disable SELinux
	Disable bool `json:"Disable,omitempty"`

	// SELinux level label
	Level string `json:"Level,omitempty"`

	// SELinux role label
	Role string `json:"Role,omitempty"`

	// SELinux type label
	Type string `json:"Type,omitempty"`

	// SELinux user label
	User string `json:"User,omitempty"`
}

TaskSpecContainerSpecPrivilegesSELinuxContext SELinux labels of the container swagger:model taskSpecContainerSpecPrivilegesSELinuxContext

func (*TaskSpecContainerSpecPrivilegesSELinuxContext) MarshalBinary ¶

MarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivilegesSELinuxContext) UnmarshalBinary ¶

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecPrivilegesSELinuxContext) Validate ¶

Validate validates this task spec container spec privileges s e linux context

type TaskSpecContainerSpecSecrets ¶

type TaskSpecContainerSpecSecrets []*TaskSpecContainerSpecSecretsItems

TaskSpecContainerSpecSecrets Secrets contains references to zero or more secrets that will be exposed to the service. swagger:model taskSpecContainerSpecSecrets

func (TaskSpecContainerSpecSecrets) Validate ¶

func (m TaskSpecContainerSpecSecrets) Validate(formats strfmt.Registry) error

Validate validates this task spec container spec secrets

type TaskSpecContainerSpecSecretsItems ¶

type TaskSpecContainerSpecSecretsItems struct {

	// file
	File *TaskSpecContainerSpecSecretsItemsFile `json:"File,omitempty"`

	// SecretID represents the ID of the specific secret that we're referencing.
	SecretID string `json:"SecretID,omitempty"`

	// SecretName is the name of the secret that this references, but this is just provided for
	// lookup/display purposes. The secret in the reference will be identified by its ID.
	//
	SecretName string `json:"SecretName,omitempty"`
}

TaskSpecContainerSpecSecretsItems task spec container spec secrets items swagger:model taskSpecContainerSpecSecretsItems

func (*TaskSpecContainerSpecSecretsItems) MarshalBinary ¶

func (m *TaskSpecContainerSpecSecretsItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecSecretsItems) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecSecretsItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecSecretsItems) Validate ¶

Validate validates this task spec container spec secrets items

type TaskSpecContainerSpecSecretsItemsFile ¶

type TaskSpecContainerSpecSecretsItemsFile struct {

	// GID represents the file GID.
	GID string `json:"GID,omitempty"`

	// Mode represents the FileMode of the file.
	Mode uint32 `json:"Mode,omitempty"`

	// Name represents the final filename in the filesystem.
	Name string `json:"Name,omitempty"`

	// UID represents the file UID.
	UID string `json:"UID,omitempty"`
}

TaskSpecContainerSpecSecretsItemsFile File represents a specific target that is backed by a file. swagger:model taskSpecContainerSpecSecretsItemsFile

func (*TaskSpecContainerSpecSecretsItemsFile) MarshalBinary ¶

func (m *TaskSpecContainerSpecSecretsItemsFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecContainerSpecSecretsItemsFile) UnmarshalBinary ¶

func (m *TaskSpecContainerSpecSecretsItemsFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecContainerSpecSecretsItemsFile) Validate ¶

Validate validates this task spec container spec secrets items file

type TaskSpecLogDriver ¶

type TaskSpecLogDriver struct {

	// name
	Name string `json:"Name,omitempty"`

	// options
	Options map[string]string `json:"Options,omitempty"`
}

TaskSpecLogDriver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified. swagger:model taskSpecLogDriver

func (*TaskSpecLogDriver) MarshalBinary ¶

func (m *TaskSpecLogDriver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecLogDriver) UnmarshalBinary ¶

func (m *TaskSpecLogDriver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecLogDriver) Validate ¶

func (m *TaskSpecLogDriver) Validate(formats strfmt.Registry) error

Validate validates this task spec log driver

type TaskSpecNetworks ¶

type TaskSpecNetworks []*TaskSpecNetworksItems

TaskSpecNetworks task spec networks swagger:model taskSpecNetworks

func (TaskSpecNetworks) Validate ¶

func (m TaskSpecNetworks) Validate(formats strfmt.Registry) error

Validate validates this task spec networks

type TaskSpecNetworksItems ¶

type TaskSpecNetworksItems struct {

	// aliases
	Aliases []string `json:"Aliases"`

	// target
	Target string `json:"Target,omitempty"`
}

TaskSpecNetworksItems task spec networks items swagger:model taskSpecNetworksItems

func (*TaskSpecNetworksItems) MarshalBinary ¶

func (m *TaskSpecNetworksItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecNetworksItems) UnmarshalBinary ¶

func (m *TaskSpecNetworksItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecNetworksItems) Validate ¶

func (m *TaskSpecNetworksItems) Validate(formats strfmt.Registry) error

Validate validates this task spec networks items

type TaskSpecPlacement ¶

type TaskSpecPlacement struct {

	// An array of constraints.
	Constraints []string `json:"Constraints"`

	// platforms
	Platforms TaskSpecPlacementPlatforms `json:"Platforms"`

	// preferences
	Preferences TaskSpecPlacementPreferences `json:"Preferences"`
}

TaskSpecPlacement task spec placement swagger:model taskSpecPlacement

func (*TaskSpecPlacement) MarshalBinary ¶

func (m *TaskSpecPlacement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecPlacement) UnmarshalBinary ¶

func (m *TaskSpecPlacement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecPlacement) Validate ¶

func (m *TaskSpecPlacement) Validate(formats strfmt.Registry) error

Validate validates this task spec placement

type TaskSpecPlacementPlatforms ¶

type TaskSpecPlacementPlatforms []*Platform

TaskSpecPlacementPlatforms Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions.

swagger:model taskSpecPlacementPlatforms

func (TaskSpecPlacementPlatforms) Validate ¶

func (m TaskSpecPlacementPlatforms) Validate(formats strfmt.Registry) error

Validate validates this task spec placement platforms

type TaskSpecPlacementPreferences ¶

type TaskSpecPlacementPreferences []*TaskSpecPlacementPreferencesItems

TaskSpecPlacementPreferences Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence. swagger:model taskSpecPlacementPreferences

func (TaskSpecPlacementPreferences) Validate ¶

func (m TaskSpecPlacementPreferences) Validate(formats strfmt.Registry) error

Validate validates this task spec placement preferences

type TaskSpecPlacementPreferencesItems ¶

type TaskSpecPlacementPreferencesItems struct {

	// spread
	Spread *TaskSpecPlacementPreferencesItemsSpread `json:"Spread,omitempty"`
}

TaskSpecPlacementPreferencesItems task spec placement preferences items swagger:model taskSpecPlacementPreferencesItems

func (*TaskSpecPlacementPreferencesItems) MarshalBinary ¶

func (m *TaskSpecPlacementPreferencesItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecPlacementPreferencesItems) UnmarshalBinary ¶

func (m *TaskSpecPlacementPreferencesItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecPlacementPreferencesItems) Validate ¶

Validate validates this task spec placement preferences items

type TaskSpecPlacementPreferencesItemsSpread ¶

type TaskSpecPlacementPreferencesItemsSpread struct {

	// label descriptor, such as engine.labels.az
	SpreadDescriptor string `json:"SpreadDescriptor,omitempty"`
}

TaskSpecPlacementPreferencesItemsSpread task spec placement preferences items spread swagger:model taskSpecPlacementPreferencesItemsSpread

func (*TaskSpecPlacementPreferencesItemsSpread) MarshalBinary ¶

func (m *TaskSpecPlacementPreferencesItemsSpread) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecPlacementPreferencesItemsSpread) UnmarshalBinary ¶

func (m *TaskSpecPlacementPreferencesItemsSpread) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecPlacementPreferencesItemsSpread) Validate ¶

Validate validates this task spec placement preferences items spread

type TaskSpecPluginSpec ¶

type TaskSpecPluginSpec struct {

	// Disable the plugin once scheduled.
	Disabled bool `json:"Disabled,omitempty"`

	// The name or 'alias' to use for the plugin.
	Name string `json:"Name,omitempty"`

	// plugin privilege
	PluginPrivilege TaskSpecPluginSpecPluginPrivilege `json:"PluginPrivilege"`

	// The plugin image reference to use.
	Remote string `json:"Remote,omitempty"`
}

TaskSpecPluginSpec Invalid when specified with `ContainerSpec`. *(Experimental release only.)* swagger:model taskSpecPluginSpec

func (*TaskSpecPluginSpec) MarshalBinary ¶

func (m *TaskSpecPluginSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecPluginSpec) UnmarshalBinary ¶

func (m *TaskSpecPluginSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecPluginSpec) Validate ¶

func (m *TaskSpecPluginSpec) Validate(formats strfmt.Registry) error

Validate validates this task spec plugin spec

type TaskSpecPluginSpecPluginPrivilege ¶

type TaskSpecPluginSpecPluginPrivilege []*TaskSpecPluginSpecPluginPrivilegeItems

TaskSpecPluginSpecPluginPrivilege task spec plugin spec plugin privilege swagger:model taskSpecPluginSpecPluginPrivilege

func (TaskSpecPluginSpecPluginPrivilege) Validate ¶

Validate validates this task spec plugin spec plugin privilege

type TaskSpecPluginSpecPluginPrivilegeItems ¶

type TaskSpecPluginSpecPluginPrivilegeItems struct {

	// description
	Description string `json:"Description,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// value
	Value []string `json:"Value"`
}

TaskSpecPluginSpecPluginPrivilegeItems Describes a permission accepted by the user upon installing the plugin. swagger:model taskSpecPluginSpecPluginPrivilegeItems

func (*TaskSpecPluginSpecPluginPrivilegeItems) MarshalBinary ¶

func (m *TaskSpecPluginSpecPluginPrivilegeItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecPluginSpecPluginPrivilegeItems) UnmarshalBinary ¶

func (m *TaskSpecPluginSpecPluginPrivilegeItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecPluginSpecPluginPrivilegeItems) Validate ¶

Validate validates this task spec plugin spec plugin privilege items

type TaskSpecResources ¶

type TaskSpecResources struct {

	// Define resources limits.
	Limits *ResourceObject `json:"Limits,omitempty"`

	// Define resources reservation.
	Reservation *ResourceObject `json:"Reservation,omitempty"`
}

TaskSpecResources Resource requirements which apply to each individual container created as part of the service. swagger:model taskSpecResources

func (*TaskSpecResources) MarshalBinary ¶

func (m *TaskSpecResources) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecResources) UnmarshalBinary ¶

func (m *TaskSpecResources) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecResources) Validate ¶

func (m *TaskSpecResources) Validate(formats strfmt.Registry) error

Validate validates this task spec resources

type TaskSpecRestartPolicy ¶

type TaskSpecRestartPolicy struct {

	// Condition for restart.
	Condition string `json:"Condition,omitempty"`

	// Delay between restart attempts.
	Delay int64 `json:"Delay,omitempty"`

	// Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).
	MaxAttempts int64 `json:"MaxAttempts,omitempty"`

	// Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).
	Window int64 `json:"Window,omitempty"`
}

TaskSpecRestartPolicy Specification for the restart policy which applies to containers created as part of this service. swagger:model taskSpecRestartPolicy

func (*TaskSpecRestartPolicy) MarshalBinary ¶

func (m *TaskSpecRestartPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskSpecRestartPolicy) UnmarshalBinary ¶

func (m *TaskSpecRestartPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskSpecRestartPolicy) Validate ¶

func (m *TaskSpecRestartPolicy) Validate(formats strfmt.Registry) error

Validate validates this task spec restart policy

type TaskState ¶

type TaskState string

TaskState task state swagger:model TaskState

const (

	// TaskStateNew captures enum value "new"
	TaskStateNew TaskState = "new"

	// TaskStateAllocated captures enum value "allocated"
	TaskStateAllocated TaskState = "allocated"

	// TaskStatePending captures enum value "pending"
	TaskStatePending TaskState = "pending"

	// TaskStateAssigned captures enum value "assigned"
	TaskStateAssigned TaskState = "assigned"

	// TaskStateAccepted captures enum value "accepted"
	TaskStateAccepted TaskState = "accepted"

	// TaskStatePreparing captures enum value "preparing"
	TaskStatePreparing TaskState = "preparing"

	// TaskStateReady captures enum value "ready"
	TaskStateReady TaskState = "ready"

	// TaskStateStarting captures enum value "starting"
	TaskStateStarting TaskState = "starting"

	// TaskStateRunning captures enum value "running"
	TaskStateRunning TaskState = "running"

	// TaskStateComplete captures enum value "complete"
	TaskStateComplete TaskState = "complete"

	// TaskStateShutdown captures enum value "shutdown"
	TaskStateShutdown TaskState = "shutdown"

	// TaskStateFailed captures enum value "failed"
	TaskStateFailed TaskState = "failed"

	// TaskStateRejected captures enum value "rejected"
	TaskStateRejected TaskState = "rejected"
)

func (TaskState) Validate ¶

func (m TaskState) Validate(formats strfmt.Registry) error

Validate validates this task state

type TaskStatus ¶

type TaskStatus struct {

	// container status
	ContainerStatus *TaskStatusContainerStatus `json:"ContainerStatus,omitempty"`

	// err
	Err string `json:"Err,omitempty"`

	// message
	Message string `json:"Message,omitempty"`

	// state
	State TaskState `json:"State,omitempty"`

	// timestamp
	Timestamp string `json:"Timestamp,omitempty"`
}

TaskStatus task status swagger:model taskStatus

func (*TaskStatus) MarshalBinary ¶

func (m *TaskStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskStatus) UnmarshalBinary ¶

func (m *TaskStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskStatus) Validate ¶

func (m *TaskStatus) Validate(formats strfmt.Registry) error

Validate validates this task status

type TaskStatusContainerStatus ¶

type TaskStatusContainerStatus struct {

	// container ID
	ContainerID string `json:"ContainerID,omitempty"`

	// exit code
	ExitCode int64 `json:"ExitCode,omitempty"`

	// p ID
	PID int64 `json:"PID,omitempty"`
}

TaskStatusContainerStatus task status container status swagger:model taskStatusContainerStatus

func (*TaskStatusContainerStatus) MarshalBinary ¶

func (m *TaskStatusContainerStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskStatusContainerStatus) UnmarshalBinary ¶

func (m *TaskStatusContainerStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskStatusContainerStatus) Validate ¶

func (m *TaskStatusContainerStatus) Validate(formats strfmt.Registry) error

Validate validates this task status container status

type ThrottleDevice ¶

type ThrottleDevice struct {

	// Device path
	Path string `json:"Path,omitempty"`

	// Rate
	// Minimum: 0
	Rate *int64 `json:"Rate,omitempty"`
}

ThrottleDevice throttle device swagger:model ThrottleDevice

func (*ThrottleDevice) MarshalBinary ¶

func (m *ThrottleDevice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThrottleDevice) UnmarshalBinary ¶

func (m *ThrottleDevice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThrottleDevice) Validate ¶

func (m *ThrottleDevice) Validate(formats strfmt.Registry) error

Validate validates this throttle device

type Volume ¶

type Volume struct {

	// Date/Time the volume was created.
	CreatedAt string `json:"CreatedAt,omitempty"`

	// Name of the volume driver used by the volume.
	// Required: true
	Driver string `json:"Driver"`

	// User-defined key/value metadata.
	// Required: true
	Labels map[string]string `json:"Labels"`

	// Mount path of the volume on the host.
	// Required: true
	Mountpoint string `json:"Mountpoint"`

	// Name of the volume.
	// Required: true
	Name string `json:"Name"`

	// The driver specific options used when creating the volume.
	// Required: true
	Options map[string]string `json:"Options"`

	// The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
	// Required: true
	Scope string `json:"Scope"`

	// Low-level details about the volume, provided by the volume driver.
	// Details are returned as a map with key/value pairs:
	// `{"key":"value","key2":"value2"}`.
	//
	// The `Status` field is optional, and is omitted if the volume driver
	// does not support this feature.
	//
	Status map[string]interface{} `json:"Status,omitempty"`

	// usage data
	UsageData *VolumeUsageData `json:"UsageData,omitempty"`
}

Volume volume swagger:model Volume

func (*Volume) MarshalBinary ¶

func (m *Volume) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Volume) UnmarshalBinary ¶

func (m *Volume) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Volume) Validate ¶

func (m *Volume) Validate(formats strfmt.Registry) error

Validate validates this volume

type VolumeCreateParamsBody ¶

type VolumeCreateParamsBody struct {

	// Name of the volume driver to use.
	Driver string `json:"Driver,omitempty"`

	// A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
	DriverOpts map[string]string `json:"DriverOpts,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// The new volume's name. If not specified, Docker generates a name.
	Name string `json:"Name,omitempty"`
}

VolumeCreateParamsBody volume create params body swagger:model volumeCreateParamsBody

func (*VolumeCreateParamsBody) MarshalBinary ¶

func (m *VolumeCreateParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VolumeCreateParamsBody) UnmarshalBinary ¶

func (m *VolumeCreateParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VolumeCreateParamsBody) Validate ¶

func (m *VolumeCreateParamsBody) Validate(formats strfmt.Registry) error

Validate validates this volume create params body

type VolumeListOKBody ¶

type VolumeListOKBody struct {

	// volumes
	// Required: true
	Volumes VolumeListOKBodyVolumes `json:"Volumes"`

	// Warnings that occurred when fetching the list of volumes
	// Required: true
	Warnings []string `json:"Warnings"`
}

VolumeListOKBody VolumeListResponse swagger:model volumeListOKBody

func (*VolumeListOKBody) MarshalBinary ¶

func (m *VolumeListOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VolumeListOKBody) UnmarshalBinary ¶

func (m *VolumeListOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VolumeListOKBody) Validate ¶

func (m *VolumeListOKBody) Validate(formats strfmt.Registry) error

Validate validates this volume list o k body

type VolumeListOKBodyVolumes ¶

type VolumeListOKBodyVolumes []*Volume

VolumeListOKBodyVolumes List of volumes swagger:model volumeListOKBodyVolumes

func (VolumeListOKBodyVolumes) Validate ¶

func (m VolumeListOKBodyVolumes) Validate(formats strfmt.Registry) error

Validate validates this volume list o k body volumes

type VolumePruneOKBody ¶

type VolumePruneOKBody struct {

	// Disk space reclaimed in bytes
	SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"`

	// Volumes that were deleted
	VolumesDeleted []string `json:"VolumesDeleted"`
}

VolumePruneOKBody VolumePruneResponse swagger:model volumePruneOKBody

func (*VolumePruneOKBody) MarshalBinary ¶

func (m *VolumePruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VolumePruneOKBody) UnmarshalBinary ¶

func (m *VolumePruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VolumePruneOKBody) Validate ¶

func (m *VolumePruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this volume prune o k body

type VolumeUsageData ¶

type VolumeUsageData struct {

	// The number of containers referencing this volume. This field
	// is set to `-1` if the reference-count is not available.
	//
	// Required: true
	RefCount int64 `json:"RefCount"`

	// Amount of disk space used by the volume (in bytes). This information
	// is only available for volumes created with the `"local"` volume
	// driver. For volumes created with other volume drivers, this field
	// is set to `-1` ("not available")
	//
	// Required: true
	Size int64 `json:"Size"`
}

VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.

swagger:model volumeUsageData

func (*VolumeUsageData) MarshalBinary ¶

func (m *VolumeUsageData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VolumeUsageData) UnmarshalBinary ¶

func (m *VolumeUsageData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VolumeUsageData) Validate ¶

func (m *VolumeUsageData) Validate(formats strfmt.Registry) error

Validate validates this volume usage data

Source Files ¶

Jump to

Keyboard shortcuts

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