types

package
v0.0.0-...-8680cc4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 240

Documentation

Index

Constants

View Source
const (

	// ContainerConfigRichModeDumbInit captures enum value "dumb-init"
	ContainerConfigRichModeDumbInit string = "dumb-init"

	// ContainerConfigRichModeSbinInit captures enum value "sbin-init"
	ContainerConfigRichModeSbinInit string = "sbin-init"

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

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

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

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

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

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

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

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

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

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

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

	// SystemInfoCgroupDriverSystemd captures enum value "systemd"
	SystemInfoCgroupDriverSystemd string = "systemd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {

	// auth
	Auth string `json:"Auth,omitempty"`

	// IdentityToken is used to authenticate the user and get an access token for the registry
	IdentityToken string `json:"IdentityToken,omitempty"`

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

	// RegistryToken is a bearer token to be sent to a registry
	RegistryToken string `json:"RegistryToken,omitempty"`

	// server address
	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 AuthResponse

type AuthResponse 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"`
}

AuthResponse The response returned by login to a registry swagger:model AuthResponse

func (*AuthResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthResponse) Validate

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

Validate validates this auth response

type BlkioStatEntry

type BlkioStatEntry struct {

	// major
	Major uint64 `json:"major,omitempty"`

	// minor
	Minor uint64 `json:"minor,omitempty"`

	// op
	Op string `json:"op,omitempty"`

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

BlkioStatEntry BlkioStatEntry is one small entity to store a piece of Blkio stats swagger:model BlkioStatEntry

func (*BlkioStatEntry) MarshalBinary

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

MarshalBinary interface implementation

func (*BlkioStatEntry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlkioStatEntry) Validate

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

Validate validates this blkio stat entry

type BlkioStats

type BlkioStats struct {

	// io merged recursive
	IoMergedRecursive []*BlkioStatEntry `json:"io_merged_recursive"`

	// io queue recursive
	IoQueueRecursive []*BlkioStatEntry `json:"io_queue_recursive"`

	// io service bytes recursive
	IoServiceBytesRecursive []*BlkioStatEntry `json:"io_service_bytes_recursive"`

	// io service time recursive
	IoServiceTimeRecursive []*BlkioStatEntry `json:"io_service_time_recursive"`

	// io serviced recursive
	IoServicedRecursive []*BlkioStatEntry `json:"io_serviced_recursive"`

	// io time recursive
	IoTimeRecursive []*BlkioStatEntry `json:"io_time_recursive"`

	// io wait time recursive
	IoWaitTimeRecursive []*BlkioStatEntry `json:"io_wait_time_recursive"`

	// sectors recursive
	SectorsRecursive []*BlkioStatEntry `json:"sectors_recursive"`
}

BlkioStats BlkioStats stores All IO service stats for data read and write. swagger:model BlkioStats

func (*BlkioStats) MarshalBinary

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

MarshalBinary interface implementation

func (*BlkioStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlkioStats) Validate

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

Validate validates this blkio stats

type CPUStats

type CPUStats struct {

	// cpu usage
	CPUUsage *CPUUsage `json:"cpu_usage,omitempty"`

	// onine CPUs
	OnlineCpus uint32 `json:"online_cpus,omitempty"`

	// System CPU Usage
	SyetemCPUUsage uint64 `json:"syetem_cpu_usage,omitempty"`

	// throttling data
	ThrottlingData *ThrottlingData `json:"throttling_data,omitempty"`
}

CPUStats CPUStats aggregates and wraps all CPU related info of container swagger:model CPUStats

func (*CPUStats) MarshalBinary

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

MarshalBinary interface implementation

func (*CPUStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CPUStats) Validate

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

Validate validates this CPU stats

type CPUUsage

type CPUUsage struct {

	// Total CPU time consumed per core (Linux).
	PercpuUsage []uint64 `json:"percpu_usage"`

	// Total CPU time consumed.
	TotalUsage uint64 `json:"total_usage,omitempty"`

	// Time spent by tasks of the cgroup in kernel mode (Linux).
	// Units, nanoseconds (Linux)
	//
	UsageInKernelmode uint64 `json:"usage_in_kernelmode,omitempty"`

	// Time spent by tasks of the cgroup in user mode (Linux).
	// Units, nanoseconds (Linux)
	//
	UsageInUsermode uint64 `json:"usage_in_usermode,omitempty"`
}

CPUUsage CPUUsage stores All CPU stats aggregated since container inception. swagger:model CPUUsage

func (*CPUUsage) MarshalBinary

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

MarshalBinary interface implementation

func (*CPUUsage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CPUUsage) Validate

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

Validate validates this CPU usage

type Checkpoint

type Checkpoint struct {

	// checkpoint name
	CheckpointName string `json:"CheckpointName,omitempty"`

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

Checkpoint describe a created checkpoint, include container name and checkpoint name swagger:model Checkpoint

func (*Checkpoint) MarshalBinary

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

MarshalBinary interface implementation

func (*Checkpoint) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Checkpoint) Validate

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

Validate validates this checkpoint

type CheckpointCreateOptions

type CheckpointCreateOptions struct {

	// checkpoint dir
	CheckpointDir string `json:"CheckpointDir,omitempty"`

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

	// exit
	Exit bool `json:"Exit,omitempty"`
}

CheckpointCreateOptions options of creating a checkpoint from a running container, checkpoint is used to restore a container with current state later swagger:model CheckpointCreateOptions

func (*CheckpointCreateOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*CheckpointCreateOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CheckpointCreateOptions) Validate

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

Validate validates this checkpoint create options

type CheckpointDeleteOptions

type CheckpointDeleteOptions struct {

	// checkpoint dir
	CheckpointDir string `json:"CheckpointDir,omitempty"`

	// checkpoint ID
	CheckpointID string `json:"CheckpointID,omitempty"`
}

CheckpointDeleteOptions options of deleting a checkpoint from a container swagger:model CheckpointDeleteOptions

func (*CheckpointDeleteOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*CheckpointDeleteOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CheckpointDeleteOptions) Validate

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

Validate validates this checkpoint delete options

type CheckpointListOptions

type CheckpointListOptions struct {

	// checkpoint dir
	CheckpointDir string `json:"CheckpointDir,omitempty"`
}

CheckpointListOptions options of listing all checkpoints of a container swagger:model CheckpointListOptions

func (*CheckpointListOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*CheckpointListOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CheckpointListOptions) Validate

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

Validate validates this checkpoint list options

type Commit

type Commit struct {

	// Commit ID of external tool expected by pouchd 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 Container

type Container struct {

	// command
	Command string `json:"Command,omitempty"`

	// Created time of container in daemon.
	Created int64 `json:"Created,omitempty"`

	// In Moby's API, HostConfig field in Container struct has following type
	// struct { NetworkMode string `json:",omitempty"` }
	// In Pouch, we need to pick runtime field in HostConfig from daemon side to judge runtime type,
	// So Pouch changes this type to be the complete HostConfig.
	// Incompatibility exists, ATTENTION.
	//
	HostConfig *HostConfig `json:"HostConfig,omitempty"`

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

	// image
	Image string `json:"Image,omitempty"`

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

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

	// Set of mount point in a container.
	Mounts []MountPoint `json:"Mounts"`

	// names
	Names []string `json:"Names"`

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

	// size root fs
	SizeRootFs int64 `json:"SizeRootFs,omitempty"`

	// size rw
	SizeRw int64 `json:"SizeRw,omitempty"`

	// state
	State string `json:"State,omitempty"`

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

Container an array of Container contains response of Engine API: GET "/containers/json"

swagger:model Container

func (*Container) MarshalBinary

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

MarshalBinary interface implementation

func (*Container) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Container) Validate

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

Validate validates this container

type ContainerCommitOptions

type ContainerCommitOptions struct {

	// author is the one build the image
	Author string `json:"Author,omitempty"`

	// comment is external information add for the image
	Comment string `json:"Comment,omitempty"`

	// repository is the image name
	Repository string `json:"Repository,omitempty"`

	// tag is the image tag
	Tag string `json:"Tag,omitempty"`
}

ContainerCommitOptions options of committing a container into an image swagger:model ContainerCommitOptions

func (*ContainerCommitOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerCommitOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerCommitOptions) Validate

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

Validate validates this container commit options

type ContainerCommitResp

type ContainerCommitResp struct {

	// ID uniquely identifies an image committed by a container
	ID string `json:"Id,omitempty"`
}

ContainerCommitResp response of commit container for the remote API: POST /commit swagger:model ContainerCommitResp

func (*ContainerCommitResp) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerCommitResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerCommitResp) Validate

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

Validate validates this container commit resp

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 an array of strings.
	Cmd []string `json:"Cmd"`

	// Whether to generate the network files(/etc/hostname, /etc/hosts and /etc/resolv.conf) for container.
	DisableNetworkFiles bool `json:"DisableNetworkFiles,omitempty"`

	// Set disk quota for container.
	// Key is the dir in container.
	// Value is disk quota size for the dir.
	// / means rootfs dir in container.
	// .* includes rootfs dir and all volume dir.
	//
	DiskQuota map[string]string `json:"DiskQuota,omitempty"`

	// 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.
	//
	Entrypoint []string `json:"Entrypoint"`

	// A list of environment variables to set inside the container in the form `["VAR=value", ...]`.
	// A variable like "A=" means setting env A in container to be empty value.
	// And 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"`

	// The hostname to use for the container, as a valid RFC 1123 hostname.
	// Min Length: 1
	// Format: hostname
	Hostname strfmt.Hostname `json:"Hostname,omitempty"`

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

	// Initial script executed in container. The script will be executed before entrypoint or command
	InitScript string `json:"InitScript,omitempty"`

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

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

	// net priority.
	NetPriority int64 `json:"NetPriority,omitempty"`

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

	// `ONBUILD` metadata that were defined.
	OnBuild []string `json:"OnBuild"`

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

	// Set disk quota by specified quota id.
	// If QuotaID <= 0, it means pouchd should allocate a unique quota id by sequence automatically.
	// By default, a quota ID is mapped to only one container. And one quota ID can include several mountpoint.
	//
	QuotaID string `json:"QuotaID,omitempty"`

	// Whether to start container in rich container mode. (default false)
	Rich bool `json:"Rich,omitempty"`

	// Choose one rich container mode.(default dumb-init)
	// Enum: [dumb-init sbin-init systemd]
	RichMode string `json:"RichMode,omitempty"`

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

	// The snapshotter container choose, can be different with
	// default snapshotter. The Field only set through hook plugin.
	//
	Snapshotter string `json:"Snapshotter,omitempty"`

	// annotations send to runtime spec.
	SpecAnnotation map[string]string `json:"SpecAnnotation,omitempty"`

	// Create container with given id.
	// MinLength: 64
	// MaxLength: 64
	// The characters of given id should be in 0123456789abcdef.
	// By default, given id is unnecessary.
	//
	SpecificID string `json:"SpecificID,omitempty"`

	// 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.
	// Minimum: 0
	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"`

	// An object mapping mount point paths inside the container to empty objects.
	Volumes map[string]interface{} `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 ContainerCreateConfig

type ContainerCreateConfig struct {
	ContainerConfig

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

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

ContainerCreateConfig ContainerCreateConfig is used for API "POST /containers/create". It wraps all kinds of config used in container creation. It can be used to encode client params in client and unmarshal request body in daemon side.

swagger:model ContainerCreateConfig

func (*ContainerCreateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (ContainerCreateConfig) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*ContainerCreateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerCreateConfig) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerCreateConfig) Validate

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

Validate validates this container create config

type ContainerCreateResp

type ContainerCreateResp struct {

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

	// The name of the created container
	Name string `json:"Name,omitempty"`

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

ContainerCreateResp response returned by daemon when container create successfully swagger:model ContainerCreateResp

func (*ContainerCreateResp) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerCreateResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerCreateResp) Validate

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

Validate validates this container create resp

type ContainerExecInspect

type ContainerExecInspect struct {

	// can remove
	// Required: true
	CanRemove bool `json:"CanRemove"`

	// The ID of this container
	// Required: true
	ContainerID string `json:"ContainerID"`

	// detach keys
	// Required: true
	DetachKeys string `json:"DetachKeys"`

	// The last exit code of this container
	// Required: true
	ExitCode int64 `json:"ExitCode"`

	// The ID of this exec
	// Required: true
	ID string `json:"ID"`

	// open stderr
	// Required: true
	OpenStderr bool `json:"OpenStderr"`

	// open stdin
	// Required: true
	OpenStdin bool `json:"OpenStdin"`

	// open stdout
	// Required: true
	OpenStdout bool `json:"OpenStdout"`

	// process config
	// Required: true
	ProcessConfig *ProcessConfig `json:"ProcessConfig"`

	// running
	// Required: true
	Running bool `json:"Running"`
}

ContainerExecInspect holds information about a running process started. swagger:model ContainerExecInspect

func (*ContainerExecInspect) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerExecInspect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerExecInspect) Validate

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

Validate validates this container exec inspect

type ContainerJSON

type ContainerJSON struct {

	// AppArmorProfile are specific for AppArmor to Unix platforms
	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 of container
	ExecIds []string `json:"ExecIDs"`

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

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

	// The rootfs path of the container on the host.
	HostRootPath string `json:"HostRootPath,omitempty"`

	// the path of container's hostname file on host.
	HostnamePath string `json:"HostnamePath,omitempty"`

	// the path of container's hosts file on host.
	HostsPath string `json:"HostsPath,omitempty"`

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

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

	// the path of container's log file on host.
	LogPath string `json:"LogPath,omitempty"`

	// MountLabel contains the options for the 'mount' command.
	MountLabel string `json:"MountLabel,omitempty"`

	// Set of mount point in a container.
	Mounts []MountPoint `json:"Mounts"`

	// name of the created container.
	Name string `json:"Name,omitempty"`

	// NetworkSettings exposes the network settings in the API.
	NetworkSettings *NetworkSettings `json:"NetworkSettings,omitempty"`

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

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

	// the path of container's resolvConf file on host.
	ResolvConfPath string `json:"ResolvConfPath,omitempty"`

	// the container's restart time
	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"`

	// snapshotter
	Snapshotter *SnapshotterData `json:"Snapshotter,omitempty"`

	// The state of the container.
	State *ContainerState `json:"State,omitempty"`
}

