2013-04-17 21:13:43 -04:00
|
|
|
package docker
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIHistory struct {
|
2013-06-18 13:31:07 -04:00
|
|
|
ID string `json:"Id"`
|
|
|
|
Tags []string `json:",omitempty"`
|
2013-04-30 11:04:31 -04:00
|
|
|
Created int64
|
2013-05-31 18:53:57 -04:00
|
|
|
CreatedBy string `json:",omitempty"`
|
2013-04-19 09:24:37 -04:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIImages struct {
|
2013-06-14 06:05:01 -04:00
|
|
|
Repository string `json:",omitempty"`
|
|
|
|
Tag string `json:",omitempty"`
|
|
|
|
ID string `json:"Id"`
|
|
|
|
Created int64
|
|
|
|
Size int64
|
|
|
|
VirtualSize int64
|
2013-04-18 12:56:22 -04:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIInfo struct {
|
2013-07-22 14:42:31 -04:00
|
|
|
Debug bool
|
|
|
|
Containers int
|
|
|
|
Images int
|
|
|
|
NFd int `json:",omitempty"`
|
|
|
|
NGoroutines int `json:",omitempty"`
|
|
|
|
MemoryLimit bool `json:",omitempty"`
|
|
|
|
SwapLimit bool `json:",omitempty"`
|
2013-08-03 18:06:58 -04:00
|
|
|
IPv4Forwarding bool `json:",omitempty"`
|
2013-07-22 14:42:31 -04:00
|
|
|
LXCVersion string `json:",omitempty"`
|
|
|
|
NEventsListener int `json:",omitempty"`
|
|
|
|
KernelVersion string `json:",omitempty"`
|
|
|
|
IndexServerAddress string `json:",omitempty"`
|
2013-04-19 09:24:37 -04:00
|
|
|
}
|
|
|
|
|
2013-07-01 11:19:42 -04:00
|
|
|
type APITop struct {
|
2013-07-19 06:06:32 -04:00
|
|
|
Titles []string
|
|
|
|
Processes [][]string
|
2013-06-28 11:51:58 -04:00
|
|
|
}
|
|
|
|
|
2013-06-10 17:05:54 -04:00
|
|
|
type APIRmi struct {
|
2013-05-31 10:37:02 -04:00
|
|
|
Deleted string `json:",omitempty"`
|
|
|
|
Untagged string `json:",omitempty"`
|
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIContainers struct {
|
2013-06-05 12:01:36 -04:00
|
|
|
ID string `json:"Id"`
|
2013-06-14 06:05:01 -04:00
|
|
|
Image string
|
|
|
|
Command string
|
|
|
|
Created int64
|
|
|
|
Status string
|
2013-08-27 18:20:35 -04:00
|
|
|
Ports []APIPort
|
2013-05-13 09:10:26 -04:00
|
|
|
SizeRw int64
|
|
|
|
SizeRootFs int64
|
2013-10-04 22:25:15 -04:00
|
|
|
Names []string
|
2013-04-19 09:24:37 -04:00
|
|
|
}
|
|
|
|
|
2013-09-04 17:41:44 -04:00
|
|
|
func (self *APIContainers) ToLegacy() APIContainersOld {
|
|
|
|
return APIContainersOld{
|
2013-09-22 20:06:31 -04:00
|
|
|
ID: self.ID,
|
|
|
|
Image: self.Image,
|
|
|
|
Command: self.Command,
|
|
|
|
Created: self.Created,
|
|
|
|
Status: self.Status,
|
|
|
|
Ports: displayablePorts(self.Ports),
|
|
|
|
SizeRw: self.SizeRw,
|
2013-09-04 17:41:44 -04:00
|
|
|
SizeRootFs: self.SizeRootFs,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type APIContainersOld struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
Image string
|
|
|
|
Command string
|
|
|
|
Created int64
|
|
|
|
Status string
|
|
|
|
Ports string
|
|
|
|
SizeRw int64
|
|
|
|
SizeRootFs int64
|
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APISearch struct {
|
2013-05-07 14:59:04 -04:00
|
|
|
Name string
|
2013-05-07 14:37:35 -04:00
|
|
|
Description string
|
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIID struct {
|
|
|
|
ID string `json:"Id"`
|
2013-04-24 10:06:03 -04:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIRun struct {
|
|
|
|
ID string `json:"Id"`
|
2013-05-31 18:53:57 -04:00
|
|
|
Warnings []string `json:",omitempty"`
|
2013-05-02 12:36:23 -04:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIPort struct {
|
2013-08-27 18:20:35 -04:00
|
|
|
PrivatePort int64
|
|
|
|
PublicPort int64
|
|
|
|
Type string
|
2013-10-04 22:25:15 -04:00
|
|
|
IP string
|
2013-04-23 12:20:53 -04:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIVersion struct {
|
2013-05-31 18:53:57 -04:00
|
|
|
Version string
|
|
|
|
GitCommit string `json:",omitempty"`
|
|
|
|
GoVersion string `json:",omitempty"`
|
2013-04-17 21:13:43 -04:00
|
|
|
}
|
2013-04-24 08:01:40 -04:00
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIWait struct {
|
2013-04-24 08:01:40 -04:00
|
|
|
StatusCode int
|
|
|
|
}
|
2013-05-06 07:34:31 -04:00
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIAuth struct {
|
2013-05-06 07:34:31 -04:00
|
|
|
Status string
|
|
|
|
}
|
2013-05-19 13:46:24 -04:00
|
|
|
|
2013-06-04 14:00:22 -04:00
|
|
|
type APIImageConfig struct {
|
|
|
|
ID string `json:"Id"`
|
2013-05-19 13:46:24 -04:00
|
|
|
*Config
|
|
|
|
}
|
2013-07-17 00:07:41 -04:00
|
|
|
|
|
|
|
type APICopy struct {
|
|
|
|
Resource string
|
|
|
|
HostPath string
|
|
|
|
}
|