summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/containers.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-27 13:55:17 +0100
committerGitHub <noreply@github.com>2020-03-27 13:55:17 +0100
commit7007680bfdee8c36b855a97ee45d268b24bde7d3 (patch)
tree8680b8ca2e099234e83816c1c71a64e28acc8156 /pkg/domain/entities/containers.go
parent340312cc1b4487f6f23cd6b671e7ed71a8421eb8 (diff)
parent500a2d508bc8babe8234f259ab51d4908daf9378 (diff)
downloadpodman-7007680bfdee8c36b855a97ee45d268b24bde7d3.tar.gz
podman-7007680bfdee8c36b855a97ee45d268b24bde7d3.tar.bz2
podman-7007680bfdee8c36b855a97ee45d268b24bde7d3.zip
Merge pull request #5618 from vrothberg/v2-top
podmanV2: implement top
Diffstat (limited to 'pkg/domain/entities/containers.go')
-rw-r--r--pkg/domain/entities/containers.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go
index 545452948..fbc0247ab 100644
--- a/pkg/domain/entities/containers.go
+++ b/pkg/domain/entities/containers.go
@@ -22,6 +22,11 @@ type BoolReport struct {
Value bool
}
+// StringSliceReport wraps a string slice.
+type StringSliceReport struct {
+ Value []string
+}
+
type PauseUnPauseOptions struct {
All bool
}
@@ -44,6 +49,16 @@ type StopReport struct {
Id string
}
+type TopOptions struct {
+ // CLI flags.
+ ListDescriptors bool
+ Latest bool
+
+ // Options for the API.
+ Descriptors []string
+ NameOrID string
+}
+
type KillOptions struct {
All bool
Latest bool