ContainerJSON ContainerJSON contains response of Engine API: GET "/containers/{id}/json"

swagger:model ContainerJSON

func (*ContainerJSON) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerJSON) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerJSON) Validate

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

Validate validates this container JSON

type ContainerListOptions

type ContainerListOptions struct {

	// all
	All bool `json:"All,omitempty"`

	// before
	Before string `json:"Before,omitempty"`

	// filter
	Filter map[string][]string `json:"Filter,omitempty"`

	// limit
	Limit int64 `json:"Limit,omitempty"`

	// since
	Since string `json:"Since,omitempty"`
}

ContainerListOptions options of list container, filters (a `map[string][]string`) to process on the container list. Available filters:

- `id=container-id` - `name=container-name` - `status=running` - `label=key` or `label=key=value` - `network=container-network` - `volume=volume-id`

swagger:model ContainerListOptions

func (*ContainerListOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerListOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerListOptions) Validate

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

Validate validates this container list options

type ContainerLogsOptions

type ContainerLogsOptions struct {

	// Show extra details provided to logs
	Details bool `json:"Details,omitempty"`

	// Return logs as a stream
	Follow bool `json:"Follow,omitempty"`

	// Return logs from `stderr`
	ShowStderr bool `json:"ShowStderr,omitempty"`

	// Return logs from `stdout`
	ShowStdout bool `json:"ShowStdout,omitempty"`

	// Only return logs after this time, as a UNIX timestamp
	Since string `json:"Since,omitempty"`

	// Only reture this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines.
	Tail string `json:"Tail,omitempty"`

	// Add timestamps to every log line
	Timestamps bool `json:"Timestamps,omitempty"`

	// Only reture logs before this time, as a UNIX timestamp
	Until string `json:"Until,omitempty"`
}

