summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorSujil02 <sushah@redhat.com>2020-04-20 06:42:51 -0400
committerSujil02 <sushah@redhat.com>2020-04-20 07:05:25 -0400
commit838df56bcf960edb81d7a26250278298d4997e55 (patch)
treefce01860246e6bcff91ce773e3fd39c198956331 /libpod/define
parente4e42b28dfef0ffd12f2087048dec61f9cb03976 (diff)
downloadpodman-838df56bcf960edb81d7a26250278298d4997e55.tar.gz
podman-838df56bcf960edb81d7a26250278298d4997e55.tar.bz2
podman-838df56bcf960edb81d7a26250278298d4997e55.zip
Update pod inspect report to hold current pod status.
Added status field in pod inspect report. Fixed pod tests to use it. Signed-off-by: Sujil02 <sushah@redhat.com>
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