summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-03-20 23:59:05 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-03-21 00:21:59 +0100
commitc6277e74331cfe54e2517f0765b7e420228eb60a (patch)
treeecd53b5411a1fffbcd8a7aa8c07d1bd64832179b
parentbdfe8e699e4239b1d5443ae072ef69e9cdf28c73 (diff)
downloadpodman-c6277e74331cfe54e2517f0765b7e420228eb60a.tar.gz
podman-c6277e74331cfe54e2517f0765b7e420228eb60a.tar.bz2
podman-c6277e74331cfe54e2517f0765b7e420228eb60a.zip
Add a stub for libpod.Container.Top
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r--libpod/container_top_unsupported.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/container_top_unsupported.go b/libpod/container_top_unsupported.go
index 382c98b54..12f6cbb6c 100644
--- a/libpod/container_top_unsupported.go
+++ b/libpod/container_top_unsupported.go
@@ -4,6 +4,12 @@ package libpod
import "github.com/containers/libpod/libpod/define"
+// Top gathers statistics about the running processes in a container. It returns a
+// []string for output
+func (c *Container) Top(descriptors []string) ([]string, error) {
+ return nil, define.ErrNotImplemented
+}
+
// GetContainerPidInformation returns process-related data of all processes in
// the container. The output data can be controlled via the `descriptors`
// argument which expects format descriptors and supports all AIXformat