ContainerLogsOptions The parameters to filter the log. swagger:model ContainerLogsOptions

func (*ContainerLogsOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerLogsOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerLogsOptions) Validate

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

Validate validates this container logs options

type ContainerNetworkSettings

type ContainerNetworkSettings struct {

	// networks
	Networks map[string]*EndpointSettings `json:"Networks,omitempty"`
}

ContainerNetworkSettings container network settings swagger:model ContainerNetworkSettings

func (*ContainerNetworkSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerNetworkSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerNetworkSettings) Validate

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

Validate validates this container network settings

type ContainerPathStat

type ContainerPathStat struct {

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

	// modification time.
	// Format: date-time
	Mtime strfmt.DateTime `json:"mtime,omitempty"`

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

	// path
	Path string `json:"path,omitempty"`

	// size
	Size string `json:"size,omitempty"`
}

ContainerPathStat ContainerPathStat is used to describe the stat of file swagger:model ContainerPathStat

func (*ContainerPathStat) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerPathStat) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerPathStat) Validate

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

Validate validates this container path stat

type ContainerProcessList

type ContainerProcessList 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"`
}

ContainerProcessList OK Response to ContainerTop operation swagger:model ContainerProcessList

func (*ContainerProcessList) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerProcessList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerProcessList) Validate

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

Validate validates this container process list

type ContainerRemoveOptions

type ContainerRemoveOptions struct {

	// force
	Force bool `json:"Force,omitempty"`

	// link
	Link bool `json:"Link,omitempty"`

	// volumes
	Volumes bool `json:"Volumes,omitempty"`
}

ContainerRemoveOptions options of remove container swagger:model ContainerRemoveOptions

func (*ContainerRemoveOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerRemoveOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerRemoveOptions) Validate

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

Validate validates this container remove options

type ContainerStartOptions

type ContainerStartOptions struct {

	// checkpoint dir
	CheckpointDir string `json:"CheckpointDir,omitempty"`

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

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

ContainerStartOptions options of starting container swagger:model ContainerStartOptions

func (*ContainerStartOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerStartOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerStartOptions) Validate

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

Validate validates this container start options

type ContainerState

type ContainerState struct {

	// Whether this container is dead.
	// Required: true
	Dead bool `json:"Dead"`

	// The error message of this container
	// Required: true
	Error string `json:"Error"`

	// The last exit code of this container
	// Required: true
	ExitCode int64 `json:"ExitCode"`

	// Whether this container is abnormal stopped. So that we can distinguish whether
	// a container stoppped by API or abnormal.
	//
	// This flag can be used on the circumstances that when the host restart and try to pull up
	// the containers that are running before host down. If we have a container with `RestartPolicy`
	// is `always` but the `Status` is `Stopped`, should we start it or not?
	//
	// So with the `Exited` flag being set, we can make sure that this container is exited by abnormal,
	// we should pull it up. But with status is `Stopped`, we should not pull it up because it is stopped
	// by API.
	//
	Exited bool `json:"Exited,omitempty"`

	// The time when this container last exited.
	// Required: true
	FinishedAt string `json:"FinishedAt"`

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

	// Whether this container is paused.
	// Required: true
	Paused bool `json:"Paused"`

	// The process ID of this container
	// Required: true
	Pid int64 `json:"Pid"`

	// Whether this container is restarting.
	// Required: true
	Restarting bool `json:"Restarting"`

	// 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".
	//
	// Required: true
	Running bool `json:"Running"`

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

	// status
	// Required: true
	Status Status `json:"Status"`
}

ContainerState container state swagger:model ContainerState

func (*ContainerState) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerState) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerState) Validate

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

Validate validates this container state

type ContainerStats

type ContainerStats struct {

	// blkio stats
	BlkioStats *BlkioStats `json:"blkio_stats,omitempty"`

	// cpu stats
	CPUStats *CPUStats `json:"cpu_stats,omitempty"`

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

	// memory stats
	MemoryStats *MemoryStats `json:"memory_stats,omitempty"`

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

	// networks
	Networks map[string]NetworkStats `json:"networks,omitempty"`

	// pids stats
	PidsStats *PidsStats `json:"pids_stats,omitempty"`

	// precpu stats
	PrecpuStats *CPUStats `json:"precpu_stats,omitempty"`

	// read time of container stats.
	// Format: date-time
	Read strfmt.DateTime `json:"read,omitempty"`
}

ContainerStats container stats almost from cgroup resource usage. swagger:model ContainerStats

func (*ContainerStats) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerStats) Validate

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

Validate validates this container stats

type ContainerUpgradeConfig

type ContainerUpgradeConfig struct {

	// Execution commands and args
	Cmd []string `json:"Cmd"`

	// The entrypoint 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.
	//
	Entrypoint []string `json:"Entrypoint"`

	// image
	// Required: true
	Image string `json:"Image"`
}

ContainerUpgradeConfig ContainerUpgradeConfig is used for API "POST /containers/{name:.*}/upgrade". when upgrade a container, we must specify new image used to create a new container, and also can specify `Cmd` and `Entrypoint` for new container. There is all parameters that upgrade a container, if want to change other parameters, i think you should use `update` API interface.

swagger:model ContainerUpgradeConfig

func (*ContainerUpgradeConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerUpgradeConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerUpgradeConfig) Validate

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

Validate validates this container upgrade config

