summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-20 10:16:19 -0400
committerGitHub <noreply@github.com>2020-04-20 10:16:19 -0400
commitbd711358525b09ebc4cb49094a674700b87f7ec0 (patch)
tree4795a0bc656fb8e36121438fcac2c379cb8ed3dd /libpod/define
parent02c2fbc4cd72524dfa65ba36bddfd5c4076a9512 (diff)
parent838df56bcf960edb81d7a26250278298d4997e55 (diff)
downloadpodman-bd711358525b09ebc4cb49094a674700b87f7ec0.tar.gz
podman-bd711358525b09ebc4cb49094a674700b87f7ec0.tar.bz2
podman-bd711358525b09ebc4cb49094a674700b87f7ec0.zip
Merge pull request #5890 from sujil02/v2-pod-inspect-fix
Update pod inspect report to hold current pod status.
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/pod_inspect.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/pod_inspect.go b/libpod/define/pod_inspect.go
index 8558c149b..26fd2cab4 100644
--- a/libpod/define/pod_inspect.go
+++ b/libpod/define/pod_inspect.go
@@ -18,6 +18,8 @@ type InspectPodData struct {
Namespace string `json:"Namespace,omitempty"`
// Created is the time when the pod was created.
Created time.Time
+ // State represents the current state of the pod.
+ State string `json:"State"`
// Hostname is the hostname that the pod will set.
Hostname string
// Labels is a set of key-value labels that have been applied to the