summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorLuap99 <paul.holzinger@web.de>2020-05-21 17:36:41 +0200
committerLuap99 <paul.holzinger@web.de>2020-05-22 18:38:39 +0200
commite704f1362abc416786076a932d8e2ca930b9fa2e (patch)
tree97fe00322c0fc8023451ff5334b9867924712d5f /pkg/domain/entities
parent72e880351a88ae54b69046ab14a9a4a52c51c78b (diff)
downloadpodman-e704f1362abc416786076a932d8e2ca930b9fa2e.tar.gz
podman-e704f1362abc416786076a932d8e2ca930b9fa2e.tar.bz2
podman-e704f1362abc416786076a932d8e2ca930b9fa2e.zip
Added new flags to 'podman generate systemd' to change the unit name prefix
--container-prefix <string> - default 'container' Systemd unit name prefix for containers --pod-prefix <string> - default 'pod' Systemd unit name prefix for pods --separator <string> - default '-' Systemd unit name seperator between name/id and prefix Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/generate.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/domain/entities/generate.go b/pkg/domain/entities/generate.go
index edd217615..68a42d897 100644
--- a/pkg/domain/entities/generate.go
+++ b/pkg/domain/entities/generate.go
@@ -14,6 +14,12 @@ type GenerateSystemdOptions struct {
RestartPolicy string
// StopTimeout - time when stopping the container.
StopTimeout *uint
+ // ContainerPrefix - systemd unit name prefix for containers
+ ContainerPrefix string
+ // PodPrefix - systemd unit name prefix for pods
+ PodPrefix string
+ // Separator - systemd unit name seperator between name/id and prefix
+ Separator string
}
// GenerateSystemdReport