type ContainerWaitOKBody

type ContainerWaitOKBody struct {

	// The error message of waiting container
	Error string `json:"Error,omitempty"`

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

ContainerWaitOKBody container wait o k body 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 DaemonUpdateConfig

type DaemonUpdateConfig struct {

	// Image proxy used to pull image.
	ImageProxy string `json:"ImageProxy,omitempty"`

	// Labels indentified the attributes of daemon
	Labels []string `json:"Labels"`
}

DaemonUpdateConfig daemon update config swagger:model DaemonUpdateConfig

func (*DaemonUpdateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*DaemonUpdateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DaemonUpdateConfig) Validate

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

Validate validates this daemon update config

type DeviceMapping

type DeviceMapping struct {

	// cgroup permissions of the device
	CgroupPermissions string `json:"CgroupPermissions,omitempty"`

	// path in container of the device mapping
	PathInContainer string `json:"PathInContainer,omitempty"`

	// path on host of the device mapping
	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 EndpointIPAMConfig

type EndpointIPAMConfig struct {

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

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

	// link to the list of local ip
	LinkLocalIps []string `json:"LinkLocalIPs"`
}

EndpointIPAMConfig IPAM configurations for the endpoint 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 EndpointResource

type EndpointResource struct {

	// EndpointID represents the endpoint's id
	EndpointID string `json:"EndpointID,omitempty"`

	// IPv4Address represents the enpoint's ipv4 address
	IPV4Address string `json:"IPv4Address,omitempty"`

	// IPv4Address represents the enpoint's ipv6 address
	IPV6Address string `json:"IPv6Address,omitempty"`

	// MacAddress represents the enpoint's mac address
	MacAddress string `json:"MacAddress,omitempty"`

	// Name is the requested name of the network
	Name string `json:"Name,omitempty"`
}

EndpointResource NetworkResource is the body of the "get network" http response message swagger:model EndpointResource

func (*EndpointResource) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointResource) Validate

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

Validate validates this endpoint resource

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 Error

type Error struct {

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

Error error swagger:model Error

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type EventType

type EventType string

EventType The type of event. For example, "container" or "image", Now we only support container, image, network and volume events.

swagger:model EventType

const (

	// EventTypeContainer captures enum value "container"
	EventTypeContainer EventType = "container"

	// EventTypeDaemon captures enum value "daemon"
	EventTypeDaemon EventType = "daemon"

	// EventTypeImage captures enum value "image"
	EventTypeImage EventType = "image"

	// EventTypeNetwork captures enum value "network"
	EventTypeNetwork EventType = "network"

	// EventTypePlugin captures enum value "plugin"
	EventTypePlugin EventType = "plugin"

	// EventTypeVolume captures enum value "volume"
	EventTypeVolume EventType = "volume"
)

func (EventType) Validate

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

Validate validates this event type

type EventsActor

type EventsActor struct {

	// attributes
	Attributes map[string]string `json:"Attributes,omitempty"`

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

EventsActor EventsActor describes something that generates events, like a container, or a network, or a volume. It has a defined name and a set or attributes. The container attributes are its labels, other actors can generate these attributes from other properties.

swagger:model EventsActor

func (*EventsActor) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsActor) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsActor) Validate

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

Validate validates this events actor

type EventsMessage

type EventsMessage struct {

	// action
	Action string `json:"action,omitempty"`

	// actor
	Actor *EventsActor `json:"actor,omitempty"`

	// from
	From string `json:"from,omitempty"`

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

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

	// time
	Time int64 `json:"time,omitempty"`

	// time nano
	TimeNano int64 `json:"timeNano,omitempty"`

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

EventsMessage EventsMessage represents the information an event contains, the message at least contains type, action and id. type specifies which object generates the event, like container, or a network, or a volume. the action specifies the action name, like create, or destroy. the id identifies the object that generates the event. The message also can contain the EventsActor that describes the extra attributes that describe the event.

swagger:model EventsMessage

func (*EventsMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsMessage) Validate

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

Validate validates this events message

type ExecCreateConfig

type ExecCreateConfig struct {

	// Attach the standard error
	AttachStderr bool `json:"AttachStderr,omitempty"`

	// Attach the standard input, makes possible user interaction
	AttachStdin bool `json:"AttachStdin,omitempty"`

	// Attach the standard output
	AttachStdout bool `json:"AttachStdout,omitempty"`

	// Execution commands and args
	// Required: true
	// Min Items: 1
	Cmd []string `json:"Cmd"`

	// Execute in detach mode
	Detach bool `json:"Detach,omitempty"`

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

	// envs for exec command in container
	Env []string `json:"Env"`

	// Is the container in privileged mode
	Privileged bool `json:"Privileged,omitempty"`

	// Attach standard streams to a tty
	Tty bool `json:"Tty,omitempty"`

	// User that will run the command
	User string `json:"User,omitempty"`
}

ExecCreateConfig is a small subset of the Config struct that holds the configuration. swagger:model ExecCreateConfig

func (*ExecCreateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*ExecCreateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExecCreateConfig) Validate

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

Validate validates this exec create config

type ExecCreateResp

type ExecCreateResp struct {

	// ID is the exec ID
	ID string `json:"Id,omitempty"`
}

ExecCreateResp contains response of Remote API POST "/containers/{name:.*}/exec". swagger:model ExecCreateResp

func (*ExecCreateResp) MarshalBinary

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

MarshalBinary interface implementation

func (*ExecCreateResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExecCreateResp) Validate

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

Validate validates this exec create resp

type ExecStartConfig

type ExecStartConfig struct {

	// ExecStart will first check if it's detached
	Detach bool `json:"Detach,omitempty"`

	// Check if there's a tty
	Tty bool `json:"Tty,omitempty"`
}

ExecStartConfig ExecStartConfig is a temp struct used by execStart. swagger:model ExecStartConfig

func (*ExecStartConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*ExecStartConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExecStartConfig) Validate

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

Validate validates this exec start config

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 HistoryResultItem

type HistoryResultItem struct {

	// the author of the build point.
	// Required: true
	Author string `json:"Author"`

	// a custom message set when creating the layer.
	// Required: true
	Comment string `json:"Comment"`

	// the combined date and time at which the layer was created.
	// Required: true
	Created int64 `json:"Created"`

	// the command which created the layer.
	// Required: true
	CreatedBy string `json:"CreatedBy"`

	// mark whether the history item created a filesystem diff or not.
	// Required: true
	EmptyLayer bool `json:"EmptyLayer"`

	// ID of each layer image.
	// Required: true
	ID string `json:"ID"`

	// size of each layer image.
	// Required: true
	Size int64 `json:"Size"`
}

HistoryResultItem An object containing image history at API side. swagger:model HistoryResultItem

func (*HistoryResultItem) MarshalBinary

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

MarshalBinary interface implementation

func (*HistoryResultItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HistoryResultItem) Validate

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

Validate validates this history result item

type HostConfig

type HostConfig 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"`

	// Determine the container has own cgroup namespace, valid values is host
	// `"host"` means own host cgroup namespace, default or other values will share
	// host cgroup namespace. Note cgroup namespace only take effect for kernel > 4.6
	//
	CgroupMode string `json:"CgroupMode,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"`

	// Whether to enable lxcfs.
	EnableLxcfs bool `json:"EnableLxcfs,omitempty"`

	// 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"`

	// Initial script executed in container. The script will be executed before entrypoint or command
	InitScript string `json:"InitScript,omitempty"`

	// 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)
	// Enum: [default process hyperv]
	Isolation string `json:"Isolation,omitempty"`

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

	// The logging configuration for this container
	LogConfig *LogConfig `json:"LogConfig,omitempty"`

	// Masks over the provided paths inside the container.
	MaskedPaths []string `json:"MaskedPaths"`

	// Network mode to use for this container. Supported standard values are: `netns:<path>`, `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.
	// The range is in [-1000, 1000].
	//
	// Maximum: 1000
	// Minimum: -1000
	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"`

	// A map of exposed container ports and the host port they should map to.
	PortBindings PortMap `json:"PortBindings,omitempty"`

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

	// Allocates a random host port for all of a container's exposed ports.
	PublishAllPorts bool `json:"PublishAllPorts,omitempty"`

	// Set the provided paths as RO inside the container.
	ReadonlyPaths []string `json:"ReadonlyPaths"`

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

	// Restart policy to be used to manage the container
	RestartPolicy *RestartPolicy `json:"RestartPolicy,omitempty"`

	// Whether to start container in rich container mode. (default false)
	Rich bool `json:"Rich,omitempty"`

	// Choose one rich container mode.(default dumb-init)
	// Enum: [dumb-init sbin-init systemd]
	RichMode string `json:"RichMode,omitempty"`

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

	// The runtime type used in containerd.
	RuntimeType string `json:"RuntimeType,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"`

	Resources
}

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 IPAM

type IPAM struct {

	// config
	Config []IPAMConfig `json:"Config"`

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

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

IPAM represents IP Address Management 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 IPAMConfig

type IPAMConfig struct {

	// aux address in sub-network
	AuxAddress map[string]string `json:"AuxAddress,omitempty"`

	// gateway for sub-network
	Gateway string `json:"Gateway,omitempty"`

	// sub ip range in sub-network
	IPRange string `json:"IPRange,omitempty"`

	// subnet address for network
	Subnet string `json:"Subnet,omitempty"`
}

IPAMConfig represents IPAM configurations swagger:model IPAMConfig

func (*IPAMConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*IPAMConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPAMConfig) Validate

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

Validate validates this IP a m config

type IPAddress

type IPAddress struct {

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

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

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

func (*IPAddress) MarshalBinary

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

MarshalBinary interface implementation

func (*IPAddress) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPAddress) Validate

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

Validate validates this IP address

type ImageInfo

type ImageInfo struct {

	// the CPU architecture.
	Architecture string `json:"Architecture,omitempty"`

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

	// time of image creation.
	CreatedAt string `json:"CreatedAt,omitempty"`

	// ID of an image.
	ID string `json:"Id,omitempty"`

	// the name of the operating system.
	Os string `json:"Os,omitempty"`

	// repository with digest.
	RepoDigests []string `json:"RepoDigests"`

	// repository with tag.
	RepoTags []string `json:"RepoTags"`

	// root f s
	RootFS *ImageInfoRootFS `json:"RootFS,omitempty"`

	// size of image's taking disk space.
	Size int64 `json:"Size,omitempty"`
}

ImageInfo An object containing all details of an image at API side swagger:model ImageInfo

func (*ImageInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageInfo) Validate

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

Validate validates this image info

type ImageInfoRootFS

type ImageInfoRootFS struct {

	// the base layer content hash.
	BaseLayer string `json:"BaseLayer,omitempty"`

	// an array of layer content hashes
	Layers []string `json:"Layers"`

	// type of the rootfs
	// Required: true
	Type string `json:"Type"`
}

ImageInfoRootFS the rootfs key references the layer content addresses used by the image. swagger:model ImageInfoRootFS

func (*ImageInfoRootFS) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageInfoRootFS) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageInfoRootFS) Validate

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

