github.com/akashshinde/docker@v1.9.1/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/api/types/versions/v1p20" 7 "github.com/docker/docker/pkg/nat" 8 "github.com/docker/docker/runconfig" 9 ) 10 11 // ContainerJSON is a backcompatibility struct for APIs prior to 1.20. 12 // Note this is not used by the Windows daemon. 13 type ContainerJSON struct { 14 *types.ContainerJSONBase 15 Volumes map[string]string 16 VolumesRW map[string]bool 17 Config *ContainerConfig 18 NetworkSettings *v1p20.NetworkSettings 19 } 20 21 // ContainerConfig is a backcompatibility struct for APIs prior to 1.20. 22 type ContainerConfig struct { 23 *runconfig.Config 24 25 MacAddress string 26 NetworkDisabled bool 27 ExposedPorts map[nat.Port]struct{} 28 29 // backward compatibility, they now live in HostConfig 30 VolumeDriver string 31 Memory int64 32 MemorySwap int64 33 CPUShares int64 `json:"CpuShares"` 34 CPUSet string `json:"Cpuset"` 35 }