2015-02-24 14:12:47 -05:00
|
|
|
package types
|
|
|
|
|
|
|
|
// ContainerCreateResponse contains the information returned to a client on the
|
|
|
|
// creation of a new container.
|
|
|
|
type ContainerCreateResponse struct {
|
|
|
|
// ID is the ID of the created container.
|
|
|
|
ID string `json:"Id"`
|
|
|
|
|
|
|
|
// Warnings are any warnings encountered during the creation of the container.
|
|
|
|
Warnings []string `json:"Warnings"`
|
|
|
|
}
|
2015-03-23 17:03:54 -04:00
|
|
|
|
|
|
|
// POST /containers/{name:.*}/exec
|
|
|
|
type ContainerExecCreateResponse struct {
|
|
|
|
// ID is the exec ID.
|
|
|
|
ID string `json:"Id"`
|
|
|
|
|
|
|
|
// Warnings are any warnings encountered during the execution of the command.
|
|
|
|
Warnings []string `json:"Warnings"`
|
|
|
|
}
|
2015-03-23 18:32:50 -04:00
|
|
|
|
|
|
|
// POST /auth
|
|
|
|
type AuthResponse struct {
|
|
|
|
// Status is the authentication status
|
|
|
|
Status string `json:"Status"`
|
|
|
|
}
|
2015-03-25 23:01:14 -04:00
|
|
|
|
2015-03-26 00:22:45 -04:00
|
|
|
// POST "/containers/"+containerID+"/wait"
|
2015-03-25 23:01:14 -04:00
|
|
|
type ContainerWaitResponse struct {
|
|
|
|
// StatusCode is the status code of the wait job
|
|
|
|
StatusCode int `json:"StatusCode"`
|
|
|
|
}
|
2015-03-28 12:39:24 -04:00
|
|
|
|
|
|
|
// POST "/commit?container="+containerID
|
|
|
|
type ContainerCommitResponse struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
}
|
2015-04-02 18:52:34 -04:00
|
|
|
|
|
|
|
// GET "/containers/{name:.*}/changes"
|
|
|
|
type ContainerChange struct {
|
|
|
|
Kind int
|
|
|
|
Path string
|
|
|
|
}
|
2015-04-03 11:31:30 -04:00
|
|
|
|
|
|
|
// GET "/images/{name:.*}/history"
|
|
|
|
type ImageHistory struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
Created int64
|
|
|
|
CreatedBy string
|
|
|
|
Tags []string
|
|
|
|
Size int64
|
|
|
|
}
|
|
|
|
|
|
|
|
// DELETE "/images/{name:.*}"
|
|
|
|
type ImageDelete struct {
|
|
|
|
Untagged string `json:",omitempty"`
|
|
|
|
Deleted string `json:",omitempty"`
|
|
|
|
}
|
2015-04-03 20:39:06 -04:00
|
|
|
|
|
|
|
// GET "/images/json"
|
|
|
|
type Image struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
ParentId string
|
|
|
|
RepoTags []string
|
|
|
|
RepoDigests []string
|
|
|
|
Created int
|
|
|
|
Size int
|
|
|
|
VirtualSize int
|
|
|
|
Labels map[string]string
|
|
|
|
}
|
|
|
|
|
2015-04-07 21:57:54 -04:00
|
|
|
type LegacyImage struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
Repository string
|
|
|
|
Tag string
|
|
|
|
Created int
|
|
|
|
Size int
|
|
|
|
VirtualSize int
|
|
|
|
}
|
|
|
|
|
2015-04-03 20:39:06 -04:00
|
|
|
// GET "/containers/json"
|
|
|
|
type Port struct {
|
|
|
|
IP string
|
|
|
|
PrivatePort int
|
|
|
|
PublicPort int
|
|
|
|
Type string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Container struct {
|
|
|
|
ID string `json:"Id"`
|
2015-04-08 15:05:12 -04:00
|
|
|
Names []string `json:",omitempty"`
|
|
|
|
Image string `json:",omitempty"`
|
|
|
|
Command string `json:",omitempty"`
|
|
|
|
Created int `json:",omitempty"`
|
|
|
|
Ports []Port `json:",omitempty"`
|
|
|
|
SizeRw int `json:",omitempty"`
|
|
|
|
SizeRootFs int `json:",omitempty"`
|
|
|
|
Labels map[string]string `json:",omitempty"`
|
|
|
|
Status string `json:",omitempty"`
|
2015-04-03 20:39:06 -04:00
|
|
|
}
|
2015-04-09 16:05:31 -04:00
|
|
|
|
|
|
|
// POST "/containers/"+containerID+"/copy"
|
|
|
|
type CopyConfig struct {
|
|
|
|
Resource string
|
|
|
|
}
|