networks_compat

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 11 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 networks compat API

func (*Client) NetworkConnect

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

NetworkConnect connects container to network

Connect a container to a network. This endpoint is current a no-op

func (*Client) NetworkCreate

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

NetworkCreate creates network

Create a network configuration

func (*Client) NetworkDelete

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

NetworkDelete removes a network

Remove a network

func (*Client) NetworkDisconnect

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

NetworkDisconnect disconnects container from network

Disconnect a container from a network. This endpoint is current a no-op

func (*Client) NetworkInspect

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

NetworkInspect inspects a network

Display low level configuration network

func (*Client) NetworkList

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

NetworkList lists networks

Display summary of network configurations

func (*Client) NetworkPrune

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

NetworkPrune deletes unused networks

Remove CNI networks that do not have containers

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) (*NetworkCreateOK, 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 networks compat API client.

type NetworkConnectBadRequest

type NetworkConnectBadRequest struct {
	Payload *NetworkConnectBadRequestBody
}

NetworkConnectBadRequest describes a response with status code 400, with default header values.

Bad parameter in request

func NewNetworkConnectBadRequest

func NewNetworkConnectBadRequest() *NetworkConnectBadRequest

NewNetworkConnectBadRequest creates a NetworkConnectBadRequest with default headers values

func (*NetworkConnectBadRequest) Error

func (o *NetworkConnectBadRequest) Error() string

func (*NetworkConnectBadRequest) GetPayload

func (*NetworkConnectBadRequest) IsClientError

func (o *NetworkConnectBadRequest) IsClientError() bool

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

func (*NetworkConnectBadRequest) IsCode

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

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

func (*NetworkConnectBadRequest) IsRedirect

func (o *NetworkConnectBadRequest) IsRedirect() bool

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

func (*NetworkConnectBadRequest) IsServerError

func (o *NetworkConnectBadRequest) IsServerError() bool

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

func (*NetworkConnectBadRequest) IsSuccess

func (o *NetworkConnectBadRequest) IsSuccess() bool

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

func (*NetworkConnectBadRequest) String

func (o *NetworkConnectBadRequest) String() string

type NetworkConnectBadRequestBody

type NetworkConnectBadRequestBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkConnectBadRequestBody network connect bad request body swagger:model NetworkConnectBadRequestBody

func (*NetworkConnectBadRequestBody) ContextValidate

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

ContextValidate validates this network connect bad request body based on context it is used

func (*NetworkConnectBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkConnectBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkConnectBadRequestBody) Validate

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

Validate validates this network connect bad request body

type NetworkConnectInternalServerError

type NetworkConnectInternalServerError struct {
	Payload *NetworkConnectInternalServerErrorBody
}

NetworkConnectInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkConnectInternalServerErrorBody

type NetworkConnectInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkConnectInternalServerErrorBody network connect internal server error body swagger:model NetworkConnectInternalServerErrorBody

func (*NetworkConnectInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network connect internal server error body based on context it is used

func (*NetworkConnectInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkConnectInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkConnectInternalServerErrorBody) Validate

Validate validates this network connect internal server error body

type NetworkConnectOK

type NetworkConnectOK struct {
}

NetworkConnectOK describes a response with status code 200, with default header values.

OK

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 {

	/* Create.

	   attributes for connecting a container to a network
	*/
	Create *models.SwagCompatNetworkConnectRequest

	/* Name.

	   the name of the network
	*/
	Name 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) SetContext

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

SetContext adds the context to the network connect params

func (*NetworkConnectParams) SetCreate

SetCreate adds the create 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) SetName

func (o *NetworkConnectParams) SetName(name string)

SetName adds the name 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) WithContext

WithContext adds the context to the network connect params

func (*NetworkConnectParams) WithCreate

WithCreate adds the create 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) WithName

WithName adds the name 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 NetworkCreateBadRequest

type NetworkCreateBadRequest struct {
	Payload *NetworkCreateBadRequestBody
}

NetworkCreateBadRequest describes a response with status code 400, with default header values.

Bad parameter in request

func NewNetworkCreateBadRequest

func NewNetworkCreateBadRequest() *NetworkCreateBadRequest

