mirror of
https://github.com/rancher/os.git
synced 2025-09-05 00:37:12 +00:00
Update vendor
This commit is contained in:
8
vendor/github.com/docker/engine-api/client/network_create.go
generated
vendored
8
vendor/github.com/docker/engine-api/client/network_create.go
generated
vendored
@@ -8,13 +8,9 @@ import (
|
||||
)
|
||||
|
||||
// NetworkCreate creates a new network in the docker host.
|
||||
func (cli *Client) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) {
|
||||
networkCreateRequest := types.NetworkCreateRequest{
|
||||
NetworkCreate: options,
|
||||
Name: name,
|
||||
}
|
||||
func (cli *Client) NetworkCreate(ctx context.Context, options types.NetworkCreate) (types.NetworkCreateResponse, error) {
|
||||
var response types.NetworkCreateResponse
|
||||
serverResp, err := cli.post(ctx, "/networks/create", nil, networkCreateRequest, nil)
|
||||
serverResp, err := cli.post(ctx, "/networks/create", nil, options, nil)
|
||||
if err != nil {
|
||||
return response, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user