mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-19 08:41:02 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
35 lines
1,007 B
Go
35 lines
1,007 B
Go
// Package v1p19 provides specific API types for the API version 1, patch 19.
|
|
package v1p19
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/api/types/versions/v1p20"
|
|
"github.com/docker/go-connections/nat"
|
|
)
|
|
|
|
// ContainerJSON is a backcompatibility struct for APIs prior to 1.20.
|
|
// Note this is not used by the Windows daemon.
|
|
type ContainerJSON struct {
|
|
*types.ContainerJSONBase
|
|
Volumes map[string]string
|
|
VolumesRW map[string]bool
|
|
Config *ContainerConfig
|
|
NetworkSettings *v1p20.NetworkSettings
|
|
}
|
|
|
|
// ContainerConfig is a backcompatibility struct for APIs prior to 1.20.
|
|
type ContainerConfig struct {
|
|
*container.Config
|
|
|
|
MacAddress string
|
|
NetworkDisabled bool
|
|
ExposedPorts map[nat.Port]struct{}
|
|
|
|
// backward compatibility, they now live in HostConfig
|
|
VolumeDriver string
|
|
Memory int64
|
|
MemorySwap int64
|
|
CPUShares int64 `json:"CpuShares"`
|
|
CPUSet string `json:"Cpuset"`
|
|
}
|