diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-05 15:34:04 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-06-11 11:01:13 +0200 |
commit | b4a410215ef0d6ebac6e5b61921f2cbe5d9ac8bd (patch) | |
tree | 15a613073a96a299e7303b694dbf8ae06d7d052f /libpod/pod.go | |
parent | 557a9c12111f8bebaf1466bc267ef8cb992d1c19 (diff) | |
download | podman-b4a410215ef0d6ebac6e5b61921f2cbe5d9ac8bd.tar.gz podman-b4a410215ef0d6ebac6e5b61921f2cbe5d9ac8bd.tar.bz2 podman-b4a410215ef0d6ebac6e5b61921f2cbe5d9ac8bd.zip |
add (*Pod).CreateCommand()
Add a method to Pod to easily access its .config.CreateCommand.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/pod.go')
-rw-r--r-- | libpod/pod.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go index 7af78fa07..db87e60f2 100644 --- a/libpod/pod.go +++ b/libpod/pod.go @@ -129,6 +129,12 @@ func (p *Pod) CreatedTime() time.Time { return p.config.CreatedTime } +// CreateCommand returns the os.Args of the process with which the pod has been +// created. +func (p *Pod) CreateCommand() []string { + return p.config.CreateCommand +} + // CgroupParent returns the pod's CGroup parent func (p *Pod) CgroupParent() string { return p.config.CgroupParent |