summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorSujil02 <sushah@redhat.com>2020-02-24 17:07:11 -0500
committerSujil02 <sushah@redhat.com>2020-02-28 11:51:02 -0500
commitbbda410526852f608999f6a03c6a5c9096d96ead (patch)
tree2bc97928bf65c694f6d779cb45c6d1bbe050d064 /libpod/pod.go
parentafd5cbff1e147bdad200b47fb2bd0992684c7fd4 (diff)
downloadpodman-bbda410526852f608999f6a03c6a5c9096d96ead.tar.gz
podman-bbda410526852f608999f6a03c6a5c9096d96ead.tar.bz2
podman-bbda410526852f608999f6a03c6a5c9096d96ead.zip
Update pod bindings and Add test to validate prune pod apiv2 binding.
Modify the pod inspect bindings to hold current pod status. Includes test to validate on pod status and added test to check no or few pods are pruned,if the pods are in exited state. Signed-off-by: Sujil02 <sushah@redhat.com>
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 1b4c06c9d..4cdeb1033 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -88,6 +88,7 @@ type PodInspect struct {
type PodInspectState struct {
CgroupPath string `json:"cgroupPath"`
InfraContainerID string `json:"infraContainerID"`
+ Status string `json:"status"`
}
// PodContainerInfo keeps information on a container in a pod