summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/containers.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-05 15:52:59 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-06 15:23:04 -0500
commit1bfb96b54010b048e9bea155a75d150f4bf8853c (patch)
treeb4eedb293bef91f2416164de76d93b1e37dd7481 /pkg/domain/entities/containers.go
parent843fa25890199c04b8419833d39bdedf4ead391c (diff)
downloadpodman-1bfb96b54010b048e9bea155a75d150f4bf8853c.tar.gz
podman-1bfb96b54010b048e9bea155a75d150f4bf8853c.tar.bz2
podman-1bfb96b54010b048e9bea155a75d150f4bf8853c.zip
v2podman run
add the ability to run a container Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/entities/containers.go')
-rw-r--r--pkg/domain/entities/containers.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go
index 4f94e009f..5d302058b 100644
--- a/pkg/domain/entities/containers.go
+++ b/pkg/domain/entities/containers.go
@@ -6,6 +6,7 @@ import (
"time"
"github.com/containers/libpod/libpod/define"
+ "github.com/containers/libpod/pkg/specgen"
)
type WaitOptions struct {
@@ -224,3 +225,23 @@ type ContainerListOptions struct {
Sync bool
Watch uint
}
+
+// ContainerRunOptions describes the options needed
+// to run a container from the CLI
+type ContainerRunOptions struct {
+ Detach bool
+ DetachKeys string
+ ErrorStream *os.File
+ InputStream *os.File
+ OutputStream *os.File
+ Rm bool
+ SigProxy bool
+ Spec *specgen.SpecGenerator
+}
+
+// ContainerRunReport describes the results of running
+//a container
+type ContainerRunReport struct {
+ ExitCode int
+ Id string
+}