From 1b88927c2cf1db7b6530748d67528b5209d93b42 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 12 Aug 2022 10:51:48 +0100 Subject: libpod: Add stubs for non-linux builds Note: this makes info.go linux-only since it mixes linux-specific and generic code. This should be addressed in a separate refactoring PR. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson --- libpod/container_top_unsupported.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libpod/container_top_unsupported.go (limited to 'libpod/container_top_unsupported.go') diff --git a/libpod/container_top_unsupported.go b/libpod/container_top_unsupported.go new file mode 100644 index 000000000..a8d9b970b --- /dev/null +++ b/libpod/container_top_unsupported.go @@ -0,0 +1,14 @@ +//go:build !linux +// +build !linux + +package libpod + +import ( + "errors" +) + +// 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, errors.New("not implemented (*Container) Top") +} -- cgit v1.2.3-54-g00ecf