mirror of
https://github.com/containers/podman.git
synced 2025-10-14 09:45:59 +08:00
add (*Pod).CreateCommand()
Add a method to Pod to easily access its .config.CreateCommand. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user