diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-11 17:13:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:13:33 +0100 |
commit | c705d2cefc1929739af2b3c94a5e7e4865285c5e (patch) | |
tree | 2e62b708c40b991b660a6872964b834f0970c2e8 /cmd/podman | |
parent | 27e42027f03287d7ca421351ea382302f7178324 (diff) | |
parent | ddffc865f34fee7aa390869e7a0f58f688cee8a8 (diff) | |
download | podman-c705d2cefc1929739af2b3c94a5e7e4865285c5e.tar.gz podman-c705d2cefc1929739af2b3c94a5e7e4865285c5e.tar.bz2 podman-c705d2cefc1929739af2b3c94a5e7e4865285c5e.zip |
Merge pull request #5159 from baude/apiv2cockpit1
Rewire ListContainers for APIv2 libpod
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/shared/container.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/shared/container.go b/cmd/podman/shared/container.go index 9459247ed..ff3846e70 100644 --- a/cmd/podman/shared/container.go +++ b/cmd/podman/shared/container.go @@ -640,6 +640,11 @@ func GetNamespaces(pid int) *Namespace { } } +// GetNamespaceInfo is an exported wrapper for getNamespaceInfo +func GetNamespaceInfo(path string) (string, error) { + return getNamespaceInfo(path) +} + func getNamespaceInfo(path string) (string, error) { val, err := os.Readlink(path) if err != nil { |