Validate validates this image info root f s

type IndexInfo

type IndexInfo struct {

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

	// Name of the registry.
	//
	Name string `json:"Name,omitempty"`

	// Indicates whether this is an official registry.
	//
	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 LogConfig

type LogConfig struct {

	// log driver
	// Enum: [json-file syslog journald gelf fluentd awslogs splunk etwlogs none]
	LogDriver string `json:"Type,omitempty"`

	// log opts
	LogOpts map[string]string `json:"Config,omitempty"`
}

LogConfig The logging configuration for this container swagger:model LogConfig

func (*LogConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*LogConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LogConfig) Validate

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

Validate validates this log config

type MemoryStats

type MemoryStats struct {

	// number of times memory usage hits limits.
	Failcnt uint64 `json:"failcnt,omitempty"`

	// xxx
	Limit uint64 `json:"limit,omitempty"`

	// maximum usage ever recorded.
	MaxUsage uint64 `json:"max_usage,omitempty"`

	// all the stats exported via memory.stat.
	Stats map[string]uint64 `json:"stats,omitempty"`

	// current res_counter usage for memory
	Usage uint64 `json:"usage,omitempty"`
}

MemoryStats MemoryStats aggregates all memory stats since container inception on Linux. swagger:model MemoryStats

func (*MemoryStats) MarshalBinary

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

MarshalBinary interface implementation

func (*MemoryStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MemoryStats) Validate

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

Validate validates this memory stats

type MountPoint

type MountPoint struct {

	// copy data
	CopyData bool `json:"CopyData,omitempty"`

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

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

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

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

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

	// named
	Named bool `json:"Named,omitempty"`

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

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

	// replace
	Replace string `json:"Replace,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 NetworkConnect

type NetworkConnect 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"`
}

NetworkConnect contains the request for the remote API: POST /networks/{id:.*}/connect swagger:model NetworkConnect

func (*NetworkConnect) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkConnect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkConnect) Validate

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

Validate validates this network connect

type NetworkCreate

type NetworkCreate struct {

	// CheckDuplicate is used to check the network is duplicate or not.
	CheckDuplicate bool `json:"CheckDuplicate,omitempty"`

	// Driver means the network's driver.
	Driver string `json:"Driver,omitempty"`

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

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

	// Internal checks the network is internal network or not.
	Internal bool `json:"Internal,omitempty"`

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

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

NetworkCreate is the expected body of the "create network" http request message swagger:model NetworkCreate

func (*NetworkCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreate) Validate

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

Validate validates this network create

type NetworkCreateConfig

type NetworkCreateConfig struct {

	// Name is the name of the network.
	Name string `json:"Name,omitempty"`

	NetworkCreate
}

NetworkCreateConfig contains the request for the remote API: POST /networks/create swagger:model NetworkCreateConfig

func (*NetworkCreateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (NetworkCreateConfig) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*NetworkCreateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateConfig) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*NetworkCreateConfig) Validate

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

Validate validates this network create config

type NetworkCreateResp

type NetworkCreateResp struct {

	// ID is the id of the network.
	ID string `json:"Id,omitempty"`

	// Warning means the message of create network result.
	Warning string `json:"Warning,omitempty"`
}

