network

package
v0.0.0-...-8251c7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for network API

func (*Client) NetworkConnect

func (a *Client) NetworkConnect(params *NetworkConnectParams, opts ...ClientOption) (*NetworkConnectOK, error)

NetworkConnect connects a container to a network

func (*Client) NetworkCreate

func (a *Client) NetworkCreate(params *NetworkCreateParams, opts ...ClientOption) (*NetworkCreateCreated, error)

NetworkCreate creates a network

func (*Client) NetworkDelete

func (a *Client) NetworkDelete(params *NetworkDeleteParams, opts ...ClientOption) (*NetworkDeleteNoContent, error)

NetworkDelete removes a network

func (*Client) NetworkDisconnect

func (a *Client) NetworkDisconnect(params *NetworkDisconnectParams, opts ...ClientOption) (*NetworkDisconnectOK, error)

NetworkDisconnect disconnects a container from a network

func (*Client) NetworkInspect

func (a *Client) NetworkInspect(params *NetworkInspectParams, opts ...ClientOption) (*NetworkInspectOK, error)

NetworkInspect inspects a network

func (*Client) NetworkList

func (a *Client) NetworkList(params *NetworkListParams, opts ...ClientOption) (*NetworkListOK, error)
NetworkList lists networks

Returns a list of networks. For details on the format, see [the network inspect endpoint](#operation/NetworkInspect).

Note that it uses a different, smaller representation of a network than inspecting a single network. For example, the list of containers attached to the network is not propagated in API versions 1.28 and up.

func (*Client) NetworkPrune

func (a *Client) NetworkPrune(params *NetworkPruneParams, opts ...ClientOption) (*NetworkPruneOK, error)

NetworkPrune deletes unused networks

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	NetworkConnect(params *NetworkConnectParams, opts ...ClientOption) (*NetworkConnectOK, error)

	NetworkCreate(params *NetworkCreateParams, opts ...ClientOption) (*NetworkCreateCreated, error)

	NetworkDelete(params *NetworkDeleteParams, opts ...ClientOption) (*NetworkDeleteNoContent, error)

	NetworkDisconnect(params *NetworkDisconnectParams, opts ...ClientOption) (*NetworkDisconnectOK, error)

	NetworkInspect(params *NetworkInspectParams, opts ...ClientOption) (*NetworkInspectOK, error)

	NetworkList(params *NetworkListParams, opts ...ClientOption) (*NetworkListOK, error)

	NetworkPrune(params *NetworkPruneParams, opts ...ClientOption) (*NetworkPruneOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new network API client.

type NetworkConnectBody

type NetworkConnectBody struct {

	// The ID or name of the container to connect to the network.
	Container string `json:"Container,omitempty"`

	// endpoint config
	EndpointConfig *models.EndpointSettings `json:"EndpointConfig,omitempty"`
}

NetworkConnectBody network connect body // Example: {"Container":"3613f73ba0e4","EndpointConfig":{"IPAMConfig":{"IPv4Address":"172.24.56.89","IPv6Address":"2001:db8::5689"}}} swagger:model NetworkConnectBody

func (*NetworkConnectBody) ContextValidate

func (o *NetworkConnectBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network connect body based on the context it is used

func (*NetworkConnectBody) MarshalBinary

func (o *NetworkConnectBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkConnectBody) UnmarshalBinary

func (o *NetworkConnectBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkConnectBody) Validate

func (o *NetworkConnectBody) Validate(formats strfmt.Registry) error

Validate validates this network connect body

type NetworkConnectForbidden

type NetworkConnectForbidden struct {
	Payload *models.ErrorResponse
}
NetworkConnectForbidden describes a response with status code 403, with default header values.

Operation not supported for swarm scoped networks

func NewNetworkConnectForbidden

func NewNetworkConnectForbidden() *NetworkConnectForbidden

NewNetworkConnectForbidden creates a NetworkConnectForbidden with default headers values

func (*NetworkConnectForbidden) Error

func (o *NetworkConnectForbidden) Error() string

func (*NetworkConnectForbidden) GetPayload

func (o *NetworkConnectForbidden) GetPayload() *models.ErrorResponse

func (*NetworkConnectForbidden) IsClientError

func (o *NetworkConnectForbidden) IsClientError() bool

IsClientError returns true when this network connect forbidden response has a 4xx status code

func (*NetworkConnectForbidden) IsCode

func (o *NetworkConnectForbidden) IsCode(code int) bool

IsCode returns true when this network connect forbidden response a status code equal to that given

func (*NetworkConnectForbidden) IsRedirect

func (o *NetworkConnectForbidden) IsRedirect() bool

IsRedirect returns true when this network connect forbidden response has a 3xx status code

func (*NetworkConnectForbidden) IsServerError

func (o *NetworkConnectForbidden) IsServerError() bool

IsServerError returns true when this network connect forbidden response has a 5xx status code

func (*NetworkConnectForbidden) IsSuccess

func (o *NetworkConnectForbidden) IsSuccess() bool

IsSuccess returns true when this network connect forbidden response has a 2xx status code

func (*NetworkConnectForbidden) String

func (o *NetworkConnectForbidden) String() string

type NetworkConnectInternalServerError

type NetworkConnectInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkConnectInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkConnectInternalServerError

func NewNetworkConnectInternalServerError() *NetworkConnectInternalServerError

NewNetworkConnectInternalServerError creates a NetworkConnectInternalServerError with default headers values

func (*NetworkConnectInternalServerError) Error

func (*NetworkConnectInternalServerError) GetPayload

func (*NetworkConnectInternalServerError) IsClientError

func (o *NetworkConnectInternalServerError) IsClientError() bool

IsClientError returns true when this network connect internal server error response has a 4xx status code

func (*NetworkConnectInternalServerError) IsCode

func (o *NetworkConnectInternalServerError) IsCode(code int) bool

IsCode returns true when this network connect internal server error response a status code equal to that given

func (*NetworkConnectInternalServerError) IsRedirect

func (o *NetworkConnectInternalServerError) IsRedirect() bool

IsRedirect returns true when this network connect internal server error response has a 3xx status code

func (*NetworkConnectInternalServerError) IsServerError

func (o *NetworkConnectInternalServerError) IsServerError() bool

IsServerError returns true when this network connect internal server error response has a 5xx status code

func (*NetworkConnectInternalServerError) IsSuccess

func (o *NetworkConnectInternalServerError) IsSuccess() bool

IsSuccess returns true when this network connect internal server error response has a 2xx status code

func (*NetworkConnectInternalServerError) String

type NetworkConnectNotFound

type NetworkConnectNotFound struct {
	Payload *models.ErrorResponse
}
NetworkConnectNotFound describes a response with status code 404, with default header values.

Network or container not found

func NewNetworkConnectNotFound

func NewNetworkConnectNotFound() *NetworkConnectNotFound

NewNetworkConnectNotFound creates a NetworkConnectNotFound with default headers values

func (*NetworkConnectNotFound) Error

func (o *NetworkConnectNotFound) Error() string

func (*NetworkConnectNotFound) GetPayload

func (o *NetworkConnectNotFound) GetPayload() *models.ErrorResponse

func (*NetworkConnectNotFound) IsClientError

func (o *NetworkConnectNotFound) IsClientError() bool

IsClientError returns true when this network connect not found response has a 4xx status code

func (*NetworkConnectNotFound) IsCode

func (o *NetworkConnectNotFound) IsCode(code int) bool

IsCode returns true when this network connect not found response a status code equal to that given

func (*NetworkConnectNotFound) IsRedirect

func (o *NetworkConnectNotFound) IsRedirect() bool

IsRedirect returns true when this network connect not found response has a 3xx status code

func (*NetworkConnectNotFound) IsServerError

func (o *NetworkConnectNotFound) IsServerError() bool

IsServerError returns true when this network connect not found response has a 5xx status code

func (*NetworkConnectNotFound) IsSuccess

func (o *NetworkConnectNotFound) IsSuccess() bool

IsSuccess returns true when this network connect not found response has a 2xx status code

func (*NetworkConnectNotFound) String

func (o *NetworkConnectNotFound) String() string

type NetworkConnectOK

type NetworkConnectOK struct {
}
NetworkConnectOK describes a response with status code 200, with default header values.

No error

func NewNetworkConnectOK

func NewNetworkConnectOK() *NetworkConnectOK

NewNetworkConnectOK creates a NetworkConnectOK with default headers values

func (*NetworkConnectOK) Error

func (o *NetworkConnectOK) Error() string

func (*NetworkConnectOK) IsClientError

func (o *NetworkConnectOK) IsClientError() bool

IsClientError returns true when this network connect o k response has a 4xx status code

func (*NetworkConnectOK) IsCode

func (o *NetworkConnectOK) IsCode(code int) bool

IsCode returns true when this network connect o k response a status code equal to that given

func (*NetworkConnectOK) IsRedirect

func (o *NetworkConnectOK) IsRedirect() bool

IsRedirect returns true when this network connect o k response has a 3xx status code

func (*NetworkConnectOK) IsServerError

func (o *NetworkConnectOK) IsServerError() bool

IsServerError returns true when this network connect o k response has a 5xx status code

func (*NetworkConnectOK) IsSuccess

func (o *NetworkConnectOK) IsSuccess() bool

IsSuccess returns true when this network connect o k response has a 2xx status code

func (*NetworkConnectOK) String

func (o *NetworkConnectOK) String() string

type NetworkConnectParams

type NetworkConnectParams struct {

	// Container.
	Container NetworkConnectBody

	/* ID.

	   Network ID or name
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkConnectParams contains all the parameters to send to the API endpoint

for the network connect operation.

Typically these are written to a http.Request.

func NewNetworkConnectParams

func NewNetworkConnectParams() *NetworkConnectParams

NewNetworkConnectParams creates a new NetworkConnectParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkConnectParamsWithContext

func NewNetworkConnectParamsWithContext(ctx context.Context) *NetworkConnectParams

NewNetworkConnectParamsWithContext creates a new NetworkConnectParams object with the ability to set a context for a request.

func NewNetworkConnectParamsWithHTTPClient

func NewNetworkConnectParamsWithHTTPClient(client *http.Client) *NetworkConnectParams

NewNetworkConnectParamsWithHTTPClient creates a new NetworkConnectParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkConnectParamsWithTimeout

func NewNetworkConnectParamsWithTimeout(timeout time.Duration) *NetworkConnectParams

NewNetworkConnectParamsWithTimeout creates a new NetworkConnectParams object with the ability to set a timeout on a request.

func (*NetworkConnectParams) SetContainer

func (o *NetworkConnectParams) SetContainer(container NetworkConnectBody)

SetContainer adds the container to the network connect params

func (*NetworkConnectParams) SetContext

func (o *NetworkConnectParams) SetContext(ctx context.Context)

SetContext adds the context to the network connect params

func (*NetworkConnectParams) SetDefaults

func (o *NetworkConnectParams) SetDefaults()

SetDefaults hydrates default values in the network connect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkConnectParams) SetHTTPClient

func (o *NetworkConnectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network connect params

func (*NetworkConnectParams) SetID

func (o *NetworkConnectParams) SetID(id string)

SetID adds the id to the network connect params

func (*NetworkConnectParams) SetTimeout

func (o *NetworkConnectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network connect params

func (*NetworkConnectParams) WithContainer

func (o *NetworkConnectParams) WithContainer(container NetworkConnectBody) *NetworkConnectParams

WithContainer adds the container to the network connect params

func (*NetworkConnectParams) WithContext

WithContext adds the context to the network connect params

func (*NetworkConnectParams) WithDefaults

func (o *NetworkConnectParams) WithDefaults() *NetworkConnectParams

WithDefaults hydrates default values in the network connect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkConnectParams) WithHTTPClient

func (o *NetworkConnectParams) WithHTTPClient(client *http.Client) *NetworkConnectParams

WithHTTPClient adds the HTTPClient to the network connect params

func (*NetworkConnectParams) WithID

WithID adds the id to the network connect params

func (*NetworkConnectParams) WithTimeout

func (o *NetworkConnectParams) WithTimeout(timeout time.Duration) *NetworkConnectParams

WithTimeout adds the timeout to the network connect params

func (*NetworkConnectParams) WriteToRequest

func (o *NetworkConnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkConnectReader

type NetworkConnectReader struct {
	// contains filtered or unexported fields
}

NetworkConnectReader is a Reader for the NetworkConnect structure.

func (*NetworkConnectReader) ReadResponse

func (o *NetworkConnectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkCreateBody

type NetworkCreateBody struct {

	// Globally scoped network is manually attachable by regular containers from workers in swarm mode.
	Attachable bool `json:"Attachable,omitempty"`

	// Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions.
	CheckDuplicate bool `json:"CheckDuplicate,omitempty"`

	// Name of the network driver plugin to use.
	Driver *string `json:"Driver,omitempty"`

	// Enable IPv6 on the network.
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

	// Optional custom IP scheme for the network.
	IPAM *models.IPAM `json:"IPAM,omitempty"`

	// Ingress network is the network which provides the routing-mesh in swarm mode.
	Ingress bool `json:"Ingress,omitempty"`

	// Restrict external access to the network.
	Internal bool `json:"Internal,omitempty"`

	// User-defined key/value metadata.
	Labels map[string]string `json:"Labels,omitempty"`

	// The network's name.
	// Required: true
	Name *string `json:"Name"`

	// Network specific options to be used by the drivers.
	Options map[string]string `json:"Options,omitempty"`
}

NetworkCreateBody network create body // Example: {"Attachable":false,"CheckDuplicate":false,"Driver":"bridge","EnableIPv6":true,"IPAM":{"Config":[{"Gateway":"172.20.10.11","IPRange":"172.20.10.0/24","Subnet":"172.20.0.0/16"},{"Gateway":"2001:db8:abcd::1011","Subnet":"2001:db8:abcd::/64"}],"Driver":"default","Options":{"foo":"bar"}},"Ingress":false,"Internal":true,"Labels":{"com.example.some-label":"some-value","com.example.some-other-label":"some-other-value"},"Name":"isolated_nw","Options":{"com.docker.network.bridge.default_bridge":"true","com.docker.network.bridge.enable_icc":"true","com.docker.network.bridge.enable_ip_masquerade":"true","com.docker.network.bridge.host_binding_ipv4":"0.0.0.0","com.docker.network.bridge.name":"docker0","com.docker.network.driver.mtu":"1500"}} swagger:model NetworkCreateBody

func (*NetworkCreateBody) ContextValidate

func (o *NetworkCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create body based on the context it is used

func (*NetworkCreateBody) MarshalBinary

func (o *NetworkCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateBody) UnmarshalBinary

func (o *NetworkCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateBody) Validate

func (o *NetworkCreateBody) Validate(formats strfmt.Registry) error

Validate validates this network create body

type NetworkCreateCreated

type NetworkCreateCreated struct {
	Payload *NetworkCreateCreatedBody
}
NetworkCreateCreated describes a response with status code 201, with default header values.

No error

func NewNetworkCreateCreated

func NewNetworkCreateCreated() *NetworkCreateCreated

NewNetworkCreateCreated creates a NetworkCreateCreated with default headers values

func (*NetworkCreateCreated) Error

func (o *NetworkCreateCreated) Error() string

func (*NetworkCreateCreated) GetPayload

func (*NetworkCreateCreated) IsClientError

func (o *NetworkCreateCreated) IsClientError() bool

IsClientError returns true when this network create created response has a 4xx status code

func (*NetworkCreateCreated) IsCode

func (o *NetworkCreateCreated) IsCode(code int) bool

IsCode returns true when this network create created response a status code equal to that given

func (*NetworkCreateCreated) IsRedirect

func (o *NetworkCreateCreated) IsRedirect() bool

IsRedirect returns true when this network create created response has a 3xx status code

func (*NetworkCreateCreated) IsServerError

func (o *NetworkCreateCreated) IsServerError() bool

IsServerError returns true when this network create created response has a 5xx status code

func (*NetworkCreateCreated) IsSuccess

func (o *NetworkCreateCreated) IsSuccess() bool

IsSuccess returns true when this network create created response has a 2xx status code

func (*NetworkCreateCreated) String

func (o *NetworkCreateCreated) String() string

type NetworkCreateCreatedBody

type NetworkCreateCreatedBody struct {

	// The ID of the created network.
	ID string `json:"Id,omitempty"`

	// warning
	Warning string `json:"Warning,omitempty"`
}

NetworkCreateCreatedBody NetworkCreateResponse // Example: {"Id":"22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30","Warning":""} swagger:model NetworkCreateCreatedBody

func (*NetworkCreateCreatedBody) ContextValidate

func (o *NetworkCreateCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network create created body based on context it is used

func (*NetworkCreateCreatedBody) MarshalBinary

func (o *NetworkCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateCreatedBody) UnmarshalBinary

func (o *NetworkCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateCreatedBody) Validate

func (o *NetworkCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this network create created body

type NetworkCreateForbidden

type NetworkCreateForbidden struct {
	Payload *models.ErrorResponse
}
NetworkCreateForbidden describes a response with status code 403, with default header values.

operation not supported for pre-defined networks

func NewNetworkCreateForbidden

func NewNetworkCreateForbidden() *NetworkCreateForbidden

NewNetworkCreateForbidden creates a NetworkCreateForbidden with default headers values

func (*NetworkCreateForbidden) Error

func (o *NetworkCreateForbidden) Error() string

func (*NetworkCreateForbidden) GetPayload

func (o *NetworkCreateForbidden) GetPayload() *models.ErrorResponse

func (*NetworkCreateForbidden) IsClientError

func (o *NetworkCreateForbidden) IsClientError() bool

IsClientError returns true when this network create forbidden response has a 4xx status code

func (*NetworkCreateForbidden) IsCode

func (o *NetworkCreateForbidden) IsCode(code int) bool

IsCode returns true when this network create forbidden response a status code equal to that given

func (*NetworkCreateForbidden) IsRedirect

func (o *NetworkCreateForbidden) IsRedirect() bool

IsRedirect returns true when this network create forbidden response has a 3xx status code

func (*NetworkCreateForbidden) IsServerError

func (o *NetworkCreateForbidden) IsServerError() bool

IsServerError returns true when this network create forbidden response has a 5xx status code

func (*NetworkCreateForbidden) IsSuccess

func (o *NetworkCreateForbidden) IsSuccess() bool

IsSuccess returns true when this network create forbidden response has a 2xx status code

func (*NetworkCreateForbidden) String

func (o *NetworkCreateForbidden) String() string

type NetworkCreateInternalServerError

type NetworkCreateInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkCreateInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkCreateInternalServerError

func NewNetworkCreateInternalServerError() *NetworkCreateInternalServerError

NewNetworkCreateInternalServerError creates a NetworkCreateInternalServerError with default headers values

func (*NetworkCreateInternalServerError) Error

func (*NetworkCreateInternalServerError) GetPayload

func (*NetworkCreateInternalServerError) IsClientError

func (o *NetworkCreateInternalServerError) IsClientError() bool

IsClientError returns true when this network create internal server error response has a 4xx status code

func (*NetworkCreateInternalServerError) IsCode

func (o *NetworkCreateInternalServerError) IsCode(code int) bool

IsCode returns true when this network create internal server error response a status code equal to that given

func (*NetworkCreateInternalServerError) IsRedirect

func (o *NetworkCreateInternalServerError) IsRedirect() bool

IsRedirect returns true when this network create internal server error response has a 3xx status code

func (*NetworkCreateInternalServerError) IsServerError

func (o *NetworkCreateInternalServerError) IsServerError() bool

IsServerError returns true when this network create internal server error response has a 5xx status code

func (*NetworkCreateInternalServerError) IsSuccess

func (o *NetworkCreateInternalServerError) IsSuccess() bool

IsSuccess returns true when this network create internal server error response has a 2xx status code

func (*NetworkCreateInternalServerError) String

type NetworkCreateNotFound

type NetworkCreateNotFound struct {
	Payload *models.ErrorResponse
}
NetworkCreateNotFound describes a response with status code 404, with default header values.

plugin not found

func NewNetworkCreateNotFound

func NewNetworkCreateNotFound() *NetworkCreateNotFound

NewNetworkCreateNotFound creates a NetworkCreateNotFound with default headers values

func (*NetworkCreateNotFound) Error

func (o *NetworkCreateNotFound) Error() string

func (*NetworkCreateNotFound) GetPayload

func (o *NetworkCreateNotFound) GetPayload() *models.ErrorResponse

func (*NetworkCreateNotFound) IsClientError

func (o *NetworkCreateNotFound) IsClientError() bool

IsClientError returns true when this network create not found response has a 4xx status code

func (*NetworkCreateNotFound) IsCode

func (o *NetworkCreateNotFound) IsCode(code int) bool

IsCode returns true when this network create not found response a status code equal to that given

func (*NetworkCreateNotFound) IsRedirect

func (o *NetworkCreateNotFound) IsRedirect() bool

IsRedirect returns true when this network create not found response has a 3xx status code

func (*NetworkCreateNotFound) IsServerError

func (o *NetworkCreateNotFound) IsServerError() bool

IsServerError returns true when this network create not found response has a 5xx status code

func (*NetworkCreateNotFound) IsSuccess

func (o *NetworkCreateNotFound) IsSuccess() bool

IsSuccess returns true when this network create not found response has a 2xx status code

func (*NetworkCreateNotFound) String

func (o *NetworkCreateNotFound) String() string

type NetworkCreateParams

type NetworkCreateParams struct {

	/* NetworkConfig.

	   Network configuration
	*/
	NetworkConfig NetworkCreateBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkCreateParams contains all the parameters to send to the API endpoint

for the network create operation.

Typically these are written to a http.Request.

func NewNetworkCreateParams

func NewNetworkCreateParams() *NetworkCreateParams

NewNetworkCreateParams creates a new NetworkCreateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkCreateParamsWithContext

func NewNetworkCreateParamsWithContext(ctx context.Context) *NetworkCreateParams

NewNetworkCreateParamsWithContext creates a new NetworkCreateParams object with the ability to set a context for a request.

func NewNetworkCreateParamsWithHTTPClient

func NewNetworkCreateParamsWithHTTPClient(client *http.Client) *NetworkCreateParams

NewNetworkCreateParamsWithHTTPClient creates a new NetworkCreateParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkCreateParamsWithTimeout

func NewNetworkCreateParamsWithTimeout(timeout time.Duration) *NetworkCreateParams

NewNetworkCreateParamsWithTimeout creates a new NetworkCreateParams object with the ability to set a timeout on a request.

func (*NetworkCreateParams) SetContext

func (o *NetworkCreateParams) SetContext(ctx context.Context)

SetContext adds the context to the network create params

func (*NetworkCreateParams) SetDefaults

func (o *NetworkCreateParams) SetDefaults()

SetDefaults hydrates default values in the network create params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkCreateParams) SetHTTPClient

func (o *NetworkCreateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network create params

func (*NetworkCreateParams) SetNetworkConfig

func (o *NetworkCreateParams) SetNetworkConfig(networkConfig NetworkCreateBody)

SetNetworkConfig adds the networkConfig to the network create params

func (*NetworkCreateParams) SetTimeout

func (o *NetworkCreateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network create params

func (*NetworkCreateParams) WithContext

WithContext adds the context to the network create params

func (*NetworkCreateParams) WithDefaults

func (o *NetworkCreateParams) WithDefaults() *NetworkCreateParams

WithDefaults hydrates default values in the network create params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkCreateParams) WithHTTPClient

func (o *NetworkCreateParams) WithHTTPClient(client *http.Client) *NetworkCreateParams

WithHTTPClient adds the HTTPClient to the network create params

func (*NetworkCreateParams) WithNetworkConfig

func (o *NetworkCreateParams) WithNetworkConfig(networkConfig NetworkCreateBody) *NetworkCreateParams

WithNetworkConfig adds the networkConfig to the network create params

func (*NetworkCreateParams) WithTimeout

func (o *NetworkCreateParams) WithTimeout(timeout time.Duration) *NetworkCreateParams

WithTimeout adds the timeout to the network create params

func (*NetworkCreateParams) WriteToRequest

func (o *NetworkCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkCreateReader

type NetworkCreateReader struct {
	// contains filtered or unexported fields
}

NetworkCreateReader is a Reader for the NetworkCreate structure.

func (*NetworkCreateReader) ReadResponse

func (o *NetworkCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkDeleteForbidden

type NetworkDeleteForbidden struct {
	Payload *models.ErrorResponse
}
NetworkDeleteForbidden describes a response with status code 403, with default header values.

operation not supported for pre-defined networks

func NewNetworkDeleteForbidden

func NewNetworkDeleteForbidden() *NetworkDeleteForbidden

NewNetworkDeleteForbidden creates a NetworkDeleteForbidden with default headers values

func (*NetworkDeleteForbidden) Error

func (o *NetworkDeleteForbidden) Error() string

func (*NetworkDeleteForbidden) GetPayload

func (o *NetworkDeleteForbidden) GetPayload() *models.ErrorResponse

func (*NetworkDeleteForbidden) IsClientError

func (o *NetworkDeleteForbidden) IsClientError() bool

IsClientError returns true when this network delete forbidden response has a 4xx status code

func (*NetworkDeleteForbidden) IsCode

func (o *NetworkDeleteForbidden) IsCode(code int) bool

IsCode returns true when this network delete forbidden response a status code equal to that given

func (*NetworkDeleteForbidden) IsRedirect

func (o *NetworkDeleteForbidden) IsRedirect() bool

IsRedirect returns true when this network delete forbidden response has a 3xx status code

func (*NetworkDeleteForbidden) IsServerError

func (o *NetworkDeleteForbidden) IsServerError() bool

IsServerError returns true when this network delete forbidden response has a 5xx status code

func (*NetworkDeleteForbidden) IsSuccess

func (o *NetworkDeleteForbidden) IsSuccess() bool

IsSuccess returns true when this network delete forbidden response has a 2xx status code

func (*NetworkDeleteForbidden) String

func (o *NetworkDeleteForbidden) String() string

type NetworkDeleteInternalServerError

type NetworkDeleteInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkDeleteInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkDeleteInternalServerError

func NewNetworkDeleteInternalServerError() *NetworkDeleteInternalServerError

NewNetworkDeleteInternalServerError creates a NetworkDeleteInternalServerError with default headers values

func (*NetworkDeleteInternalServerError) Error

func (*NetworkDeleteInternalServerError) GetPayload

func (*NetworkDeleteInternalServerError) IsClientError

func (o *NetworkDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this network delete internal server error response has a 4xx status code

func (*NetworkDeleteInternalServerError) IsCode

func (o *NetworkDeleteInternalServerError) IsCode(code int) bool

IsCode returns true when this network delete internal server error response a status code equal to that given

func (*NetworkDeleteInternalServerError) IsRedirect

func (o *NetworkDeleteInternalServerError) IsRedirect() bool

IsRedirect returns true when this network delete internal server error response has a 3xx status code

func (*NetworkDeleteInternalServerError) IsServerError

func (o *NetworkDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this network delete internal server error response has a 5xx status code

func (*NetworkDeleteInternalServerError) IsSuccess

func (o *NetworkDeleteInternalServerError) IsSuccess() bool

IsSuccess returns true when this network delete internal server error response has a 2xx status code

func (*NetworkDeleteInternalServerError) String

type NetworkDeleteNoContent

type NetworkDeleteNoContent struct {
}
NetworkDeleteNoContent describes a response with status code 204, with default header values.

No error

func NewNetworkDeleteNoContent

func NewNetworkDeleteNoContent() *NetworkDeleteNoContent

NewNetworkDeleteNoContent creates a NetworkDeleteNoContent with default headers values

func (*NetworkDeleteNoContent) Error

func (o *NetworkDeleteNoContent) Error() string

func (*NetworkDeleteNoContent) IsClientError

func (o *NetworkDeleteNoContent) IsClientError() bool

IsClientError returns true when this network delete no content response has a 4xx status code

func (*NetworkDeleteNoContent) IsCode

func (o *NetworkDeleteNoContent) IsCode(code int) bool

IsCode returns true when this network delete no content response a status code equal to that given

func (*NetworkDeleteNoContent) IsRedirect

func (o *NetworkDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this network delete no content response has a 3xx status code

func (*NetworkDeleteNoContent) IsServerError

func (o *NetworkDeleteNoContent) IsServerError() bool

IsServerError returns true when this network delete no content response has a 5xx status code

func (*NetworkDeleteNoContent) IsSuccess

func (o *NetworkDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this network delete no content response has a 2xx status code

func (*NetworkDeleteNoContent) String

func (o *NetworkDeleteNoContent) String() string

type NetworkDeleteNotFound

type NetworkDeleteNotFound struct {
	Payload *models.ErrorResponse
}
NetworkDeleteNotFound describes a response with status code 404, with default header values.

no such network

func NewNetworkDeleteNotFound

func NewNetworkDeleteNotFound() *NetworkDeleteNotFound

NewNetworkDeleteNotFound creates a NetworkDeleteNotFound with default headers values

func (*NetworkDeleteNotFound) Error

func (o *NetworkDeleteNotFound) Error() string

func (*NetworkDeleteNotFound) GetPayload

func (o *NetworkDeleteNotFound) GetPayload() *models.ErrorResponse

func (*NetworkDeleteNotFound) IsClientError

func (o *NetworkDeleteNotFound) IsClientError() bool

IsClientError returns true when this network delete not found response has a 4xx status code

func (*NetworkDeleteNotFound) IsCode

func (o *NetworkDeleteNotFound) IsCode(code int) bool

IsCode returns true when this network delete not found response a status code equal to that given

func (*NetworkDeleteNotFound) IsRedirect

func (o *NetworkDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this network delete not found response has a 3xx status code

func (*NetworkDeleteNotFound) IsServerError

func (o *NetworkDeleteNotFound) IsServerError() bool

IsServerError returns true when this network delete not found response has a 5xx status code

func (*NetworkDeleteNotFound) IsSuccess

func (o *NetworkDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this network delete not found response has a 2xx status code

func (*NetworkDeleteNotFound) String

func (o *NetworkDeleteNotFound) String() string

type NetworkDeleteParams

type NetworkDeleteParams struct {

	/* ID.

	   Network ID or name
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkDeleteParams contains all the parameters to send to the API endpoint

for the network delete operation.

Typically these are written to a http.Request.

func NewNetworkDeleteParams

func NewNetworkDeleteParams() *NetworkDeleteParams

NewNetworkDeleteParams creates a new NetworkDeleteParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkDeleteParamsWithContext

func NewNetworkDeleteParamsWithContext(ctx context.Context) *NetworkDeleteParams

NewNetworkDeleteParamsWithContext creates a new NetworkDeleteParams object with the ability to set a context for a request.

func NewNetworkDeleteParamsWithHTTPClient

func NewNetworkDeleteParamsWithHTTPClient(client *http.Client) *NetworkDeleteParams

NewNetworkDeleteParamsWithHTTPClient creates a new NetworkDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkDeleteParamsWithTimeout

func NewNetworkDeleteParamsWithTimeout(timeout time.Duration) *NetworkDeleteParams

NewNetworkDeleteParamsWithTimeout creates a new NetworkDeleteParams object with the ability to set a timeout on a request.

func (*NetworkDeleteParams) SetContext

func (o *NetworkDeleteParams) SetContext(ctx context.Context)

SetContext adds the context to the network delete params

func (*NetworkDeleteParams) SetDefaults

func (o *NetworkDeleteParams) SetDefaults()

SetDefaults hydrates default values in the network delete params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkDeleteParams) SetHTTPClient

func (o *NetworkDeleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network delete params

func (*NetworkDeleteParams) SetID

func (o *NetworkDeleteParams) SetID(id string)

SetID adds the id to the network delete params

func (*NetworkDeleteParams) SetTimeout

func (o *NetworkDeleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network delete params

func (*NetworkDeleteParams) WithContext

WithContext adds the context to the network delete params

func (*NetworkDeleteParams) WithDefaults

func (o *NetworkDeleteParams) WithDefaults() *NetworkDeleteParams

WithDefaults hydrates default values in the network delete params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkDeleteParams) WithHTTPClient

func (o *NetworkDeleteParams) WithHTTPClient(client *http.Client) *NetworkDeleteParams

WithHTTPClient adds the HTTPClient to the network delete params

func (*NetworkDeleteParams) WithID

WithID adds the id to the network delete params

func (*NetworkDeleteParams) WithTimeout

func (o *NetworkDeleteParams) WithTimeout(timeout time.Duration) *NetworkDeleteParams

WithTimeout adds the timeout to the network delete params

func (*NetworkDeleteParams) WriteToRequest

func (o *NetworkDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkDeleteReader

type NetworkDeleteReader struct {
	// contains filtered or unexported fields
}

NetworkDeleteReader is a Reader for the NetworkDelete structure.

func (*NetworkDeleteReader) ReadResponse

func (o *NetworkDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkDisconnectBody

type NetworkDisconnectBody struct {

	// The ID or name of the container to disconnect from the network.
	Container string `json:"Container,omitempty"`

	// Force the container to disconnect from the network.
	Force bool `json:"Force,omitempty"`
}

NetworkDisconnectBody network disconnect body swagger:model NetworkDisconnectBody

func (*NetworkDisconnectBody) ContextValidate

func (o *NetworkDisconnectBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network disconnect body based on context it is used

func (*NetworkDisconnectBody) MarshalBinary

func (o *NetworkDisconnectBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkDisconnectBody) UnmarshalBinary

func (o *NetworkDisconnectBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkDisconnectBody) Validate

func (o *NetworkDisconnectBody) Validate(formats strfmt.Registry) error

Validate validates this network disconnect body

type NetworkDisconnectForbidden

type NetworkDisconnectForbidden struct {
	Payload *models.ErrorResponse
}
NetworkDisconnectForbidden describes a response with status code 403, with default header values.

Operation not supported for swarm scoped networks

func NewNetworkDisconnectForbidden

func NewNetworkDisconnectForbidden() *NetworkDisconnectForbidden

NewNetworkDisconnectForbidden creates a NetworkDisconnectForbidden with default headers values

func (*NetworkDisconnectForbidden) Error

func (*NetworkDisconnectForbidden) GetPayload

func (*NetworkDisconnectForbidden) IsClientError

func (o *NetworkDisconnectForbidden) IsClientError() bool

IsClientError returns true when this network disconnect forbidden response has a 4xx status code

func (*NetworkDisconnectForbidden) IsCode

func (o *NetworkDisconnectForbidden) IsCode(code int) bool

IsCode returns true when this network disconnect forbidden response a status code equal to that given

func (*NetworkDisconnectForbidden) IsRedirect

func (o *NetworkDisconnectForbidden) IsRedirect() bool

IsRedirect returns true when this network disconnect forbidden response has a 3xx status code

func (*NetworkDisconnectForbidden) IsServerError

func (o *NetworkDisconnectForbidden) IsServerError() bool

IsServerError returns true when this network disconnect forbidden response has a 5xx status code

func (*NetworkDisconnectForbidden) IsSuccess

func (o *NetworkDisconnectForbidden) IsSuccess() bool

IsSuccess returns true when this network disconnect forbidden response has a 2xx status code

func (*NetworkDisconnectForbidden) String

func (o *NetworkDisconnectForbidden) String() string

type NetworkDisconnectInternalServerError

type NetworkDisconnectInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkDisconnectInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkDisconnectInternalServerError

func NewNetworkDisconnectInternalServerError() *NetworkDisconnectInternalServerError

NewNetworkDisconnectInternalServerError creates a NetworkDisconnectInternalServerError with default headers values

func (*NetworkDisconnectInternalServerError) Error

func (*NetworkDisconnectInternalServerError) GetPayload

func (*NetworkDisconnectInternalServerError) IsClientError

func (o *NetworkDisconnectInternalServerError) IsClientError() bool

IsClientError returns true when this network disconnect internal server error response has a 4xx status code

func (*NetworkDisconnectInternalServerError) IsCode

IsCode returns true when this network disconnect internal server error response a status code equal to that given

func (*NetworkDisconnectInternalServerError) IsRedirect

IsRedirect returns true when this network disconnect internal server error response has a 3xx status code

func (*NetworkDisconnectInternalServerError) IsServerError

func (o *NetworkDisconnectInternalServerError) IsServerError() bool

IsServerError returns true when this network disconnect internal server error response has a 5xx status code

func (*NetworkDisconnectInternalServerError) IsSuccess

IsSuccess returns true when this network disconnect internal server error response has a 2xx status code

func (*NetworkDisconnectInternalServerError) String

type NetworkDisconnectNotFound

type NetworkDisconnectNotFound struct {
	Payload *models.ErrorResponse
}
NetworkDisconnectNotFound describes a response with status code 404, with default header values.

Network or container not found

func NewNetworkDisconnectNotFound

func NewNetworkDisconnectNotFound() *NetworkDisconnectNotFound

NewNetworkDisconnectNotFound creates a NetworkDisconnectNotFound with default headers values

func (*NetworkDisconnectNotFound) Error

func (o *NetworkDisconnectNotFound) Error() string

func (*NetworkDisconnectNotFound) GetPayload

func (*NetworkDisconnectNotFound) IsClientError

func (o *NetworkDisconnectNotFound) IsClientError() bool

IsClientError returns true when this network disconnect not found response has a 4xx status code

func (*NetworkDisconnectNotFound) IsCode

func (o *NetworkDisconnectNotFound) IsCode(code int) bool

IsCode returns true when this network disconnect not found response a status code equal to that given

func (*NetworkDisconnectNotFound) IsRedirect

func (o *NetworkDisconnectNotFound) IsRedirect() bool

IsRedirect returns true when this network disconnect not found response has a 3xx status code

func (*NetworkDisconnectNotFound) IsServerError

func (o *NetworkDisconnectNotFound) IsServerError() bool

IsServerError returns true when this network disconnect not found response has a 5xx status code

func (*NetworkDisconnectNotFound) IsSuccess

func (o *NetworkDisconnectNotFound) IsSuccess() bool

IsSuccess returns true when this network disconnect not found response has a 2xx status code

func (*NetworkDisconnectNotFound) String

func (o *NetworkDisconnectNotFound) String() string

type NetworkDisconnectOK

type NetworkDisconnectOK struct {
}
NetworkDisconnectOK describes a response with status code 200, with default header values.

No error

func NewNetworkDisconnectOK

func NewNetworkDisconnectOK() *NetworkDisconnectOK

NewNetworkDisconnectOK creates a NetworkDisconnectOK with default headers values

func (*NetworkDisconnectOK) Error

func (o *NetworkDisconnectOK) Error() string

func (*NetworkDisconnectOK) IsClientError

func (o *NetworkDisconnectOK) IsClientError() bool

IsClientError returns true when this network disconnect o k response has a 4xx status code

func (*NetworkDisconnectOK) IsCode

func (o *NetworkDisconnectOK) IsCode(code int) bool

IsCode returns true when this network disconnect o k response a status code equal to that given

func (*NetworkDisconnectOK) IsRedirect

func (o *NetworkDisconnectOK) IsRedirect() bool

IsRedirect returns true when this network disconnect o k response has a 3xx status code

func (*NetworkDisconnectOK) IsServerError

func (o *NetworkDisconnectOK) IsServerError() bool

IsServerError returns true when this network disconnect o k response has a 5xx status code

func (*NetworkDisconnectOK) IsSuccess

func (o *NetworkDisconnectOK) IsSuccess() bool

IsSuccess returns true when this network disconnect o k response has a 2xx status code

func (*NetworkDisconnectOK) String

func (o *NetworkDisconnectOK) String() string

type NetworkDisconnectParams

type NetworkDisconnectParams struct {

	// Container.
	Container NetworkDisconnectBody

	/* ID.

	   Network ID or name
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkDisconnectParams contains all the parameters to send to the API endpoint

for the network disconnect operation.

Typically these are written to a http.Request.

func NewNetworkDisconnectParams

func NewNetworkDisconnectParams() *NetworkDisconnectParams

NewNetworkDisconnectParams creates a new NetworkDisconnectParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkDisconnectParamsWithContext

func NewNetworkDisconnectParamsWithContext(ctx context.Context) *NetworkDisconnectParams

NewNetworkDisconnectParamsWithContext creates a new NetworkDisconnectParams object with the ability to set a context for a request.

func NewNetworkDisconnectParamsWithHTTPClient

func NewNetworkDisconnectParamsWithHTTPClient(client *http.Client) *NetworkDisconnectParams

NewNetworkDisconnectParamsWithHTTPClient creates a new NetworkDisconnectParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkDisconnectParamsWithTimeout

func NewNetworkDisconnectParamsWithTimeout(timeout time.Duration) *NetworkDisconnectParams

NewNetworkDisconnectParamsWithTimeout creates a new NetworkDisconnectParams object with the ability to set a timeout on a request.

func (*NetworkDisconnectParams) SetContainer

func (o *NetworkDisconnectParams) SetContainer(container NetworkDisconnectBody)

SetContainer adds the container to the network disconnect params

func (*NetworkDisconnectParams) SetContext

func (o *NetworkDisconnectParams) SetContext(ctx context.Context)

SetContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) SetDefaults

func (o *NetworkDisconnectParams) SetDefaults()

SetDefaults hydrates default values in the network disconnect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkDisconnectParams) SetHTTPClient

func (o *NetworkDisconnectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network disconnect params

func (*NetworkDisconnectParams) SetID

func (o *NetworkDisconnectParams) SetID(id string)

SetID adds the id to the network disconnect params

func (*NetworkDisconnectParams) SetTimeout

func (o *NetworkDisconnectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network disconnect params

func (*NetworkDisconnectParams) WithContainer

WithContainer adds the container to the network disconnect params

func (*NetworkDisconnectParams) WithContext

WithContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) WithDefaults

WithDefaults hydrates default values in the network disconnect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkDisconnectParams) WithHTTPClient

func (o *NetworkDisconnectParams) WithHTTPClient(client *http.Client) *NetworkDisconnectParams

WithHTTPClient adds the HTTPClient to the network disconnect params

func (*NetworkDisconnectParams) WithID

WithID adds the id to the network disconnect params

func (*NetworkDisconnectParams) WithTimeout

WithTimeout adds the timeout to the network disconnect params

func (*NetworkDisconnectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type NetworkDisconnectReader

type NetworkDisconnectReader struct {
	// contains filtered or unexported fields
}

NetworkDisconnectReader is a Reader for the NetworkDisconnect structure.

func (*NetworkDisconnectReader) ReadResponse

func (o *NetworkDisconnectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkInspectInternalServerError

type NetworkInspectInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkInspectInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkInspectInternalServerError

func NewNetworkInspectInternalServerError() *NetworkInspectInternalServerError

NewNetworkInspectInternalServerError creates a NetworkInspectInternalServerError with default headers values

func (*NetworkInspectInternalServerError) Error

func (*NetworkInspectInternalServerError) GetPayload

func (*NetworkInspectInternalServerError) IsClientError

func (o *NetworkInspectInternalServerError) IsClientError() bool

IsClientError returns true when this network inspect internal server error response has a 4xx status code

func (*NetworkInspectInternalServerError) IsCode

func (o *NetworkInspectInternalServerError) IsCode(code int) bool

IsCode returns true when this network inspect internal server error response a status code equal to that given

func (*NetworkInspectInternalServerError) IsRedirect

func (o *NetworkInspectInternalServerError) IsRedirect() bool

IsRedirect returns true when this network inspect internal server error response has a 3xx status code

func (*NetworkInspectInternalServerError) IsServerError

func (o *NetworkInspectInternalServerError) IsServerError() bool

IsServerError returns true when this network inspect internal server error response has a 5xx status code

func (*NetworkInspectInternalServerError) IsSuccess

func (o *NetworkInspectInternalServerError) IsSuccess() bool

IsSuccess returns true when this network inspect internal server error response has a 2xx status code

func (*NetworkInspectInternalServerError) String

type NetworkInspectNotFound

type NetworkInspectNotFound struct {
	Payload *models.ErrorResponse
}
NetworkInspectNotFound describes a response with status code 404, with default header values.

Network not found

func NewNetworkInspectNotFound

func NewNetworkInspectNotFound() *NetworkInspectNotFound

NewNetworkInspectNotFound creates a NetworkInspectNotFound with default headers values

func (*NetworkInspectNotFound) Error

func (o *NetworkInspectNotFound) Error() string

func (*NetworkInspectNotFound) GetPayload

func (o *NetworkInspectNotFound) GetPayload() *models.ErrorResponse

func (*NetworkInspectNotFound) IsClientError

func (o *NetworkInspectNotFound) IsClientError() bool

IsClientError returns true when this network inspect not found response has a 4xx status code

func (*NetworkInspectNotFound) IsCode

func (o *NetworkInspectNotFound) IsCode(code int) bool

IsCode returns true when this network inspect not found response a status code equal to that given

func (*NetworkInspectNotFound) IsRedirect

func (o *NetworkInspectNotFound) IsRedirect() bool

IsRedirect returns true when this network inspect not found response has a 3xx status code

func (*NetworkInspectNotFound) IsServerError

func (o *NetworkInspectNotFound) IsServerError() bool

IsServerError returns true when this network inspect not found response has a 5xx status code

func (*NetworkInspectNotFound) IsSuccess

func (o *NetworkInspectNotFound) IsSuccess() bool

IsSuccess returns true when this network inspect not found response has a 2xx status code

func (*NetworkInspectNotFound) String

func (o *NetworkInspectNotFound) String() string

type NetworkInspectOK

type NetworkInspectOK struct {
	Payload *models.Network
}
NetworkInspectOK describes a response with status code 200, with default header values.

No error

func NewNetworkInspectOK

func NewNetworkInspectOK() *NetworkInspectOK

NewNetworkInspectOK creates a NetworkInspectOK with default headers values

func (*NetworkInspectOK) Error

func (o *NetworkInspectOK) Error() string

func (*NetworkInspectOK) GetPayload

func (o *NetworkInspectOK) GetPayload() *models.Network

func (*NetworkInspectOK) IsClientError

func (o *NetworkInspectOK) IsClientError() bool

IsClientError returns true when this network inspect o k response has a 4xx status code

func (*NetworkInspectOK) IsCode

func (o *NetworkInspectOK) IsCode(code int) bool

IsCode returns true when this network inspect o k response a status code equal to that given

func (*NetworkInspectOK) IsRedirect

func (o *NetworkInspectOK) IsRedirect() bool

IsRedirect returns true when this network inspect o k response has a 3xx status code

func (*NetworkInspectOK) IsServerError

func (o *NetworkInspectOK) IsServerError() bool

IsServerError returns true when this network inspect o k response has a 5xx status code

func (*NetworkInspectOK) IsSuccess

func (o *NetworkInspectOK) IsSuccess() bool

IsSuccess returns true when this network inspect o k response has a 2xx status code

func (*NetworkInspectOK) String

func (o *NetworkInspectOK) String() string

type NetworkInspectParams

type NetworkInspectParams struct {

	/* ID.

	   Network ID or name
	*/
	ID string

	/* Scope.

	   Filter the network by scope (swarm, global, or local)
	*/
	Scope *string

	/* Verbose.

	   Detailed inspect output for troubleshooting
	*/
	Verbose *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkInspectParams contains all the parameters to send to the API endpoint

for the network inspect operation.

Typically these are written to a http.Request.

func NewNetworkInspectParams

func NewNetworkInspectParams() *NetworkInspectParams

NewNetworkInspectParams creates a new NetworkInspectParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkInspectParamsWithContext

func NewNetworkInspectParamsWithContext(ctx context.Context) *NetworkInspectParams

NewNetworkInspectParamsWithContext creates a new NetworkInspectParams object with the ability to set a context for a request.

func NewNetworkInspectParamsWithHTTPClient

func NewNetworkInspectParamsWithHTTPClient(client *http.Client) *NetworkInspectParams

NewNetworkInspectParamsWithHTTPClient creates a new NetworkInspectParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkInspectParamsWithTimeout

func NewNetworkInspectParamsWithTimeout(timeout time.Duration) *NetworkInspectParams

NewNetworkInspectParamsWithTimeout creates a new NetworkInspectParams object with the ability to set a timeout on a request.

func (*NetworkInspectParams) SetContext

func (o *NetworkInspectParams) SetContext(ctx context.Context)

SetContext adds the context to the network inspect params

func (*NetworkInspectParams) SetDefaults

func (o *NetworkInspectParams) SetDefaults()

SetDefaults hydrates default values in the network inspect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkInspectParams) SetHTTPClient

func (o *NetworkInspectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network inspect params

func (*NetworkInspectParams) SetID

func (o *NetworkInspectParams) SetID(id string)

SetID adds the id to the network inspect params

func (*NetworkInspectParams) SetScope

func (o *NetworkInspectParams) SetScope(scope *string)

SetScope adds the scope to the network inspect params

func (*NetworkInspectParams) SetTimeout

func (o *NetworkInspectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network inspect params

func (*NetworkInspectParams) SetVerbose

func (o *NetworkInspectParams) SetVerbose(verbose *bool)

SetVerbose adds the verbose to the network inspect params

func (*NetworkInspectParams) WithContext

WithContext adds the context to the network inspect params

func (*NetworkInspectParams) WithDefaults

func (o *NetworkInspectParams) WithDefaults() *NetworkInspectParams

WithDefaults hydrates default values in the network inspect params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkInspectParams) WithHTTPClient

func (o *NetworkInspectParams) WithHTTPClient(client *http.Client) *NetworkInspectParams

WithHTTPClient adds the HTTPClient to the network inspect params

func (*NetworkInspectParams) WithID

WithID adds the id to the network inspect params

func (*NetworkInspectParams) WithScope

func (o *NetworkInspectParams) WithScope(scope *string) *NetworkInspectParams

WithScope adds the scope to the network inspect params

func (*NetworkInspectParams) WithTimeout

func (o *NetworkInspectParams) WithTimeout(timeout time.Duration) *NetworkInspectParams

WithTimeout adds the timeout to the network inspect params

func (*NetworkInspectParams) WithVerbose

func (o *NetworkInspectParams) WithVerbose(verbose *bool) *NetworkInspectParams

WithVerbose adds the verbose to the network inspect params

func (*NetworkInspectParams) WriteToRequest

func (o *NetworkInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkInspectReader

type NetworkInspectReader struct {
	// contains filtered or unexported fields
}

NetworkInspectReader is a Reader for the NetworkInspect structure.

func (*NetworkInspectReader) ReadResponse

func (o *NetworkInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkListInternalServerError

type NetworkListInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkListInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkListInternalServerError

func NewNetworkListInternalServerError() *NetworkListInternalServerError

NewNetworkListInternalServerError creates a NetworkListInternalServerError with default headers values

func (*NetworkListInternalServerError) Error

func (*NetworkListInternalServerError) GetPayload

func (*NetworkListInternalServerError) IsClientError

func (o *NetworkListInternalServerError) IsClientError() bool

IsClientError returns true when this network list internal server error response has a 4xx status code

func (*NetworkListInternalServerError) IsCode

func (o *NetworkListInternalServerError) IsCode(code int) bool

IsCode returns true when this network list internal server error response a status code equal to that given

func (*NetworkListInternalServerError) IsRedirect

func (o *NetworkListInternalServerError) IsRedirect() bool

IsRedirect returns true when this network list internal server error response has a 3xx status code

func (*NetworkListInternalServerError) IsServerError

func (o *NetworkListInternalServerError) IsServerError() bool

IsServerError returns true when this network list internal server error response has a 5xx status code

func (*NetworkListInternalServerError) IsSuccess

func (o *NetworkListInternalServerError) IsSuccess() bool

IsSuccess returns true when this network list internal server error response has a 2xx status code

func (*NetworkListInternalServerError) String

type NetworkListOK

type NetworkListOK struct {
	Payload []*models.Network
}
NetworkListOK describes a response with status code 200, with default header values.

No error

func NewNetworkListOK

func NewNetworkListOK() *NetworkListOK

NewNetworkListOK creates a NetworkListOK with default headers values

func (*NetworkListOK) Error

func (o *NetworkListOK) Error() string

func (*NetworkListOK) GetPayload

func (o *NetworkListOK) GetPayload() []*models.Network

func (*NetworkListOK) IsClientError

func (o *NetworkListOK) IsClientError() bool

IsClientError returns true when this network list o k response has a 4xx status code

func (*NetworkListOK) IsCode

func (o *NetworkListOK) IsCode(code int) bool

IsCode returns true when this network list o k response a status code equal to that given

func (*NetworkListOK) IsRedirect

func (o *NetworkListOK) IsRedirect() bool

IsRedirect returns true when this network list o k response has a 3xx status code

func (*NetworkListOK) IsServerError

func (o *NetworkListOK) IsServerError() bool

IsServerError returns true when this network list o k response has a 5xx status code

func (*NetworkListOK) IsSuccess

func (o *NetworkListOK) IsSuccess() bool

IsSuccess returns true when this network list o k response has a 2xx status code

func (*NetworkListOK) String

func (o *NetworkListOK) String() string

type NetworkListParams

type NetworkListParams struct {

	/* Filters.

	     JSON encoded value of the filters (a `map[string][]string`) to process on the networks list. Available filters:

	- `dangling=<boolean>` When set to `true` (or `1`), returns all
	   networks that are not in use by a container. When set to `false`
	   (or `0`), only networks that are in use by one or more
	   containers are returned.
	- `driver=<driver-name>` Matches a network's driver.
	- `id=<network-id>` Matches all or part of a network ID.
	- `label=<key>` or `label=<key>=<value>` of a network label.
	- `name=<network-name>` Matches all or part of a network name.
	- `scope=["swarm"|"global"|"local"]` Filters networks by scope (`swarm`, `global`, or `local`).
	- `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.

	*/
	Filters *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkListParams contains all the parameters to send to the API endpoint

for the network list operation.

Typically these are written to a http.Request.

func NewNetworkListParams

func NewNetworkListParams() *NetworkListParams

NewNetworkListParams creates a new NetworkListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkListParamsWithContext

func NewNetworkListParamsWithContext(ctx context.Context) *NetworkListParams

NewNetworkListParamsWithContext creates a new NetworkListParams object with the ability to set a context for a request.

func NewNetworkListParamsWithHTTPClient

func NewNetworkListParamsWithHTTPClient(client *http.Client) *NetworkListParams

NewNetworkListParamsWithHTTPClient creates a new NetworkListParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkListParamsWithTimeout

func NewNetworkListParamsWithTimeout(timeout time.Duration) *NetworkListParams

NewNetworkListParamsWithTimeout creates a new NetworkListParams object with the ability to set a timeout on a request.

func (*NetworkListParams) SetContext

func (o *NetworkListParams) SetContext(ctx context.Context)

SetContext adds the context to the network list params

func (*NetworkListParams) SetDefaults

func (o *NetworkListParams) SetDefaults()

SetDefaults hydrates default values in the network list params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkListParams) SetFilters

func (o *NetworkListParams) SetFilters(filters *string)

SetFilters adds the filters to the network list params

func (*NetworkListParams) SetHTTPClient

func (o *NetworkListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network list params

func (*NetworkListParams) SetTimeout

func (o *NetworkListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network list params

func (*NetworkListParams) WithContext

func (o *NetworkListParams) WithContext(ctx context.Context) *NetworkListParams

WithContext adds the context to the network list params

func (*NetworkListParams) WithDefaults

func (o *NetworkListParams) WithDefaults() *NetworkListParams

WithDefaults hydrates default values in the network list params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkListParams) WithFilters

func (o *NetworkListParams) WithFilters(filters *string) *NetworkListParams

WithFilters adds the filters to the network list params

func (*NetworkListParams) WithHTTPClient

func (o *NetworkListParams) WithHTTPClient(client *http.Client) *NetworkListParams

WithHTTPClient adds the HTTPClient to the network list params

func (*NetworkListParams) WithTimeout

func (o *NetworkListParams) WithTimeout(timeout time.Duration) *NetworkListParams

WithTimeout adds the timeout to the network list params

func (*NetworkListParams) WriteToRequest

func (o *NetworkListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkListReader

type NetworkListReader struct {
	// contains filtered or unexported fields
}

NetworkListReader is a Reader for the NetworkList structure.

func (*NetworkListReader) ReadResponse

func (o *NetworkListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NetworkPruneInternalServerError

type NetworkPruneInternalServerError struct {
	Payload *models.ErrorResponse
}
NetworkPruneInternalServerError describes a response with status code 500, with default header values.

Server error

func NewNetworkPruneInternalServerError

func NewNetworkPruneInternalServerError() *NetworkPruneInternalServerError

NewNetworkPruneInternalServerError creates a NetworkPruneInternalServerError with default headers values

func (*NetworkPruneInternalServerError) Error

func (*NetworkPruneInternalServerError) GetPayload

func (*NetworkPruneInternalServerError) IsClientError

func (o *NetworkPruneInternalServerError) IsClientError() bool

IsClientError returns true when this network prune internal server error response has a 4xx status code

func (*NetworkPruneInternalServerError) IsCode

func (o *NetworkPruneInternalServerError) IsCode(code int) bool

IsCode returns true when this network prune internal server error response a status code equal to that given

func (*NetworkPruneInternalServerError) IsRedirect

func (o *NetworkPruneInternalServerError) IsRedirect() bool

IsRedirect returns true when this network prune internal server error response has a 3xx status code

func (*NetworkPruneInternalServerError) IsServerError

func (o *NetworkPruneInternalServerError) IsServerError() bool

IsServerError returns true when this network prune internal server error response has a 5xx status code

func (*NetworkPruneInternalServerError) IsSuccess

func (o *NetworkPruneInternalServerError) IsSuccess() bool

IsSuccess returns true when this network prune internal server error response has a 2xx status code

func (*NetworkPruneInternalServerError) String

type NetworkPruneOK

type NetworkPruneOK struct {
	Payload *NetworkPruneOKBody
}
NetworkPruneOK describes a response with status code 200, with default header values.

No error

func NewNetworkPruneOK

func NewNetworkPruneOK() *NetworkPruneOK

NewNetworkPruneOK creates a NetworkPruneOK with default headers values

func (*NetworkPruneOK) Error

func (o *NetworkPruneOK) Error() string

func (*NetworkPruneOK) GetPayload

func (o *NetworkPruneOK) GetPayload() *NetworkPruneOKBody

func (*NetworkPruneOK) IsClientError

func (o *NetworkPruneOK) IsClientError() bool

IsClientError returns true when this network prune o k response has a 4xx status code

func (*NetworkPruneOK) IsCode

func (o *NetworkPruneOK) IsCode(code int) bool

IsCode returns true when this network prune o k response a status code equal to that given

func (*NetworkPruneOK) IsRedirect

func (o *NetworkPruneOK) IsRedirect() bool

IsRedirect returns true when this network prune o k response has a 3xx status code

func (*NetworkPruneOK) IsServerError

func (o *NetworkPruneOK) IsServerError() bool

IsServerError returns true when this network prune o k response has a 5xx status code

func (*NetworkPruneOK) IsSuccess

func (o *NetworkPruneOK) IsSuccess() bool

IsSuccess returns true when this network prune o k response has a 2xx status code

func (*NetworkPruneOK) String

func (o *NetworkPruneOK) String() string

type NetworkPruneOKBody

type NetworkPruneOKBody struct {

	// Networks that were deleted
	NetworksDeleted []string `json:"NetworksDeleted"`
}

NetworkPruneOKBody NetworkPruneResponse swagger:model NetworkPruneOKBody

func (*NetworkPruneOKBody) ContextValidate

func (o *NetworkPruneOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network prune o k body based on context it is used

func (*NetworkPruneOKBody) MarshalBinary

func (o *NetworkPruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkPruneOKBody) UnmarshalBinary

func (o *NetworkPruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkPruneOKBody) Validate

func (o *NetworkPruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this network prune o k body

type NetworkPruneParams

type NetworkPruneParams struct {

	/* Filters.

	     Filters to process on the prune list, encoded as JSON (a `map[string][]string`).

	Available filters:
	- `until=<timestamp>` Prune networks created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
	- `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels.

	*/
	Filters *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NetworkPruneParams contains all the parameters to send to the API endpoint

for the network prune operation.

Typically these are written to a http.Request.

func NewNetworkPruneParams

func NewNetworkPruneParams() *NetworkPruneParams

NewNetworkPruneParams creates a new NetworkPruneParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNetworkPruneParamsWithContext

func NewNetworkPruneParamsWithContext(ctx context.Context) *NetworkPruneParams

NewNetworkPruneParamsWithContext creates a new NetworkPruneParams object with the ability to set a context for a request.

func NewNetworkPruneParamsWithHTTPClient

func NewNetworkPruneParamsWithHTTPClient(client *http.Client) *NetworkPruneParams

NewNetworkPruneParamsWithHTTPClient creates a new NetworkPruneParams object with the ability to set a custom HTTPClient for a request.

func NewNetworkPruneParamsWithTimeout

func NewNetworkPruneParamsWithTimeout(timeout time.Duration) *NetworkPruneParams

NewNetworkPruneParamsWithTimeout creates a new NetworkPruneParams object with the ability to set a timeout on a request.

func (*NetworkPruneParams) SetContext

func (o *NetworkPruneParams) SetContext(ctx context.Context)

SetContext adds the context to the network prune params

func (*NetworkPruneParams) SetDefaults

func (o *NetworkPruneParams) SetDefaults()

SetDefaults hydrates default values in the network prune params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkPruneParams) SetFilters

func (o *NetworkPruneParams) SetFilters(filters *string)

SetFilters adds the filters to the network prune params

func (*NetworkPruneParams) SetHTTPClient

func (o *NetworkPruneParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the network prune params

func (*NetworkPruneParams) SetTimeout

func (o *NetworkPruneParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the network prune params

func (*NetworkPruneParams) WithContext

WithContext adds the context to the network prune params

func (*NetworkPruneParams) WithDefaults

func (o *NetworkPruneParams) WithDefaults() *NetworkPruneParams

WithDefaults hydrates default values in the network prune params (not the query body).

All values with no default are reset to their zero value.

func (*NetworkPruneParams) WithFilters

func (o *NetworkPruneParams) WithFilters(filters *string) *NetworkPruneParams

WithFilters adds the filters to the network prune params

func (*NetworkPruneParams) WithHTTPClient

func (o *NetworkPruneParams) WithHTTPClient(client *http.Client) *NetworkPruneParams

WithHTTPClient adds the HTTPClient to the network prune params

func (*NetworkPruneParams) WithTimeout

func (o *NetworkPruneParams) WithTimeout(timeout time.Duration) *NetworkPruneParams

WithTimeout adds the timeout to the network prune params

func (*NetworkPruneParams) WriteToRequest

func (o *NetworkPruneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NetworkPruneReader

type NetworkPruneReader struct {
	// contains filtered or unexported fields
}

NetworkPruneReader is a Reader for the NetworkPrune structure.

func (*NetworkPruneReader) ReadResponse

func (o *NetworkPruneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL