aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities/pods.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-09-07 18:31:23 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-09-08 10:28:42 +0200
commitd10e77e1bcd25306ab8afd4ce7da16eed3c67840 (patch)
treed0f95b1fee3f30b89f5e4d4eb4a9d21a49738b48 /pkg/domain/entities/pods.go
parente46bcd72f8d6528dbafb1ad1b34abeb0177a8b77 (diff)
downloadpodman-d10e77e1bcd25306ab8afd4ce7da16eed3c67840.tar.gz
podman-d10e77e1bcd25306ab8afd4ce7da16eed3c67840.tar.bz2
podman-d10e77e1bcd25306ab8afd4ce7da16eed3c67840.zip
fix podman pod inspect to support multiple pods
Just like the other inspect commands `podman pod inspect p1 p2` should return the json for both. To correctly implement this we follow the container inspect logic, this allows use to reuse the global inspect command. Note: To not break the existing single pod output format for podman pod inspect I added a pod-legacy inspect type. This is only used to make sure we will print the pod as single json and not an array like for the other commands. We cannot use the pod type since podman inspect --type pod did return an array and we should not break that as well. Fixes #15674 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/domain/entities/pods.go')
-rw-r--r--pkg/domain/entities/pods.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go
index b672434d8..55e2fd574 100644
--- a/pkg/domain/entities/pods.go
+++ b/pkg/domain/entities/pods.go
@@ -438,15 +438,6 @@ type PodPSOptions struct {
Sort string
}
-type PodInspectOptions struct {
- Latest bool
-
- // Options for the API.
- NameOrID string
-
- Format string
-}
-
type PodInspectReport struct {
*define.InspectPodData
}