github.com/a4a881d4/docker@v1.9.0-rc2/api/types/versions/v1p20/types.go (about) 1 // Package v1p20 provides specific API types for the API version 1, patch 20. 2 package v1p20 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 the API 1.20 11 type ContainerJSON struct { 12 *types.ContainerJSONBase 13 Mounts []types.MountPoint 14 Config *ContainerConfig 15 } 16 17 // ContainerConfig is a backcompatibility struct used in ContainerJSON for the API 1.20 18 type ContainerConfig struct { 19 *runconfig.Config 20 21 MacAddress string 22 NetworkDisabled bool 23 ExposedPorts map[nat.Port]struct{} 24 25 // backward compatibility, they now live in HostConfig 26 VolumeDriver string 27 } 28 29 // StatsJSON is a backcompatibility struct used in Stats for API prior to 1.21 30 type StatsJSON struct { 31 types.Stats 32 Network types.NetworkStats `json:"network,omitempty"` 33 }