mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-26 18:27:53 +00:00
pkg, ps: add namespaces methods
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
fdf64f0c66
commit
a7318f7364
1 changed files with 28 additions and 0 deletions
|
|
@ -159,3 +159,31 @@ func SortPsOutput(sortBy string, psOutput SortListContainers) (SortListContainer
|
|||
}
|
||||
return psOutput, nil
|
||||
}
|
||||
|
||||
func (l ListContainer) CGROUPNS() string {
|
||||
return l.Namespaces.Cgroup
|
||||
}
|
||||
|
||||
func (l ListContainer) IPC() string {
|
||||
return l.Namespaces.IPC
|
||||
}
|
||||
|
||||
func (l ListContainer) MNT() string {
|
||||
return l.Namespaces.MNT
|
||||
}
|
||||
|
||||
func (l ListContainer) NET() string {
|
||||
return l.Namespaces.NET
|
||||
}
|
||||
|
||||
func (l ListContainer) PIDNS() string {
|
||||
return l.Namespaces.PIDNS
|
||||
}
|
||||
|
||||
func (l ListContainer) USERNS() string {
|
||||
return l.Namespaces.User
|
||||
}
|
||||
|
||||
func (l ListContainer) UTS() string {
|
||||
return l.Namespaces.UTS
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue