Browse Source

Merge pull request #15174 from Microsoft/10662-top

Windows: Top (non-)implementation
Phil Estes 10 years ago
parent
commit
044b56e94f
2 changed files with 13 additions and 0 deletions
  1. 2 0
      daemon/top_unix.go
  2. 11 0
      daemon/top_windows.go

+ 2 - 0
daemon/top.go → daemon/top_unix.go

@@ -1,3 +1,5 @@
+//+build !windows
+
 package daemon
 package daemon
 
 
 import (
 import (

+ 11 - 0
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")
+}