moby--moby/api_params.go

108 lines
2.0 KiB
Go
Raw Normal View History

package docker
import "encoding/json"
2013-06-04 18:00:22 +00:00
type APIHistory struct {
ID string `json:"Id"`
Tags []string `json:",omitempty"`
Created int64
CreatedBy string `json:",omitempty"`
}
2013-06-04 18:00:22 +00:00
type APIImages struct {
2013-06-14 10:05:01 +00:00
Repository string `json:",omitempty"`
Tag string `json:",omitempty"`
ID string `json:"Id"`
Created int64
Size int64
VirtualSize int64
2013-04-18 16:56:22 +00:00
}
2013-06-04 18:00:22 +00:00
type APIInfo struct {
2013-07-22 18:42:31 +00:00
Debug bool
Containers int
Images int
NFd int `json:",omitempty"`
NGoroutines int `json:",omitempty"`
MemoryLimit bool `json:",omitempty"`
SwapLimit bool `json:",omitempty"`
IPv4Forwarding bool `json:",omitempty"`
2013-07-22 18:42:31 +00:00
LXCVersion string `json:",omitempty"`
NEventsListener int `json:",omitempty"`
KernelVersion string `json:",omitempty"`
IndexServerAddress string `json:",omitempty"`
}
2013-07-01 15:19:42 +00:00
type APITop struct {
2013-07-19 10:06:32 +00:00
Titles []string
Processes [][]string
}
2013-06-10 21:05:54 +00:00
type APIRmi struct {
Deleted string `json:",omitempty"`
Untagged string `json:",omitempty"`
}
2013-06-04 18:00:22 +00:00
type APIContainers struct {
2013-06-05 16:01:36 +00:00
ID string `json:"Id"`
2013-06-14 10:05:01 +00:00
Image string
Command string
Created int64
Status string
Ports []APIPort
2013-05-13 13:10:26 +00:00
SizeRw int64
SizeRootFs int64
}
2013-06-04 18:00:22 +00:00
type APISearch struct {
2013-05-07 18:59:04 +00:00
Name string
2013-05-07 18:37:35 +00:00
Description string
}
2013-06-04 18:00:22 +00:00
type APIID struct {
ID string `json:"Id"`
2013-04-24 14:06:03 +00:00
}
2013-06-04 18:00:22 +00:00
type APIRun struct {
ID string `json:"Id"`
Warnings []string `json:",omitempty"`
2013-05-02 16:36:23 +00:00
}
2013-06-04 18:00:22 +00:00
type APIPort struct {
PrivatePort int64
PublicPort int64
Type string
}
func (port *APIPort) MarshalJSON() ([]byte, error) {
return json.Marshal(map[string]interface{}{
"PrivatePort": port.PrivatePort,
"PublicPort": port.PublicPort,
"Type": port.Type,
})
}
2013-06-04 18:00:22 +00:00
type APIVersion struct {
Version string
GitCommit string `json:",omitempty"`
GoVersion string `json:",omitempty"`
}
2013-06-04 18:00:22 +00:00
type APIWait struct {
StatusCode int
}
2013-05-06 11:34:31 +00:00
2013-06-04 18:00:22 +00:00
type APIAuth struct {
2013-05-06 11:34:31 +00:00
Status string
}
2013-05-19 17:46:24 +00:00
2013-06-04 18:00:22 +00:00
type APIImageConfig struct {
ID string `json:"Id"`
2013-05-19 17:46:24 +00:00
*Config
}
type APICopy struct {
Resource string
HostPath string
}