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