зеркало из https://github.com/microsoft/docker.git
api: client: lib: fix go vet
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Родитель
61a94411b5
Коммит
38f409d283
|
@ -70,7 +70,7 @@ func (cli *Client) postHijacked(path string, query url.Values, body interface{},
|
|||
|
||||
rwc, br := clientconn.Hijack()
|
||||
|
||||
return types.HijackedResponse{rwc, br}, nil
|
||||
return types.HijackedResponse{Conn: rwc, Reader: br}, nil
|
||||
}
|
||||
|
||||
func tlsDial(network, addr string, config *tls.Config) (net.Conn, error) {
|
||||
|
|
|
@ -29,7 +29,7 @@ func (cli *Client) NetworkRemove(networkID string) error {
|
|||
|
||||
// NetworkConnect connects a container to an existent network in the docker host.
|
||||
func (cli *Client) NetworkConnect(networkID, containerID string) error {
|
||||
nc := types.NetworkConnect{containerID}
|
||||
nc := types.NetworkConnect{Container: containerID}
|
||||
resp, err := cli.post("/networks/"+networkID+"/connect", nil, nc, nil)
|
||||
ensureReaderClosed(resp)
|
||||
return err
|
||||
|
@ -37,7 +37,7 @@ func (cli *Client) NetworkConnect(networkID, containerID string) error {
|
|||
|
||||
// NetworkDisconnect disconnects a container from an existent network in the docker host.
|
||||
func (cli *Client) NetworkDisconnect(networkID, containerID string) error {
|
||||
nc := types.NetworkConnect{containerID}
|
||||
nc := types.NetworkConnect{Container: containerID}
|
||||
resp, err := cli.post("/networks/"+networkID+"/disconnect", nil, nc, nil)
|
||||
ensureReaderClosed(resp)
|
||||
return err
|
||||
|
|
Загрузка…
Ссылка в новой задаче