2013-04-18 09:13:43 +08:00
|
|
|
package docker
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIHistory struct {
|
|
|
|
|
ID string `json:"Id"`
|
2013-04-30 23:04:31 +08:00
|
|
|
Created int64
|
2013-06-01 06:53:57 +08:00
|
|
|
CreatedBy string `json:",omitempty"`
|
2013-04-19 21:24:37 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIImages struct {
|
2013-06-14 18:05:01 +08:00
|
|
|
Repository string `json:",omitempty"`
|
|
|
|
|
Tag string `json:",omitempty"`
|
|
|
|
|
ID string `json:"Id"`
|
|
|
|
|
Created int64
|
|
|
|
|
Size int64
|
|
|
|
|
VirtualSize int64
|
2013-04-19 00:56:22 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIInfo struct {
|
2013-06-01 06:53:57 +08:00
|
|
|
Debug bool
|
2013-04-19 21:24:37 +08:00
|
|
|
Containers int
|
|
|
|
|
Images int
|
2013-06-01 06:53:57 +08:00
|
|
|
NFd int `json:",omitempty"`
|
|
|
|
|
NGoroutines int `json:",omitempty"`
|
|
|
|
|
MemoryLimit bool `json:",omitempty"`
|
|
|
|
|
SwapLimit bool `json:",omitempty"`
|
2013-04-19 21:24:37 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-11 05:05:54 +08:00
|
|
|
type APIRmi struct {
|
2013-05-31 22:37:02 +08:00
|
|
|
Deleted string `json:",omitempty"`
|
|
|
|
|
Untagged string `json:",omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIContainers struct {
|
2013-06-06 00:01:36 +08:00
|
|
|
ID string `json:"Id"`
|
2013-06-14 18:05:01 +08:00
|
|
|
Image string
|
|
|
|
|
Command string
|
|
|
|
|
Created int64
|
|
|
|
|
Status string
|
|
|
|
|
Ports string
|
2013-05-13 21:10:26 +08:00
|
|
|
SizeRw int64
|
|
|
|
|
SizeRootFs int64
|
2013-04-19 21:24:37 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APISearch struct {
|
2013-05-08 02:59:04 +08:00
|
|
|
Name string
|
2013-05-08 02:37:35 +08:00
|
|
|
Description string
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIID struct {
|
|
|
|
|
ID string `json:"Id"`
|
2013-04-24 22:06:03 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIRun struct {
|
|
|
|
|
ID string `json:"Id"`
|
2013-06-01 06:53:57 +08:00
|
|
|
Warnings []string `json:",omitempty"`
|
2013-05-03 00:36:23 +08:00
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIPort struct {
|
2013-04-24 00:20:53 +08:00
|
|
|
Port string
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIVersion struct {
|
2013-06-01 06:53:57 +08:00
|
|
|
Version string
|
|
|
|
|
GitCommit string `json:",omitempty"`
|
|
|
|
|
GoVersion string `json:",omitempty"`
|
2013-04-18 09:13:43 +08:00
|
|
|
}
|
2013-04-24 20:01:40 +08:00
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIWait struct {
|
2013-04-24 20:01:40 +08:00
|
|
|
StatusCode int
|
|
|
|
|
}
|
2013-05-06 19:34:31 +08:00
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIAuth struct {
|
2013-05-06 19:34:31 +08:00
|
|
|
Status string
|
|
|
|
|
}
|
2013-05-20 01:46:24 +08:00
|
|
|
|
2013-06-05 02:00:22 +08:00
|
|
|
type APIImageConfig struct {
|
|
|
|
|
ID string `json:"Id"`
|
2013-05-20 01:46:24 +08:00
|
|
|
*Config
|
|
|
|
|
}
|