-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
103 lines (94 loc) · 1.8 KB
/
types.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
package dockerclient
type ContainerConfig struct {
Hostname string
Domainname string
User string
Memory int
MemorySwap int
CpuShares int
AttachStdin bool
AttachStdout bool
AttachStderr bool
Tty bool
OpenStdin bool
StdinOnce bool
Env []string
Cmd []string
Image string
WorkingDir string
Entrypoint []string
NetworkDisabled bool
}
type HostConfig struct {
Binds []string
ContainerIDFile string
LxcConf []map[string]string
Privileged bool
PortBindings map[string][]PortBinding
Links []string
PublishAllPorts bool
Dns []string
DnsSearch []string
VolumesFrom []string
}
type PortBinding struct {
HostIp string
HostPort string
}
type ContainerInfo struct {
Id string
Create string
Path string
Args []string
Config *ContainerConfig
State struct {
Running bool
Pid int
ExitCode int
StartedAt string
Ghost bool
}
Image string
NetworkSettings struct {
IpAddress string
IpPrefixLen int
Gateway string
Bridge string
Ports map[string][]PortBinding
}
SysInitPath string
ResolvConfPath string
Volumes map[string]string
HostConfig *HostConfig
}
type Port struct {
PrivatePort int
PublicPort int
Type string
}
type Container struct {
Id string
Names []string
Image string
Command string
Created int
Status string
Ports []Port
SizeRw int
SizeRootFs int
}
type Event struct {
Id string
Status string
From string
Time int
}
type Version struct {
Version string
GitCommit string
GoVersion string
}
type RespContainersCreate struct {
Id string
Warnings []string
}