summaryrefslogtreecommitdiff
path: root/cmd/podman/shared
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-11 17:13:33 +0100
committerGitHub <noreply@github.com>2020-02-11 17:13:33 +0100
commitc705d2cefc1929739af2b3c94a5e7e4865285c5e (patch)
tree2e62b708c40b991b660a6872964b834f0970c2e8 /cmd/podman/shared
parent27e42027f03287d7ca421351ea382302f7178324 (diff)
parentddffc865f34fee7aa390869e7a0f58f688cee8a8 (diff)
downloadpodman-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/shared')
-rw-r--r--cmd/podman/shared/container.go5
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 {