aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-08-08 18:35:21 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-08-11 13:47:54 +0800
commit6ebd257245a611246bb3ce9c6712c5eb19a9efb4 (patch)
tree737a742e1328cc08d91e54956a6306212caada28 /pkg/domain/entities
parentdf0ad51075102c49d170bfeb77085b3c9c251ed6 (diff)
downloadpodman-6ebd257245a611246bb3ce9c6712c5eb19a9efb4.tar.gz
podman-6ebd257245a611246bb3ce9c6712c5eb19a9efb4.tar.bz2
podman-6ebd257245a611246bb3ce9c6712c5eb19a9efb4.zip
Add the Status field in the ps --format=json
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/container_ps.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go
index 50dd4933b..ed40a37ab 100644
--- a/pkg/domain/entities/container_ps.go
+++ b/pkg/domain/entities/container_ps.go
@@ -56,6 +56,8 @@ type ListContainer struct {
StartedAt int64
// State of container
State string
+ // Status is a human-readable approximation of a duration for json output
+ Status string
}
// ListContainer Namespaces contains the identifiers of the container's Linux namespaces