瀏覽代碼

libcontainerd/local: fix GoDoc

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 4 年之前
父節點
當前提交
83ec46a7e6
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      libcontainerd/local/local_windows.go

+ 4 - 4
libcontainerd/local/local_windows.go

@@ -687,7 +687,7 @@ func (c *client) Exec(ctx context.Context, containerID, processID string, spec *
 	return pid, nil
 	return pid, nil
 }
 }
 
 
-// Signal handles `docker stop` on Windows. While Linux has support for
+// SignalProcess handles `docker stop` on Windows. While Linux has support for
 // the full range of signals, signals aren't really implemented on Windows.
 // the full range of signals, signals aren't really implemented on Windows.
 // We fake supporting regular stop and -9 to force kill.
 // We fake supporting regular stop and -9 to force kill.
 func (c *client) SignalProcess(_ context.Context, containerID, processID string, signal int) error {
 func (c *client) SignalProcess(_ context.Context, containerID, processID string, signal int) error {
@@ -731,7 +731,7 @@ func (c *client) SignalProcess(_ context.Context, containerID, processID string,
 	return nil
 	return nil
 }
 }
 
 
-// Resize handles a CLI event to resize an interactive docker run or docker
+// ResizeTerminal handles a CLI event to resize an interactive docker run or docker
 // exec window.
 // exec window.
 func (c *client) ResizeTerminal(_ context.Context, containerID, processID string, width, height int) error {
 func (c *client) ResizeTerminal(_ context.Context, containerID, processID string, width, height int) error {
 	_, p, err := c.getProcess(containerID, processID)
 	_, p, err := c.getProcess(containerID, processID)
@@ -888,8 +888,8 @@ func (c *client) Restore(ctx context.Context, id string, attachStdio libcontaine
 	}, nil
 	}, nil
 }
 }
 
 
-// GetPidsForContainer returns a list of process IDs running in a container.
-// Not used on Windows.
+// ListPids returns a list of process IDs running in a container. It is not
+// implemented on Windows.
 func (c *client) ListPids(_ context.Context, _ string) ([]uint32, error) {
 func (c *client) ListPids(_ context.Context, _ string) ([]uint32, error) {
 	return nil, errors.New("not implemented on Windows")
 	return nil, errors.New("not implemented on Windows")
 }
 }