From 0a9ec21818151304654085fd86a4b2ed54925e9a Mon Sep 17 00:00:00 2001 From: John Howard Date: Thu, 30 Jul 2015 14:25:15 -0700 Subject: [PATCH] Windows: Top (non-)implementation Signed-off-by: John Howard --- daemon/{top.go => top_unix.go} | 2 ++ daemon/top_windows.go | 11 +++++++++++ 2 files changed, 13 insertions(+) rename daemon/{top.go => top_unix.go} (98%) create mode 100644 daemon/top_windows.go diff --git a/daemon/top.go b/daemon/top_unix.go similarity index 98% rename from daemon/top.go rename to daemon/top_unix.go index 30a7893add..14d884f2c7 100644 --- a/daemon/top.go +++ b/daemon/top_unix.go @@ -1,3 +1,5 @@ +//+build !windows + package daemon import ( diff --git a/daemon/top_windows.go b/daemon/top_windows.go new file mode 100644 index 0000000000..89285f084a --- /dev/null +++ b/daemon/top_windows.go @@ -0,0 +1,11 @@ +package daemon + +import ( + "fmt" + + "github.com/docker/docker/api/types" +) + +func (daemon *Daemon) ContainerTop(name string, psArgs string) (*types.ContainerProcessList, error) { + return nil, fmt.Errorf("Top is not supported on Windows") +}