summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-11 04:22:30 -0400
committerGitHub <noreply@github.com>2020-08-11 04:22:30 -0400
commita90ae00df1c2be0f3d46d4e7cd292599c93ded0f (patch)
tree3d7f7c2915d3420c124cf27114d63291c391f064 /pkg/domain
parent92b088b4a52a14126c8af2870b4b587abd49f7cb (diff)
parent6ebd257245a611246bb3ce9c6712c5eb19a9efb4 (diff)
downloadpodman-a90ae00df1c2be0f3d46d4e7cd292599c93ded0f.tar.gz
podman-a90ae00df1c2be0f3d46d4e7cd292599c93ded0f.tar.bz2
podman-a90ae00df1c2be0f3d46d4e7cd292599c93ded0f.zip
Merge pull request #7261 from zhangguanzhang/ps-format-add-field
Add the `Status` field in the ps --format=json
Diffstat (limited to 'pkg/domain')
-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