NewNetworkCreateBadRequest creates a NetworkCreateBadRequest with default headers values

func (*NetworkCreateBadRequest) Error

func (o *NetworkCreateBadRequest) Error() string

func (*NetworkCreateBadRequest) GetPayload

func (*NetworkCreateBadRequest) IsClientError

func (o *NetworkCreateBadRequest) IsClientError() bool

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

func (*NetworkCreateBadRequest) IsCode

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

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

func (*NetworkCreateBadRequest) IsRedirect

func (o *NetworkCreateBadRequest) IsRedirect() bool

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

func (*NetworkCreateBadRequest) IsServerError

func (o *NetworkCreateBadRequest) IsServerError() bool

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

func (*NetworkCreateBadRequest) IsSuccess

func (o *NetworkCreateBadRequest) IsSuccess() bool

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

func (*NetworkCreateBadRequest) String

func (o *NetworkCreateBadRequest) String() string

type NetworkCreateBadRequestBody

type NetworkCreateBadRequestBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkCreateBadRequestBody network create bad request body swagger:model NetworkCreateBadRequestBody

func (*NetworkCreateBadRequestBody) ContextValidate

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

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

func (*NetworkCreateBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateBadRequestBody) Validate

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

Validate validates this network create bad request body

type NetworkCreateInternalServerError

type NetworkCreateInternalServerError struct {
	Payload *NetworkCreateInternalServerErrorBody
}

NetworkCreateInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkCreateInternalServerErrorBody

type NetworkCreateInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkCreateInternalServerErrorBody network create internal server error body swagger:model NetworkCreateInternalServerErrorBody

func (*NetworkCreateInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network create internal server error body based on context it is used

func (*NetworkCreateInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateInternalServerErrorBody) Validate

Validate validates this network create internal server error body

type NetworkCreateOK

type NetworkCreateOK struct {
	Payload *NetworkCreateOKBody
}

NetworkCreateOK describes a response with status code 200, with default header values.

Network create

func NewNetworkCreateOK

func NewNetworkCreateOK() *NetworkCreateOK

NewNetworkCreateOK creates a NetworkCreateOK with default headers values

func (*NetworkCreateOK) Error

func (o *NetworkCreateOK) Error() string

func (*NetworkCreateOK) GetPayload

func (o *NetworkCreateOK) GetPayload() *NetworkCreateOKBody

func (*NetworkCreateOK) IsClientError

func (o *NetworkCreateOK) IsClientError() bool

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

func (*NetworkCreateOK) IsCode

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

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

func (*NetworkCreateOK) IsRedirect

func (o *NetworkCreateOK) IsRedirect() bool

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

func (*NetworkCreateOK) IsServerError

func (o *NetworkCreateOK) IsServerError() bool

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

func (*NetworkCreateOK) IsSuccess

func (o *NetworkCreateOK) IsSuccess() bool

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

func (*NetworkCreateOK) String

func (o *NetworkCreateOK) String() string

type NetworkCreateOKBody

type NetworkCreateOKBody struct {

	// attachable
	Attachable bool `json:"Attachable,omitempty"`

	// Check for networks with duplicate names.
	// Network is primarily keyed based on a random ID and not on the name.
	// Network name is strictly a user-friendly alias to the network
	// which is uniquely identified using ID.
	// And there is no guaranteed way to check for duplicates.
	// Option 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"`

	// config from
	ConfigFrom *models.ConfigReference `json:"ConfigFrom,omitempty"`

	// config only
	ConfigOnly bool `json:"ConfigOnly,omitempty"`

	// driver
	Driver string `json:"Driver,omitempty"`

	// enable IPv6
	EnableIPV6 bool `json:"EnableIPv6,omitempty"`

	// IP a m
	IPAM *models.IPAM `json:"IPAM,omitempty"`

	// ingress
	Ingress bool `json:"Ingress,omitempty"`

	// internal
	Internal bool `json:"Internal,omitempty"`

	// labels
	Labels map[string]string `json:"Labels,omitempty"`

	// options
	Options map[string]string `json:"Options,omitempty"`

	// scope
	Scope string `json:"Scope,omitempty"`
}

NetworkCreateOKBody network create o k body swagger:model NetworkCreateOKBody

func (*NetworkCreateOKBody) ContextValidate

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

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

func (*NetworkCreateOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateOKBody) Validate

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

Validate validates this network create o k body

type NetworkCreateParams

type NetworkCreateParams struct {

	/* Create.

	   attributes for creating a network
	*/
	Create *models.NetworkCreateRequest

	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) SetCreate

func (o *NetworkCreateParams) SetCreate(create *models.NetworkCreateRequest)

SetCreate adds the create 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) 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) WithCreate