NetworkCreateResp contains the response for the remote API: POST /networks/create swagger:model NetworkCreateResp

func (*NetworkCreateResp) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateResp) Validate

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

Validate validates this network create resp

type NetworkDisconnect

type NetworkDisconnect 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"`
}

NetworkDisconnect Parameters of network disconnect swagger:model NetworkDisconnect

func (*NetworkDisconnect) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDisconnect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDisconnect) Validate

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

Validate validates this network disconnect

type NetworkInspectResp

type NetworkInspectResp struct {

	// Driver means the network's driver.
	Driver string `json:"Driver,omitempty"`

	// EnableIPv6 represents whether to enable IPv6.
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

	// IPAM is the network's IP Address Management.
	IPAM *IPAM `json:"IPAM,omitempty"`

	// ID uniquely identifies a network on a single machine
	ID string `json:"Id,omitempty"`

	// Internal checks the network is internal network or not.
	Internal bool `json:"Internal,omitempty"`

	// Labels holds metadata specific to the network being created.
	Labels map[string]string `json:"Labels,omitempty"`

	// Name is the requested name of the network
	Name string `json:"Name,omitempty"`

	// Options holds the network specific options to use for when creating the network.
	Options map[string]string `json:"Options,omitempty"`

	// Scope describes the level at which the network exists.
	Scope string `json:"Scope,omitempty"`
}

NetworkInspectResp is the expected body of the 'GET networks/{id}” http request message swagger:model NetworkInspectResp

func (*NetworkInspectResp) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkInspectResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkInspectResp) Validate

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

Validate validates this network inspect resp

type NetworkResource

type NetworkResource struct {

	// Containers contains endpoints belonging to the network
	Containers interface{} `json:"Containers,omitempty"`

	// Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)
	Driver string `json:"Driver,omitempty"`

	// EnableIPv6 represents whether to enable IPv6
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

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

	// ID uniquely identifies a network on a single machine
	ID string `json:"Id,omitempty"`

	// index configs
	IndexConfigs map[string]EndpointResource `json:"IndexConfigs,omitempty"`

	// Internal represents if the network is used internal only
	Internal bool `json:"Internal,omitempty"`

	// Labels holds metadata specific to the network being created
	Labels map[string]string `json:"Labels,omitempty"`

	// Name is the requested name of the network
	Name string `json:"Name,omitempty"`

	// Options holds the network specific options to use for when creating the network
	Options map[string]string `json:"Options,omitempty"`

	// Scope describes the level at which the network exists (e.g. `global` for cluster-wide or `local` for machine level)
	Scope string `json:"Scope,omitempty"`
}

NetworkResource NetworkResource is the body of the "get network" http response message swagger:model NetworkResource

func (*NetworkResource) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkResource) Validate

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

Validate validates this network resource

type NetworkSettings

type NetworkSettings struct {

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

	// Indicates if hairpin NAT should be enabled on the virtual interface
	HairpinMode bool `json:"HairpinMode,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"`

	// Information about all networks that the container is connected to
	Networks map[string]*EndpointSettings `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 []*IPAddress `json:"SecondaryIPAddresses"`

	// secondary ipv6 addresses
	SecondaryIPV6Addresses []*IPAddress `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 NetworkStats

type NetworkStats struct {

	// Endpoint ID.
	EndpointID string `json:"endpoint_id,omitempty"`

	// Instance ID.
	InstanceID string `json:"instance_id,omitempty"`

	// Bytes received.
	RxBytes uint64 `json:"rx_bytes,omitempty"`

	// Incoming packets dropped.
	RxDropped uint64 `json:"rx_dropped,omitempty"`

	// Received errors.
	RxErrors uint64 `json:"rx_errors,omitempty"`

	// Packets received.
	RxPackets uint64 `json:"rx_packets,omitempty"`

	// Bytes sent.
	TxBytes uint64 `json:"tx_bytes,omitempty"`

	// Outgoing packets dropped.
	TxDropped uint64 `json:"tx_dropped,omitempty"`

	// Sent errors.
	TxErrors uint64 `json:"tx_errors,omitempty"`

	// Packets sent.
	TxPackets uint64 `json:"tx_packets,omitempty"`
}

NetworkStats container stats almost from cgroup resource usage. swagger:model NetworkStats

func (*NetworkStats) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkStats) Validate

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

Validate validates this network stats

type NetworkingConfig

type NetworkingConfig struct {

	// endpoints config
	EndpointsConfig map[string]*EndpointSettings `json:"EndpointsConfig,omitempty"`
}

NetworkingConfig Configuration for a network used to create a container. swagger:model NetworkingConfig

func (*NetworkingConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkingConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkingConfig) Validate

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

Validate validates this networking config

type NvidiaConfig

type NvidiaConfig struct {

	// NvidiaDriverCapabilities controls which driver libraries/binaries will be mounted inside the container
	NvidiaDriverCapabilities string `json:"NvidiaDriverCapabilities,omitempty"`

	// NvidiaVisibleDevices controls which GPUs will be made accessible inside the container
	NvidiaVisibleDevices string `json:"NvidiaVisibleDevices,omitempty"`
}

NvidiaConfig nvidia config swagger:model NvidiaConfig

func (*NvidiaConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*NvidiaConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NvidiaConfig) Validate

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

Validate validates this nvidia config

type PidsStats

type PidsStats struct {

	// Current is the number of pids in the cgroup
	Current uint64 `json:"current,omitempty"`

	// Limit is the hard limit on the number of pids in the cgroup.
	// A "Limit" of 0 means that there is no limit.
	//
	Limit uint64 `json:"limit,omitempty"`
}

PidsStats PidsStats contains the stats of a container's pids swagger:model PidsStats

func (*PidsStats) MarshalBinary

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

MarshalBinary interface implementation

func (*PidsStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PidsStats) Validate

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

Validate validates this pids stats

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. range (0,65535]
	// Pattern: ^([1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$
	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

type PortMap map[string][]PortBinding

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 ProcessConfig

type ProcessConfig struct {

	// arguments
	// Required: true
	Arguments []string `json:"arguments"`

	// entrypoint
	// Required: true
	Entrypoint string `json:"entrypoint"`

	// privileged
	// Required: true
	Privileged bool `json:"privileged"`

	// tty
	// Required: true
	Tty bool `json:"tty"`

	// user
	// Required: true
	User string `json:"user"`
}

ProcessConfig ExecProcessConfig holds information about the exec process. 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 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 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,omitempty"`

	// 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,omitempty"`

	// index configs
	IndexConfigs map[string]IndexInfo `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,omitempty"`

	// List of registry URLs that act as a mirror for the official registry.
	Mirrors []string `json:"Mirrors,omitempty"`
}

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 ResizeOptions

type ResizeOptions struct {

	// height
	Height int64 `json:"Height,omitempty"`

	// width
	Width int64 `json:"Width,omitempty"`
}

ResizeOptions options of resizing container tty size swagger:model ResizeOptions

func (*ResizeOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ResizeOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResizeOptions) Validate

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

Validate validates this resize options

type Resources

