diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 17:06:25 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 17:08:52 +0200 |
commit | a7318f7364bef0803f901f9723dfb24d93feaa2d (patch) | |
tree | 221eaa00c075ce25af8dc95ddb5e74f7e9e2c960 | |
parent | fdf64f0c66be4569732b830ce60c98f98a7efe64 (diff) | |
download | podman-a7318f7364bef0803f901f9723dfb24d93feaa2d.tar.gz podman-a7318f7364bef0803f901f9723dfb24d93feaa2d.tar.bz2 podman-a7318f7364bef0803f901f9723dfb24d93feaa2d.zip |
pkg, ps: add namespaces methods
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | pkg/domain/entities/container_ps.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go index 709bb58d6..d5159fb85 100644 --- a/pkg/domain/entities/container_ps.go +++ b/pkg/domain/entities/container_ps.go @@ -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 +} |