Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Add a Machine Readable State for container #45

Merged
merged 1 commit into from
Jan 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ type Container struct {
SizeRw int64 `json:",omitempty"`
SizeRootFs int64 `json:",omitempty"`
Labels map[string]string
State string
Status string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In moby/moby#18966 code or doc, the order is State after Status.

    Status     string
 +  State      string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true 😝 But I thought it made more sense to make it alphabetically (but Labels is not so... meh.. 😃)

HostConfig struct {
NetworkMode string `json:",omitempty"`
Expand Down