WithCreate adds the create 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) 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 NetworkDeleteInternalServerError

type NetworkDeleteInternalServerError struct {
	Payload *NetworkDeleteInternalServerErrorBody
}

NetworkDeleteInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkDeleteInternalServerErrorBody

type NetworkDeleteInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkDeleteInternalServerErrorBody network delete internal server error body swagger:model NetworkDeleteInternalServerErrorBody

func (*NetworkDeleteInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network delete internal server error body based on context it is used

func (*NetworkDeleteInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDeleteInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDeleteInternalServerErrorBody) Validate

Validate validates this network delete internal server error body

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 *NetworkDeleteNotFoundBody
}

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 (*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 NetworkDeleteNotFoundBody

type NetworkDeleteNotFoundBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkDeleteNotFoundBody network delete not found body swagger:model NetworkDeleteNotFoundBody

func (*NetworkDeleteNotFoundBody) ContextValidate

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

ContextValidate validates this network delete not found body based on context it is used

func (*NetworkDeleteNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDeleteNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDeleteNotFoundBody) Validate

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

Validate validates this network delete not found body

type NetworkDeleteParams

type NetworkDeleteParams struct {

	/* Name.

	   the name of the network
	*/
	Name 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) SetName

func (o *NetworkDeleteParams) SetName(name string)

SetName adds the name 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) WithName

func (o *NetworkDeleteParams) WithName(name string) *NetworkDeleteParams

WithName adds the name 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 NetworkDisconnectBadRequest

type NetworkDisconnectBadRequest struct {
	Payload *NetworkDisconnectBadRequestBody
}

NetworkDisconnectBadRequest describes a response with status code 400, with default header values.

Bad parameter in request

func NewNetworkDisconnectBadRequest

func NewNetworkDisconnectBadRequest() *NetworkDisconnectBadRequest

NewNetworkDisconnectBadRequest creates a NetworkDisconnectBadRequest with default headers values

func (*NetworkDisconnectBadRequest) Error

func (*NetworkDisconnectBadRequest) GetPayload

func (*NetworkDisconnectBadRequest) IsClientError

func (o *NetworkDisconnectBadRequest) IsClientError() bool

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

func (*NetworkDisconnectBadRequest) IsCode

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

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

func (*NetworkDisconnectBadRequest) IsRedirect

func (o *NetworkDisconnectBadRequest) IsRedirect() bool

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

func (*NetworkDisconnectBadRequest) IsServerError

func (o *NetworkDisconnectBadRequest) IsServerError() bool

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

func (*NetworkDisconnectBadRequest) IsSuccess

func (o *NetworkDisconnectBadRequest) IsSuccess() bool

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

func (*NetworkDisconnectBadRequest) String

func (o *NetworkDisconnectBadRequest) String() string

type NetworkDisconnectBadRequestBody

type NetworkDisconnectBadRequestBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkDisconnectBadRequestBody network disconnect bad request body swagger:model NetworkDisconnectBadRequestBody

func (*NetworkDisconnectBadRequestBody) ContextValidate

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

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

func (*NetworkDisconnectBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDisconnectBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDisconnectBadRequestBody) Validate

Validate validates this network disconnect bad request body

type NetworkDisconnectInternalServerError

type NetworkDisconnectInternalServerError struct {
	Payload *NetworkDisconnectInternalServerErrorBody
}

NetworkDisconnectInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkDisconnectInternalServerErrorBody

type NetworkDisconnectInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkDisconnectInternalServerErrorBody network disconnect internal server error body swagger:model NetworkDisconnectInternalServerErrorBody

