github.com/a4a881d4/docker@v1.9.0-rc2/api/types/versions/v1p19/types.go (about) 1 // Package v1p19 provides specific API types for the API version 1, patch 19. 2 package v1p19 3 4 import ( 5 "github.com/docker/docker/api/types" 6 "github.com/docker/docker/pkg/nat" 7 "github.com/docker/docker/runconfig" 8 ) 9 10 // ContainerJSON is a backcompatibility struct for APIs prior to 1.20. 11 // Note this is not used by the Windows daemon. 12 type ContainerJSON struct { 13 *types.ContainerJSONBase 14 Volumes map[string]string 15 VolumesRW map[string]bool 16 Config *ContainerConfig 17 } 18 19 // ContainerConfig is a backcompatibility struct for APIs prior to 1.20. 20 type ContainerConfig struct { 21 *runconfig.Config 22 23 MacAddress string 24 NetworkDisabled bool 25 ExposedPorts map[nat.Port]struct{} 26 27 // backward compatibility, they now live in HostConfig 28 VolumeDriver string 29 Memory int64 30 MemorySwap int64 31 CPUShares int64 `json:"CpuShares"` 32 CPUSet string `json:"Cpuset"` 33 }