1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- package docker
- type (
- APIHistory struct {
- ID string `json:"Id"`
- Tags []string `json:",omitempty"`
- Created int64
- CreatedBy string `json:",omitempty"`
- Size int64
- }
- APITop struct {
- Titles []string
- Processes [][]string
- }
- APIRmi struct {
- Deleted string `json:",omitempty"`
- Untagged string `json:",omitempty"`
- }
- APIContainers struct {
- ID string `json:"Id"`
- Image string
- Command string
- Created int64
- Status string
- Ports []APIPort
- SizeRw int64
- SizeRootFs int64
- Names []string
- }
- APIContainersOld struct {
- ID string `json:"Id"`
- Image string
- Command string
- Created int64
- Status string
- Ports string
- SizeRw int64
- SizeRootFs int64
- }
- APIID struct {
- ID string `json:"Id"`
- }
- APIRun struct {
- ID string `json:"Id"`
- Warnings []string `json:",omitempty"`
- }
- APIPort struct {
- PrivatePort int64
- PublicPort int64
- Type string
- IP string
- }
- APIWait struct {
- StatusCode int
- }
- APIAuth struct {
- Status string
- }
- APIImageConfig struct {
- ID string `json:"Id"`
- *Config
- }
- APICopy struct {
- Resource string
- HostPath string
- }
- APIContainer struct {
- *Container
- HostConfig *HostConfig
- }
- )
- func (api APIContainers) ToLegacy() *APIContainersOld {
- return &APIContainersOld{
- ID: api.ID,
- Image: api.Image,
- Command: api.Command,
- Created: api.Created,
- Status: api.Status,
- Ports: displayablePorts(api.Ports),
- SizeRw: api.SizeRw,
- SizeRootFs: api.SizeRootFs,
- }
- }
|