type Resources struct {

	// Limit read rate (bytes per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
	//
	BlkioDeviceReadBps []*ThrottleDevice `json:"BlkioDeviceReadBps"`

	// Limit read rate (IO per second) from a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
	//
	BlkioDeviceReadIOps []*ThrottleDevice `json:"BlkioDeviceReadIOps"`

	// Limit write rate (bytes per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
	//
	BlkioDeviceWriteBps []*ThrottleDevice `json:"BlkioDeviceWriteBps"`

	// Limit write rate (IO per second) to a device, in the form `[{"Path": "device_path", "Rate": rate}]`.
	//
	BlkioDeviceWriteIOps []*ThrottleDevice `json:"BlkioDeviceWriteIOps"`

	// Block IO weight (relative weight), need CFQ IO Scheduler enable.
	// Maximum: 1000
	// Minimum: 0
	BlkioWeight uint16 `json:"BlkioWeight"`

	// Block IO weight (relative device weight) in the form `[{"Path": "device_path", "Weight": weight}]`.
	//
	BlkioWeightDevice []*WeightDevice `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"`

	// 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"`

	// 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"`

	// CPU CFS (Completely Fair Scheduler) period.
	// The length of a CPU period in microseconds.
	//
	// Maximum: 1e+06
	// Minimum: 1000
	CPUPeriod int64 `json:"CpuPeriod"`

	// CPU CFS (Completely Fair Scheduler) quota.
	// Microseconds of CPU time that the container can get in a CPU period."
	//
	CPUQuota int64 `json:"CpuQuota"`

	// 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"`

	// 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"`

	// An integer value representing this container's relative CPU weight versus other containers.
	CPUShares int64 `json:"CpuShares"`

	// CPUs in which to allow execution (e.g., `0-3`, `0,1`)
	CpusetCpus string `json:"CpusetCpus"`

	// Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
	CpusetMems string `json:"CpusetMems"`

	// a list of cgroup rules to apply to the container
	DeviceCgroupRules []string `json:"DeviceCgroupRules"`

	// A list of devices to add to the container.
	Devices []*DeviceMapping `json:"Devices"`

	// Maximum IO in bytes per second for the container system drive (Windows only)
	IOMaximumBandwidth uint64 `json:"IOMaximumBandwidth"`

	// Maximum IOps for the container system drive (Windows only)
	IOMaximumIOps uint64 `json:"IOMaximumIOps"`

	// IntelRdtL3Cbm specifies settings for Intel RDT/CAT group that the container is placed into to limit the resources (e.g., L3 cache) the container has available.
	IntelRdtL3Cbm string `json:"IntelRdtL3Cbm"`

	// Kernel memory limit in bytes.
	KernelMemory int64 `json:"KernelMemory"`

	// Memory limit in bytes.
	Memory int64 `json:"Memory"`

	// MemoryExtra is an integer value representing memory extra in bytes
	//
	MemoryExtra *int64 `json:"MemoryExtra"`

	// MemoryForceEmptyCtl represents whether to reclaim the page cache when deleting cgroup.
	MemoryForceEmptyCtl int64 `json:"MemoryForceEmptyCtl"`

	// Memory soft limit in bytes.
	MemoryReservation int64 `json:"MemoryReservation"`

	// Total memory limit (memory + swap). Set as `-1` to enable unlimited swap.
	MemorySwap int64 `json:"MemorySwap"`

	// Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. -1 is also accepted, as a legacy alias of 0.
	// Maximum: 100
	// Minimum: -1
	MemorySwappiness *int64 `json:"MemorySwappiness"`

	// MemoryWmarkRatio is an integer value representing this container's memory low water mark percentage.
	// The value of memory low water mark is memory.limit_in_bytes * MemoryWmarkRatio.
	//
	MemoryWmarkRatio *int64 `json:"MemoryWmarkRatio"`

	// CPU quota in units of 10<sup>-9</sup> CPUs.
	NanoCpus int64 `json:"NanoCpus"`

	// nvidia config
	NvidiaConfig *NvidiaConfig `json:"NvidiaConfig,omitempty"`

	// Disable OOM Killer for the container.
	OomKillDisable *bool `json:"OomKillDisable"`

	// Tune a container's pids limit. Set -1 for unlimited. Only on Linux 4.4 does this parameter support.
	//
	PidsLimit int64 `json:"PidsLimit"`

	// ScheLatSwitch enables scheduler latency count in cpuacct
	ScheLatSwitch int64 `json:"ScheLatSwitch"`

	// A list of resource limits to set in the container. For example: `{"Name": "nofile", "Soft": 1024, "Hard": 2048}`"
	//
	Ulimits []*Ulimit `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 RestartPolicy

type RestartPolicy struct {

	// maximum retry count
	MaximumRetryCount int64 `json:"MaximumRetryCount,omitempty"`

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

RestartPolicy Define container's restart policy 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 {

	// Options are config options for specific runtime.
	Options interface{} `json:"options,omitempty"`

	// 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.
	// DEPRECATED: Use Options instead. Remove when shim v1 is deprecated.
	//
	RuntimeArgs []string `json:"runtimeArgs"`

	// The runtime type used in containerd.
	Type string `json:"type,omitempty"`
}

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 SearchResultItem

type SearchResultItem struct {

	// description just shows the description of this image
	Description string `json:"description,omitempty"`

	// is_automated means whether this image is automated.
	IsAutomated bool `json:"is_automated,omitempty"`

	// is_official shows if this image is marked official.
	IsOfficial bool `json:"is_official,omitempty"`

	// name represents the name of this image
	Name string `json:"name,omitempty"`

	// star_count refers to the star count of this image.
	StarCount int64 `json:"star_count,omitempty"`
}

SearchResultItem search result item in search results. swagger:model SearchResultItem

func (*SearchResultItem) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResultItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResultItem) Validate

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

Validate validates this search result item

type SnapshotterData

type SnapshotterData struct {

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

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

SnapshotterData Information about a container's snapshotter. swagger:model SnapshotterData

func (*SnapshotterData) MarshalBinary

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

MarshalBinary interface implementation

func (*SnapshotterData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SnapshotterData) Validate

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

Validate validates this snapshotter data

type Status

type Status string

Status The status of the container. For example, "running" or "exited". swagger:model Status

const (

	// StatusCreated captures enum value "created"
	StatusCreated Status = "created"

	// StatusRunning captures enum value "running"
	StatusRunning Status = "running"

	// StatusStopped captures enum value "stopped"
	StatusStopped Status = "stopped"

	// StatusPaused captures enum value "paused"
	StatusPaused Status = "paused"

	// StatusRestarting captures enum value "restarting"
	StatusRestarting Status = "restarting"

	// StatusRemoving captures enum value "removing"
	StatusRemoving Status = "removing"

	// StatusExited captures enum value "exited"
	StatusExited Status = "exited"

	// StatusDead captures enum value "dead"
	StatusDead Status = "dead"
)

func (Status) Validate

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

Validate validates this status

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"`

	// The driver to use for managing cgroups.
	//
	// Enum: [cgroupfs systemd]
	CgroupDriver string `json:"CgroupDriver,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 pouchd has accepted flag --enable-cri and enables cri part.
	//
	CriEnabled bool `json:"CriEnabled,omitempty"`

	// Indicates if the daemon is running in debug-mode / with debug-level logging enabled.
	Debug bool `json:"Debug,omitempty"`

	// default registry can be defined by user.
	//
	DefaultRegistry string `json:"DefaultRegistry,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"`

	// 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 `pouch 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"`

	// 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"`

	// 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.
	//
	IndexServerAddress string `json:"IndexServerAddress,omitempty"`

	// Kernel version of the host.
	// On Linux, this information obtained from `uname`.
	//
	KernelVersion string `json:"KernelVersion,omitempty"`

	// User-defined labels (key/value metadata) as set on the daemon.
	//
	Labels []string `json:"Labels"`

	// List of addresses the pouchd listens on
	ListenAddresses []string `json:"ListenAddresses"`

	// 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"`

	// Indicates if lxcfs is enabled.
	//
	LxcfsEnabled bool `json:"LxcfsEnabled,omitempty"`

	// Total amount of physical memory available on the host, in kilobytes (kB).
	//
	MemTotal int64 `json:"MemTotal,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"`

	// Hostname of the host.
	Name string `json:"Name,omitempty"`

	// Generic type of the operating system of the host, as returned by the
	// Go runtime (`GOOS`).
	//
	// Currently returned value is "linux". 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"`

	// Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS".
	//
	OperatingSystem string `json:"OperatingSystem,omitempty"`

	// Root directory of persistent Pouch state.
	//
	// Defaults to `/var/lib/pouch` on Linux.
	//
	PouchRootDir string `json:"PouchRootDir,omitempty"`

	// registry config
	RegistryConfig *RegistryServiceConfig `json:"RegistryConfig,omitempty"`

	// runc commit
	RuncCommit *Commit `json:"RuncCommit,omitempty"`

	// 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 Pouch 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.
	//
	Runtimes map[string]Runtime `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.
	//
	ServerVersion string `json:"ServerVersion,omitempty"`

	// The list of volume drivers which the pouchd supports
	//
	VolumeDrivers []string `json:"VolumeDrivers"`
}

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 SystemVersion

type SystemVersion struct {

	// Api Version held by daemon
	APIVersion string `json:"ApiVersion,omitempty"`

	// Arch type of underlying hardware
	Arch string `json:"Arch,omitempty"`

	// The time when this binary of daemon is built
	BuildTime string `json:"BuildTime,omitempty"`

	// Commit ID held by the latest commit operation
	GitCommit string `json:"GitCommit,omitempty"`

	// version of Go runtime
	GoVersion string `json:"GoVersion,omitempty"`

	// Operating system kernel version
	KernelVersion string `json:"KernelVersion,omitempty"`

	// Operating system type of underlying system
	Os string `json:"Os,omitempty"`

	// version of Pouch Daemon
	Version string `json:"Version,omitempty"`
}

SystemVersion system version swagger:model SystemVersion

func (*SystemVersion) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemVersion) Validate

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

Validate validates this system version

type ThrottleDevice

type ThrottleDevice struct {

	// Device path
	Path string `json:"Path,omitempty"`

	// Rate
	// Minimum: 0
	Rate uint64 `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 ThrottlingData

type ThrottlingData struct {

	// Number of periods with throttling active.
	Periods uint64 `json:"periods,omitempty"`

	// Number of periods when the container hits its throttling limit.
	ThrottledPeriods uint64 `json:"throttled_periods,omitempty"`

	// Aggregate time the container was throttled for in nanoseconds.
	ThrottledTime uint64 `json:"throttled_time,omitempty"`
}

ThrottlingData ThrottlingData stores CPU throttling stats of one running container. swagger:model ThrottlingData

func (*ThrottlingData) MarshalBinary

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

MarshalBinary interface implementation

func (*ThrottlingData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ThrottlingData) Validate

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

Validate validates this throttling data

type Ulimit

type Ulimit struct {

	// Hard limit
	Hard int64 `json:"Hard,omitempty"`

	// Name of ulimit
	Name string `json:"Name,omitempty"`

	// Soft limit
	Soft int64 `json:"Soft,omitempty"`
}

Ulimit A list of resource limits swagger:model Ulimit

func (*Ulimit) MarshalBinary

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

MarshalBinary interface implementation

func (*Ulimit) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ulimit) Validate

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

