From c6277e74331cfe54e2517f0765b7e420228eb60a Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Fri, 20 Mar 2020 23:59:05 +0100 Subject: Add a stub for libpod.Container.Top MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- libpod/container_top_unsupported.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-54-g00ecf