-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_config.go
128 lines (127 loc) · 4.65 KB
/
container_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package main
type ContainerConfig struct {
Hostname string `json:"Hostname"`
Domainname string `json:"Domainname"`
User string `json:"User"`
AttachStdin bool `json:"AttachStdin"`
AttachStdout bool `json:"AttachStdout"`
AttachStderr bool `json:"AttachStderr"`
Tty bool `json:"Tty"`
OpenStdin bool `json:"OpenStdin"`
StdinOnce bool `json:"StdinOnce"`
Env []string `json:"Env"`
Cmd []string `json:"Cmd"`
Entrypoint string `json:"Entrypoint"`
Image string `json:"Image"`
Labels struct {
ComExampleVendor string `json:"com.example.vendor"`
ComExampleLicense string `json:"com.example.license"`
ComExampleVersion string `json:"com.example.version"`
} `json:"Labels"`
Volumes struct {
VolumesData struct {
} `json:"/volumes/data"`
} `json:"Volumes"`
WorkingDir string `json:"WorkingDir"`
NetworkDisabled bool `json:"NetworkDisabled"`
MacAddress string `json:"MacAddress"`
ExposedPorts struct {
Two2TCP struct {
} `json:"22/tcp"`
} `json:"ExposedPorts"`
StopSignal string `json:"StopSignal"`
StopTimeout int `json:"StopTimeout"`
HostConfig struct {
Binds []string `json:"Binds"`
Links []string `json:"Links"`
Memory int `json:"Memory"`
MemorySwap int `json:"MemorySwap"`
MemoryReservation int `json:"MemoryReservation"`
KernelMemory int `json:"KernelMemory"`
NanoCpus int `json:"NanoCpus"`
CPUPercent int `json:"CpuPercent"`
CPUShares int `json:"CpuShares"`
CPUPeriod int `json:"CpuPeriod"`
CPURealtimePeriod int `json:"CpuRealtimePeriod"`
CPURealtimeRuntime int `json:"CpuRealtimeRuntime"`
CPUQuota int `json:"CpuQuota"`
CpusetCpus string `json:"CpusetCpus"`
CpusetMems string `json:"CpusetMems"`
MaximumIOps int `json:"MaximumIOps"`
MaximumIOBps int `json:"MaximumIOBps"`
BlkioWeight int `json:"BlkioWeight"`
BlkioWeightDevice []struct {
} `json:"BlkioWeightDevice"`
BlkioDeviceReadBps []struct {
} `json:"BlkioDeviceReadBps"`
BlkioDeviceReadIOps []struct {
} `json:"BlkioDeviceReadIOps"`
BlkioDeviceWriteBps []struct {
} `json:"BlkioDeviceWriteBps"`
BlkioDeviceWriteIOps []struct {
} `json:"BlkioDeviceWriteIOps"`
DeviceRequests []struct {
Driver string `json:"Driver"`
Count int `json:"Count"`
DeviceIDs []string `json:"DeviceIDs"`
Capabilities [][]string `json:"Capabilities"`
Options struct {
Property1 string `json:"property1"`
Property2 string `json:"property2"`
} `json:"Options"`
} `json:"DeviceRequests"`
MemorySwappiness int `json:"MemorySwappiness"`
OomKillDisable bool `json:"OomKillDisable"`
OomScoreAdj int `json:"OomScoreAdj"`
PidMode string `json:"PidMode"`
PidsLimit int `json:"PidsLimit"`
PortBindings struct {
Two2TCP []struct {
HostPort string `json:"HostPort"`
} `json:"22/tcp"`
} `json:"PortBindings"`
PublishAllPorts bool `json:"PublishAllPorts"`
Privileged bool `json:"Privileged"`
ReadonlyRootfs bool `json:"ReadonlyRootfs"`
DNS []string `json:"Dns"`
DNSOptions []string `json:"DnsOptions"`
DNSSearch []string `json:"DnsSearch"`
VolumesFrom []string `json:"VolumesFrom"`
CapAdd []string `json:"CapAdd"`
CapDrop []string `json:"CapDrop"`
GroupAdd []string `json:"GroupAdd"`
RestartPolicy struct {
Name string `json:"Name"`
MaximumRetryCount int `json:"MaximumRetryCount"`
} `json:"RestartPolicy"`
AutoRemove bool `json:"AutoRemove"`
NetworkMode string `json:"NetworkMode"`
Devices []interface{} `json:"Devices"`
Ulimits []struct {
} `json:"Ulimits"`
LogConfig struct {
Type string `json:"Type"`
Config struct {
} `json:"Config"`
} `json:"LogConfig"`
SecurityOpt []interface{} `json:"SecurityOpt"`
StorageOpt struct {
} `json:"StorageOpt"`
CgroupParent string `json:"CgroupParent"`
VolumeDriver string `json:"VolumeDriver"`
ShmSize int `json:"ShmSize"`
} `json:"HostConfig"`
NetworkingConfig struct {
EndpointsConfig struct {
IsolatedNw struct {
IPAMConfig struct {
IPv4Address string `json:"IPv4Address"`
IPv6Address string `json:"IPv6Address"`
LinkLocalIPs []string `json:"LinkLocalIPs"`
} `json:"IPAMConfig"`
Links []string `json:"Links"`
Aliases []string `json:"Aliases"`
} `json:"isolated_nw"`
} `json:"EndpointsConfig"`
} `json:"NetworkingConfig"`
}