Validate validates this ulimit

type UpdateConfig

type UpdateConfig struct {
	Resources

	// update disk quota for container
	DiskQuota map[string]string `json:"DiskQuota,omitempty"`

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

	// List of labels set to container.
	Label []string `json:"Label"`

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

	// update specAnnotation for container
	SpecAnnotation map[string]string `json:"SpecAnnotation,omitempty"`
}

UpdateConfig UpdateConfig holds the mutable attributes of a Container. Those attributes can be updated at runtime. swagger:model UpdateConfig

func (*UpdateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (UpdateConfig) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*UpdateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateConfig) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*UpdateConfig) Validate

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

Validate validates this update config

type VolumeCreateConfig

type VolumeCreateConfig 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, Pouch generates a name.
	Name string `json:"Name,omitempty"`
}

VolumeCreateConfig config used to create a volume swagger:model VolumeCreateConfig

func (*VolumeCreateConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*VolumeCreateConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VolumeCreateConfig) Validate

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

Validate validates this volume create config

type VolumeInfo

type VolumeInfo struct {

	// Date/Time the volume was created.
	CreatedAt string `json:"CreatedAt,omitempty"`

	// Driver is the Driver name used to create the volume.
	Driver string `json:"Driver,omitempty"`

	// Labels is metadata specific to the volume.
	Labels map[string]string `json:"Labels,omitempty"`

	// Mountpoint is the location on disk of the volume.
	Mountpoint string `json:"Mountpoint,omitempty"`

	// Name is the name of the volume.
	Name string `json:"Name,omitempty"`

	// Scope describes the level at which the volume exists
	// (e.g. `global` for cluster-wide or `local` for machine level)
	//
	Scope string `json:"Scope,omitempty"`

	// Status provides low-level status information about the volume.
	Status map[string]interface{} `json:"Status,omitempty"`
}

VolumeInfo Volume represents the configuration of a volume for the container. swagger:model VolumeInfo

func (*VolumeInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*VolumeInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VolumeInfo) Validate

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

Validate validates this volume info

type VolumeListResp

type VolumeListResp struct {

	// List of volumes
	// Required: true
	Volumes []*VolumeInfo `json:"Volumes"`

	// Warnings that occurred when fetching the list of volumes
	// Required: true
	Warnings []string `json:"Warnings"`
}

VolumeListResp volume list resp swagger:model VolumeListResp

func (*VolumeListResp) MarshalBinary

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

MarshalBinary interface implementation

func (*VolumeListResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VolumeListResp) Validate

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

Validate validates this volume list resp

type WeightDevice

type WeightDevice struct {

	// Weight Device
	Path string `json:"Path,omitempty"`

	// weight
	// Minimum: 0
	Weight uint16 `json:"Weight,omitempty"`
}

WeightDevice Weight for BlockIO Device swagger:model WeightDevice

func (*WeightDevice) MarshalBinary

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

MarshalBinary interface implementation

func (*WeightDevice) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WeightDevice) Validate

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

Validate validates this weight device

Source Files

Jump to

Keyboard shortcuts

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