summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/generate.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-29 11:19:15 +0200
committerGitHub <noreply@github.com>2020-04-29 11:19:15 +0200
commit62a4befe040944c7c4883fed6a70f691aadb440c (patch)
tree21c19e43317c3697ff11efe730fda15144b606d6 /pkg/domain/entities/generate.go
parent4e21d09f98d3b6af37f2d6118cd8914674b56ab1 (diff)
parentb2414b580e236e011d60028e645ab41096035ee3 (diff)
downloadpodman-62a4befe040944c7c4883fed6a70f691aadb440c.tar.gz
podman-62a4befe040944c7c4883fed6a70f691aadb440c.tar.bz2
podman-62a4befe040944c7c4883fed6a70f691aadb440c.zip
Merge pull request #5998 from vrothberg/generate-systemd
generate systemd
Diffstat (limited to 'pkg/domain/entities/generate.go')
-rw-r--r--pkg/domain/entities/generate.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/domain/entities/generate.go b/pkg/domain/entities/generate.go
new file mode 100644
index 000000000..6d65b52f8
--- /dev/null
+++ b/pkg/domain/entities/generate.go
@@ -0,0 +1,22 @@
+package entities
+
+// GenerateSystemdOptions control the generation of systemd unit files.
+type GenerateSystemdOptions struct {
+ // Files - generate files instead of printing to stdout.
+ Files bool
+ // Name - use container/pod name instead of its ID.
+ Name bool
+ // New - create a new container instead of starting a new one.
+ New bool
+ // RestartPolicy - systemd restart policy.
+ RestartPolicy string
+ // StopTimeout - time when stopping the container.
+ StopTimeout *uint
+}
+
+// GenerateSystemdReport
+type GenerateSystemdReport struct {
+ // Output of the generate process. Either the generated files or their
+ // entire content.
+ Output string
+}