aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities/play.go
diff options
context:
space:
mode:
authortheunrealgeek <theunrealgeek@gmail.com>2020-05-23 20:47:30 -0700
committertheunrealgeek <theunrealgeek@gmail.com>2020-06-02 20:33:16 -0700
commit478f296fb345ce9edc707aa4bcd588f8ffd55bb8 (patch)
tree5d05a272844010dca9b3f3acff6fc82528f1c349 /pkg/domain/entities/play.go
parentce7a9f03146da33007656ded64be3148d6ec8d77 (diff)
downloadpodman-478f296fb345ce9edc707aa4bcd588f8ffd55bb8.tar.gz
podman-478f296fb345ce9edc707aa4bcd588f8ffd55bb8.tar.bz2
podman-478f296fb345ce9edc707aa4bcd588f8ffd55bb8.zip
Modify PlayKubeReport to preserve pod->container mapping
Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com>
Diffstat (limited to 'pkg/domain/entities/play.go')
-rw-r--r--pkg/domain/entities/play.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkg/domain/entities/play.go b/pkg/domain/entities/play.go
index fff86daf9..58602d3f9 100644
--- a/pkg/domain/entities/play.go
+++ b/pkg/domain/entities/play.go
@@ -26,12 +26,17 @@ type PlayKubeOptions struct {
SeccompProfileRoot string
}
-// PlayKubeReport contains the results of running play kube.
-type PlayKubeReport struct {
- // Pods - the IDs of the created pods.
- Pods []string
+// PlayKubePods represents a single pod and associated containers created by play kube
+type PlayKubePod struct {
+ ID string
// Containers - the IDs of the containers running in the created pod.
Containers []string
// Logs - non-fatal erros and log messages while processing.
Logs []string
}
+
+// PlayKubeReport contains the results of running play kube.
+type PlayKubeReport struct {
+ // Pods - pods created by play kube.
+ Pods []PlayKubePod
+}