func (*NetworkDisconnectInternalServerErrorBody) ContextValidate

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

func (*NetworkDisconnectInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDisconnectInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDisconnectInternalServerErrorBody) Validate

Validate validates this network disconnect internal server error body

type NetworkDisconnectOK

type NetworkDisconnectOK struct {
}

NetworkDisconnectOK describes a response with status code 200, with default header values.

OK

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 {

	/* Create.

	   attributes for disconnecting a container from a network
	*/
	Create *models.SwagCompatNetworkDisconnectRequest

	/* Name.

	   the name of the network
	*/
	Name 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) SetContext

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

SetContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) SetCreate

SetCreate adds the create 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) SetName

func (o *NetworkDisconnectParams) SetName(name string)

SetName adds the name 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) WithContext

WithContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) WithCreate

WithCreate adds the create 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) WithName

WithName adds the name 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 *NetworkInspectInternalServerErrorBody
}

NetworkInspectInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkInspectInternalServerErrorBody

type NetworkInspectInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkInspectInternalServerErrorBody network inspect internal server error body swagger:model NetworkInspectInternalServerErrorBody

func (*NetworkInspectInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network inspect internal server error body based on context it is used

func (*NetworkInspectInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkInspectInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkInspectInternalServerErrorBody) Validate

Validate validates this network inspect internal server error body

type NetworkInspectNotFound

type NetworkInspectNotFound struct {
	Payload *NetworkInspectNotFoundBody
}

NetworkInspectNotFound describes a response with status code 404, with default header values.

No such network

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 (*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 NetworkInspectNotFoundBody

type NetworkInspectNotFoundBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkInspectNotFoundBody network inspect not found body swagger:model NetworkInspectNotFoundBody

func (*NetworkInspectNotFoundBody) ContextValidate

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

ContextValidate validates this network inspect not found body based on context it is used

func (*NetworkInspectNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkInspectNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkInspectNotFoundBody) Validate

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

Validate validates this network inspect not found body

type NetworkInspectOK

type NetworkInspectOK struct {
	Payload *models.NetworkResource
}

NetworkInspectOK describes a response with status code 200, with default header values.

Network inspect

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.NetworkResource

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 {

	/* Name.

	   the name of the network
	*/
	Name 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) SetName

func (o *NetworkInspectParams) SetName(name string)

SetName adds the name 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) WithName

WithName adds the name 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 *NetworkListInternalServerErrorBody
}

NetworkListInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkListInternalServerErrorBody

type NetworkListInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkListInternalServerErrorBody network list internal server error body swagger:model NetworkListInternalServerErrorBody

func (*NetworkListInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network list internal server error body based on context it is used

func (*NetworkListInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkListInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkListInternalServerErrorBody) Validate

Validate validates this network list internal server error body

type NetworkListOK

type NetworkListOK struct {
	Payload []*models.NetworkResource
}

NetworkListOK describes a response with status code 200, with default header values.

Network list

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.NetworkResource

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 network list. Currently available filters:
	- `name=[name]` Matches network name (accepts regex).
	- `id=[id]` Matches for full or partial ID.
	- `driver=[driver]` Only bridge is supported.
	- `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value.

	*/
	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 *NetworkPruneInternalServerErrorBody
}

NetworkPruneInternalServerError describes a response with status code 500, with default header values.

Internal 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 NetworkPruneInternalServerErrorBody

type NetworkPruneInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

NetworkPruneInternalServerErrorBody network prune internal server error body swagger:model NetworkPruneInternalServerErrorBody

func (*NetworkPruneInternalServerErrorBody) ContextValidate

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

ContextValidate validates this network prune internal server error body based on context it is used

func (*NetworkPruneInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkPruneInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkPruneInternalServerErrorBody) Validate

Validate validates this network prune internal server error body

type NetworkPruneOK

type NetworkPruneOK struct {
	Payload *NetworkPruneOKBody
}

NetworkPruneOK describes a response with status code 200, with default header values.

OK

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 deleted
	NetworksDeleted []string `json:"NetworksDeleted"`
}

NetworkPruneOKBody network prune o k body 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