1// Package v1p19 provides specific API types for the API version 1, patch 19.
2package v1p19 // import "github.com/ory/dockertest/docker/types/versions/v1p19"
3
4import (
5	"github.com/ory/dockertest/docker/types"
6	"github.com/ory/dockertest/docker/types/container"
7	"github.com/ory/dockertest/docker/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.
13type 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.
22type 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}
36