diff options
author | David Calavera <david.calavera@gmail.com> | 2015-12-11 12:39:28 -0500 |
---|---|---|
committer | David Calavera <david.calavera@gmail.com> | 2015-12-11 12:39:28 -0500 |
commit | d7d512bb927023b76c3c01f54a3655ee7c341637 (patch) | |
tree | 3472d8b4ef6b3fed2f27d975ef246fbfc1c4c3a8 /daemon/attach.go | |
parent | 5525593a681a478dc51d7ce10a8cb3135d39e785 (diff) | |
download | docker-d7d512bb927023b76c3c01f54a3655ee7c341637.tar.gz |
Rename `Daemon.Get` to `Daemon.GetContainer`.
This is more aligned with `Daemon.GetImage` and less confusing.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Diffstat (limited to 'daemon/attach.go')
-rw-r--r-- | daemon/attach.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/attach.go b/daemon/attach.go index b024a063fd..12b206e13b 100644 --- a/daemon/attach.go +++ b/daemon/attach.go @@ -20,7 +20,7 @@ type ContainerAttachWithLogsConfig struct { // ContainerAttachWithLogs attaches to logs according to the config passed in. See ContainerAttachWithLogsConfig. func (daemon *Daemon) ContainerAttachWithLogs(prefixOrName string, c *ContainerAttachWithLogsConfig) error { - container, err := daemon.Get(prefixOrName) + container, err := daemon.GetContainer(prefixOrName) if err != nil { return err } @@ -60,7 +60,7 @@ type ContainerWsAttachWithLogsConfig struct { // ContainerWsAttachWithLogs websocket connection func (daemon *Daemon) ContainerWsAttachWithLogs(prefixOrName string, c *ContainerWsAttachWithLogsConfig) error { - container, err := daemon.Get(prefixOrName) + container, err := daemon.GetContainer(prefixOrName) if err != nil { return err } |