github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/api/types/versions/v1p19/types.go (about)

     1  // Package v1p19 provides specific API types for the API version 1, patch 19.
     2  package v1p19 // import "github.com/demonoid81/moby/api/types/versions/v1p19"
     3  
     4  import (
     5  	"github.com/demonoid81/moby/api/types"
     6  	"github.com/demonoid81/moby/api/types/container"
     7  	"github.com/demonoid81/moby/api/types/versions/v1p20"
     8  	"github.com/docker/go-connections/nat"
     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  	*container.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  }