Documentation ¶
Index ¶
- type Client
- func (a *Client) NetworkConnect(params *NetworkConnectParams, opts ...ClientOption) (*NetworkConnectOK, error)
- func (a *Client) NetworkCreate(params *NetworkCreateParams, opts ...ClientOption) (*NetworkCreateOK, error)
- func (a *Client) NetworkDelete(params *NetworkDeleteParams, opts ...ClientOption) (*NetworkDeleteNoContent, error)
- func (a *Client) NetworkDisconnect(params *NetworkDisconnectParams, opts ...ClientOption) (*NetworkDisconnectOK, error)
- func (a *Client) NetworkInspect(params *NetworkInspectParams, opts ...ClientOption) (*NetworkInspectOK, error)
- func (a *Client) NetworkList(params *NetworkListParams, opts ...ClientOption) (*NetworkListOK, error)
- func (a *Client) NetworkPrune(params *NetworkPruneParams, opts ...ClientOption) (*NetworkPruneOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type NetworkConnectBadRequest
- func (o *NetworkConnectBadRequest) Error() string
- func (o *NetworkConnectBadRequest) GetPayload() *NetworkConnectBadRequestBody
- func (o *NetworkConnectBadRequest) IsClientError() bool
- func (o *NetworkConnectBadRequest) IsCode(code int) bool
- func (o *NetworkConnectBadRequest) IsRedirect() bool
- func (o *NetworkConnectBadRequest) IsServerError() bool
- func (o *NetworkConnectBadRequest) IsSuccess() bool
- func (o *NetworkConnectBadRequest) String() string
- type NetworkConnectBadRequestBody
- func (o *NetworkConnectBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkConnectBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *NetworkConnectBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *NetworkConnectBadRequestBody) Validate(formats strfmt.Registry) error
- type NetworkConnectInternalServerError
- func (o *NetworkConnectInternalServerError) Error() string
- func (o *NetworkConnectInternalServerError) GetPayload() *NetworkConnectInternalServerErrorBody
- func (o *NetworkConnectInternalServerError) IsClientError() bool
- func (o *NetworkConnectInternalServerError) IsCode(code int) bool
- func (o *NetworkConnectInternalServerError) IsRedirect() bool
- func (o *NetworkConnectInternalServerError) IsServerError() bool
- func (o *NetworkConnectInternalServerError) IsSuccess() bool
- func (o *NetworkConnectInternalServerError) String() string
- type NetworkConnectInternalServerErrorBody
- func (o *NetworkConnectInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkConnectInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkConnectInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkConnectInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkConnectOK
- func (o *NetworkConnectOK) Error() string
- func (o *NetworkConnectOK) IsClientError() bool
- func (o *NetworkConnectOK) IsCode(code int) bool
- func (o *NetworkConnectOK) IsRedirect() bool
- func (o *NetworkConnectOK) IsServerError() bool
- func (o *NetworkConnectOK) IsSuccess() bool
- func (o *NetworkConnectOK) String() string
- type NetworkConnectParams
- func NewNetworkConnectParams() *NetworkConnectParams
- func NewNetworkConnectParamsWithContext(ctx context.Context) *NetworkConnectParams
- func NewNetworkConnectParamsWithHTTPClient(client *http.Client) *NetworkConnectParams
- func NewNetworkConnectParamsWithTimeout(timeout time.Duration) *NetworkConnectParams
- func (o *NetworkConnectParams) SetContext(ctx context.Context)
- func (o *NetworkConnectParams) SetCreate(create *models.SwagCompatNetworkConnectRequest)
- func (o *NetworkConnectParams) SetDefaults()
- func (o *NetworkConnectParams) SetHTTPClient(client *http.Client)
- func (o *NetworkConnectParams) SetName(name string)
- func (o *NetworkConnectParams) SetTimeout(timeout time.Duration)
- func (o *NetworkConnectParams) WithContext(ctx context.Context) *NetworkConnectParams
- func (o *NetworkConnectParams) WithCreate(create *models.SwagCompatNetworkConnectRequest) *NetworkConnectParams
- func (o *NetworkConnectParams) WithDefaults() *NetworkConnectParams
- func (o *NetworkConnectParams) WithHTTPClient(client *http.Client) *NetworkConnectParams
- func (o *NetworkConnectParams) WithName(name string) *NetworkConnectParams
- func (o *NetworkConnectParams) WithTimeout(timeout time.Duration) *NetworkConnectParams
- func (o *NetworkConnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkConnectReader
- type NetworkCreateBadRequest
- func (o *NetworkCreateBadRequest) Error() string
- func (o *NetworkCreateBadRequest) GetPayload() *NetworkCreateBadRequestBody
- func (o *NetworkCreateBadRequest) IsClientError() bool
- func (o *NetworkCreateBadRequest) IsCode(code int) bool
- func (o *NetworkCreateBadRequest) IsRedirect() bool
- func (o *NetworkCreateBadRequest) IsServerError() bool
- func (o *NetworkCreateBadRequest) IsSuccess() bool
- func (o *NetworkCreateBadRequest) String() string
- type NetworkCreateBadRequestBody
- func (o *NetworkCreateBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkCreateBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *NetworkCreateBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *NetworkCreateBadRequestBody) Validate(formats strfmt.Registry) error
- type NetworkCreateInternalServerError
- func (o *NetworkCreateInternalServerError) Error() string
- func (o *NetworkCreateInternalServerError) GetPayload() *NetworkCreateInternalServerErrorBody
- func (o *NetworkCreateInternalServerError) IsClientError() bool
- func (o *NetworkCreateInternalServerError) IsCode(code int) bool
- func (o *NetworkCreateInternalServerError) IsRedirect() bool
- func (o *NetworkCreateInternalServerError) IsServerError() bool
- func (o *NetworkCreateInternalServerError) IsSuccess() bool
- func (o *NetworkCreateInternalServerError) String() string
- type NetworkCreateInternalServerErrorBody
- func (o *NetworkCreateInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkCreateInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkCreateInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkCreateInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkCreateOK
- func (o *NetworkCreateOK) Error() string
- func (o *NetworkCreateOK) GetPayload() *NetworkCreateOKBody
- func (o *NetworkCreateOK) IsClientError() bool
- func (o *NetworkCreateOK) IsCode(code int) bool
- func (o *NetworkCreateOK) IsRedirect() bool
- func (o *NetworkCreateOK) IsServerError() bool
- func (o *NetworkCreateOK) IsSuccess() bool
- func (o *NetworkCreateOK) String() string
- type NetworkCreateOKBody
- type NetworkCreateParams
- func (o *NetworkCreateParams) SetContext(ctx context.Context)
- func (o *NetworkCreateParams) SetCreate(create *models.NetworkCreateRequest)
- func (o *NetworkCreateParams) SetDefaults()
- func (o *NetworkCreateParams) SetHTTPClient(client *http.Client)
- func (o *NetworkCreateParams) SetTimeout(timeout time.Duration)
- func (o *NetworkCreateParams) WithContext(ctx context.Context) *NetworkCreateParams
- func (o *NetworkCreateParams) WithCreate(create *models.NetworkCreateRequest) *NetworkCreateParams
- func (o *NetworkCreateParams) WithDefaults() *NetworkCreateParams
- func (o *NetworkCreateParams) WithHTTPClient(client *http.Client) *NetworkCreateParams
- func (o *NetworkCreateParams) WithTimeout(timeout time.Duration) *NetworkCreateParams
- func (o *NetworkCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkCreateReader
- type NetworkDeleteInternalServerError
- func (o *NetworkDeleteInternalServerError) Error() string
- func (o *NetworkDeleteInternalServerError) GetPayload() *NetworkDeleteInternalServerErrorBody
- func (o *NetworkDeleteInternalServerError) IsClientError() bool
- func (o *NetworkDeleteInternalServerError) IsCode(code int) bool
- func (o *NetworkDeleteInternalServerError) IsRedirect() bool
- func (o *NetworkDeleteInternalServerError) IsServerError() bool
- func (o *NetworkDeleteInternalServerError) IsSuccess() bool
- func (o *NetworkDeleteInternalServerError) String() string
- type NetworkDeleteInternalServerErrorBody
- func (o *NetworkDeleteInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkDeleteInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkDeleteInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkDeleteInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkDeleteNoContent
- func (o *NetworkDeleteNoContent) Error() string
- func (o *NetworkDeleteNoContent) IsClientError() bool
- func (o *NetworkDeleteNoContent) IsCode(code int) bool
- func (o *NetworkDeleteNoContent) IsRedirect() bool
- func (o *NetworkDeleteNoContent) IsServerError() bool
- func (o *NetworkDeleteNoContent) IsSuccess() bool
- func (o *NetworkDeleteNoContent) String() string
- type NetworkDeleteNotFound
- func (o *NetworkDeleteNotFound) Error() string
- func (o *NetworkDeleteNotFound) GetPayload() *NetworkDeleteNotFoundBody
- func (o *NetworkDeleteNotFound) IsClientError() bool
- func (o *NetworkDeleteNotFound) IsCode(code int) bool
- func (o *NetworkDeleteNotFound) IsRedirect() bool
- func (o *NetworkDeleteNotFound) IsServerError() bool
- func (o *NetworkDeleteNotFound) IsSuccess() bool
- func (o *NetworkDeleteNotFound) String() string
- type NetworkDeleteNotFoundBody
- func (o *NetworkDeleteNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkDeleteNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *NetworkDeleteNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *NetworkDeleteNotFoundBody) Validate(formats strfmt.Registry) error
- type NetworkDeleteParams
- func (o *NetworkDeleteParams) SetContext(ctx context.Context)
- func (o *NetworkDeleteParams) SetDefaults()
- func (o *NetworkDeleteParams) SetHTTPClient(client *http.Client)
- func (o *NetworkDeleteParams) SetName(name string)
- func (o *NetworkDeleteParams) SetTimeout(timeout time.Duration)
- func (o *NetworkDeleteParams) WithContext(ctx context.Context) *NetworkDeleteParams
- func (o *NetworkDeleteParams) WithDefaults() *NetworkDeleteParams
- func (o *NetworkDeleteParams) WithHTTPClient(client *http.Client) *NetworkDeleteParams
- func (o *NetworkDeleteParams) WithName(name string) *NetworkDeleteParams
- func (o *NetworkDeleteParams) WithTimeout(timeout time.Duration) *NetworkDeleteParams
- func (o *NetworkDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkDeleteReader
- type NetworkDisconnectBadRequest
- func (o *NetworkDisconnectBadRequest) Error() string
- func (o *NetworkDisconnectBadRequest) GetPayload() *NetworkDisconnectBadRequestBody
- func (o *NetworkDisconnectBadRequest) IsClientError() bool
- func (o *NetworkDisconnectBadRequest) IsCode(code int) bool
- func (o *NetworkDisconnectBadRequest) IsRedirect() bool
- func (o *NetworkDisconnectBadRequest) IsServerError() bool
- func (o *NetworkDisconnectBadRequest) IsSuccess() bool
- func (o *NetworkDisconnectBadRequest) String() string
- type NetworkDisconnectBadRequestBody
- func (o *NetworkDisconnectBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkDisconnectBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *NetworkDisconnectBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *NetworkDisconnectBadRequestBody) Validate(formats strfmt.Registry) error
- type NetworkDisconnectInternalServerError
- func (o *NetworkDisconnectInternalServerError) Error() string
- func (o *NetworkDisconnectInternalServerError) GetPayload() *NetworkDisconnectInternalServerErrorBody
- func (o *NetworkDisconnectInternalServerError) IsClientError() bool
- func (o *NetworkDisconnectInternalServerError) IsCode(code int) bool
- func (o *NetworkDisconnectInternalServerError) IsRedirect() bool
- func (o *NetworkDisconnectInternalServerError) IsServerError() bool
- func (o *NetworkDisconnectInternalServerError) IsSuccess() bool
- func (o *NetworkDisconnectInternalServerError) String() string
- type NetworkDisconnectInternalServerErrorBody
- func (o *NetworkDisconnectInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkDisconnectInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkDisconnectInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkDisconnectInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkDisconnectOK
- func (o *NetworkDisconnectOK) Error() string
- func (o *NetworkDisconnectOK) IsClientError() bool
- func (o *NetworkDisconnectOK) IsCode(code int) bool
- func (o *NetworkDisconnectOK) IsRedirect() bool
- func (o *NetworkDisconnectOK) IsServerError() bool
- func (o *NetworkDisconnectOK) IsSuccess() bool
- func (o *NetworkDisconnectOK) String() string
- type NetworkDisconnectParams
- func NewNetworkDisconnectParams() *NetworkDisconnectParams
- func NewNetworkDisconnectParamsWithContext(ctx context.Context) *NetworkDisconnectParams
- func NewNetworkDisconnectParamsWithHTTPClient(client *http.Client) *NetworkDisconnectParams
- func NewNetworkDisconnectParamsWithTimeout(timeout time.Duration) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) SetContext(ctx context.Context)
- func (o *NetworkDisconnectParams) SetCreate(create *models.SwagCompatNetworkDisconnectRequest)
- func (o *NetworkDisconnectParams) SetDefaults()
- func (o *NetworkDisconnectParams) SetHTTPClient(client *http.Client)
- func (o *NetworkDisconnectParams) SetName(name string)
- func (o *NetworkDisconnectParams) SetTimeout(timeout time.Duration)
- func (o *NetworkDisconnectParams) WithContext(ctx context.Context) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WithCreate(create *models.SwagCompatNetworkDisconnectRequest) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WithDefaults() *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WithHTTPClient(client *http.Client) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WithName(name string) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WithTimeout(timeout time.Duration) *NetworkDisconnectParams
- func (o *NetworkDisconnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkDisconnectReader
- type NetworkInspectInternalServerError
- func (o *NetworkInspectInternalServerError) Error() string
- func (o *NetworkInspectInternalServerError) GetPayload() *NetworkInspectInternalServerErrorBody
- func (o *NetworkInspectInternalServerError) IsClientError() bool
- func (o *NetworkInspectInternalServerError) IsCode(code int) bool
- func (o *NetworkInspectInternalServerError) IsRedirect() bool
- func (o *NetworkInspectInternalServerError) IsServerError() bool
- func (o *NetworkInspectInternalServerError) IsSuccess() bool
- func (o *NetworkInspectInternalServerError) String() string
- type NetworkInspectInternalServerErrorBody
- func (o *NetworkInspectInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkInspectInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkInspectInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkInspectInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkInspectNotFound
- func (o *NetworkInspectNotFound) Error() string
- func (o *NetworkInspectNotFound) GetPayload() *NetworkInspectNotFoundBody
- func (o *NetworkInspectNotFound) IsClientError() bool
- func (o *NetworkInspectNotFound) IsCode(code int) bool
- func (o *NetworkInspectNotFound) IsRedirect() bool
- func (o *NetworkInspectNotFound) IsServerError() bool
- func (o *NetworkInspectNotFound) IsSuccess() bool
- func (o *NetworkInspectNotFound) String() string
- type NetworkInspectNotFoundBody
- func (o *NetworkInspectNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkInspectNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *NetworkInspectNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *NetworkInspectNotFoundBody) Validate(formats strfmt.Registry) error
- type NetworkInspectOK
- func (o *NetworkInspectOK) Error() string
- func (o *NetworkInspectOK) GetPayload() *models.NetworkResource
- func (o *NetworkInspectOK) IsClientError() bool
- func (o *NetworkInspectOK) IsCode(code int) bool
- func (o *NetworkInspectOK) IsRedirect() bool
- func (o *NetworkInspectOK) IsServerError() bool
- func (o *NetworkInspectOK) IsSuccess() bool
- func (o *NetworkInspectOK) String() string
- type NetworkInspectParams
- func NewNetworkInspectParams() *NetworkInspectParams
- func NewNetworkInspectParamsWithContext(ctx context.Context) *NetworkInspectParams
- func NewNetworkInspectParamsWithHTTPClient(client *http.Client) *NetworkInspectParams
- func NewNetworkInspectParamsWithTimeout(timeout time.Duration) *NetworkInspectParams
- func (o *NetworkInspectParams) SetContext(ctx context.Context)
- func (o *NetworkInspectParams) SetDefaults()
- func (o *NetworkInspectParams) SetHTTPClient(client *http.Client)
- func (o *NetworkInspectParams) SetName(name string)
- func (o *NetworkInspectParams) SetScope(scope *string)
- func (o *NetworkInspectParams) SetTimeout(timeout time.Duration)
- func (o *NetworkInspectParams) SetVerbose(verbose *bool)
- func (o *NetworkInspectParams) WithContext(ctx context.Context) *NetworkInspectParams
- func (o *NetworkInspectParams) WithDefaults() *NetworkInspectParams
- func (o *NetworkInspectParams) WithHTTPClient(client *http.Client) *NetworkInspectParams
- func (o *NetworkInspectParams) WithName(name string) *NetworkInspectParams
- func (o *NetworkInspectParams) WithScope(scope *string) *NetworkInspectParams
- func (o *NetworkInspectParams) WithTimeout(timeout time.Duration) *NetworkInspectParams
- func (o *NetworkInspectParams) WithVerbose(verbose *bool) *NetworkInspectParams
- func (o *NetworkInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkInspectReader
- type NetworkListInternalServerError
- func (o *NetworkListInternalServerError) Error() string
- func (o *NetworkListInternalServerError) GetPayload() *NetworkListInternalServerErrorBody
- func (o *NetworkListInternalServerError) IsClientError() bool
- func (o *NetworkListInternalServerError) IsCode(code int) bool
- func (o *NetworkListInternalServerError) IsRedirect() bool
- func (o *NetworkListInternalServerError) IsServerError() bool
- func (o *NetworkListInternalServerError) IsSuccess() bool
- func (o *NetworkListInternalServerError) String() string
- type NetworkListInternalServerErrorBody
- func (o *NetworkListInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkListInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkListInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkListInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkListOK
- func (o *NetworkListOK) Error() string
- func (o *NetworkListOK) GetPayload() []*models.NetworkResource
- func (o *NetworkListOK) IsClientError() bool
- func (o *NetworkListOK) IsCode(code int) bool
- func (o *NetworkListOK) IsRedirect() bool
- func (o *NetworkListOK) IsServerError() bool
- func (o *NetworkListOK) IsSuccess() bool
- func (o *NetworkListOK) String() string
- type NetworkListParams
- func (o *NetworkListParams) SetContext(ctx context.Context)
- func (o *NetworkListParams) SetDefaults()
- func (o *NetworkListParams) SetFilters(filters *string)
- func (o *NetworkListParams) SetHTTPClient(client *http.Client)
- func (o *NetworkListParams) SetTimeout(timeout time.Duration)
- func (o *NetworkListParams) WithContext(ctx context.Context) *NetworkListParams
- func (o *NetworkListParams) WithDefaults() *NetworkListParams
- func (o *NetworkListParams) WithFilters(filters *string) *NetworkListParams
- func (o *NetworkListParams) WithHTTPClient(client *http.Client) *NetworkListParams
- func (o *NetworkListParams) WithTimeout(timeout time.Duration) *NetworkListParams
- func (o *NetworkListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkListReader
- type NetworkPruneInternalServerError
- func (o *NetworkPruneInternalServerError) Error() string
- func (o *NetworkPruneInternalServerError) GetPayload() *NetworkPruneInternalServerErrorBody
- func (o *NetworkPruneInternalServerError) IsClientError() bool
- func (o *NetworkPruneInternalServerError) IsCode(code int) bool
- func (o *NetworkPruneInternalServerError) IsRedirect() bool
- func (o *NetworkPruneInternalServerError) IsServerError() bool
- func (o *NetworkPruneInternalServerError) IsSuccess() bool
- func (o *NetworkPruneInternalServerError) String() string
- type NetworkPruneInternalServerErrorBody
- func (o *NetworkPruneInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *NetworkPruneInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *NetworkPruneInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *NetworkPruneInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type NetworkPruneOK
- func (o *NetworkPruneOK) Error() string
- func (o *NetworkPruneOK) GetPayload() *NetworkPruneOKBody
- func (o *NetworkPruneOK) IsClientError() bool
- func (o *NetworkPruneOK) IsCode(code int) bool
- func (o *NetworkPruneOK) IsRedirect() bool
- func (o *NetworkPruneOK) IsServerError() bool
- func (o *NetworkPruneOK) IsSuccess() bool
- func (o *NetworkPruneOK) String() string
- type NetworkPruneOKBody
- type NetworkPruneParams
- func (o *NetworkPruneParams) SetContext(ctx context.Context)
- func (o *NetworkPruneParams) SetDefaults()
- func (o *NetworkPruneParams) SetFilters(filters *string)
- func (o *NetworkPruneParams) SetHTTPClient(client *http.Client)
- func (o *NetworkPruneParams) SetTimeout(timeout time.Duration)
- func (o *NetworkPruneParams) WithContext(ctx context.Context) *NetworkPruneParams
- func (o *NetworkPruneParams) WithDefaults() *NetworkPruneParams
- func (o *NetworkPruneParams) WithFilters(filters *string) *NetworkPruneParams
- func (o *NetworkPruneParams) WithHTTPClient(client *http.Client) *NetworkPruneParams
- func (o *NetworkPruneParams) WithTimeout(timeout time.Duration) *NetworkPruneParams
- func (o *NetworkPruneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetworkPruneReader
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 (o *NetworkConnectBadRequest) GetPayload() *NetworkConnectBadRequestBody
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
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 (o *NetworkConnectInternalServerError) Error() string
func (*NetworkConnectInternalServerError) GetPayload ¶
func (o *NetworkConnectInternalServerError) GetPayload() *NetworkConnectInternalServerErrorBody
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 ¶
func (o *NetworkConnectInternalServerError) String() 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
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 ¶
func (o *NetworkConnectParams) SetCreate(create *models.SwagCompatNetworkConnectRequest)
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 ¶
func (o *NetworkConnectParams) WithContext(ctx context.Context) *NetworkConnectParams
WithContext adds the context to the network connect params
func (*NetworkConnectParams) WithCreate ¶
func (o *NetworkConnectParams) WithCreate(create *models.SwagCompatNetworkConnectRequest) *NetworkConnectParams
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 ¶
func (o *NetworkConnectParams) WithName(name string) *NetworkConnectParams
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 (o *NetworkCreateBadRequest) GetPayload() *NetworkCreateBadRequestBody
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
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 (o *NetworkCreateInternalServerError) Error() string
func (*NetworkCreateInternalServerError) GetPayload ¶
func (o *NetworkCreateInternalServerError) GetPayload() *NetworkCreateInternalServerErrorBody
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 ¶
func (o *NetworkCreateInternalServerError) String() 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
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 ¶
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
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 ¶
func (o *NetworkCreateParams) WithContext(ctx context.Context) *NetworkCreateParams
WithContext adds the context to the network create params
func (*NetworkCreateParams) WithCreate ¶
func (o *NetworkCreateParams) WithCreate(create *models.NetworkCreateRequest) *NetworkCreateParams
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 (o *NetworkDeleteInternalServerError) Error() string
func (*NetworkDeleteInternalServerError) GetPayload ¶
func (o *NetworkDeleteInternalServerError) GetPayload() *NetworkDeleteInternalServerErrorBody
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 ¶
func (o *NetworkDeleteInternalServerError) String() 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
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 (o *NetworkDeleteNotFound) GetPayload() *NetworkDeleteNotFoundBody
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
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 ¶
func (o *NetworkDeleteParams) WithContext(ctx context.Context) *NetworkDeleteParams
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 (o *NetworkDisconnectBadRequest) Error() string
func (*NetworkDisconnectBadRequest) GetPayload ¶
func (o *NetworkDisconnectBadRequest) GetPayload() *NetworkDisconnectBadRequestBody
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
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 (o *NetworkDisconnectInternalServerError) Error() string
func (*NetworkDisconnectInternalServerError) GetPayload ¶
func (o *NetworkDisconnectInternalServerError) GetPayload() *NetworkDisconnectInternalServerErrorBody
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 ¶
func (o *NetworkDisconnectInternalServerError) IsCode(code int) bool
IsCode returns true when this network disconnect internal server error response a status code equal to that given
func (*NetworkDisconnectInternalServerError) IsRedirect ¶
func (o *NetworkDisconnectInternalServerError) IsRedirect() bool
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 ¶
func (o *NetworkDisconnectInternalServerError) IsSuccess() bool
IsSuccess returns true when this network disconnect internal server error response has a 2xx status code
func (*NetworkDisconnectInternalServerError) String ¶
func (o *NetworkDisconnectInternalServerError) String() 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 ¶
func (o *NetworkDisconnectInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *NetworkDisconnectParams) SetCreate(create *models.SwagCompatNetworkDisconnectRequest)
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 ¶
func (o *NetworkDisconnectParams) WithContext(ctx context.Context) *NetworkDisconnectParams
WithContext adds the context to the network disconnect params
func (*NetworkDisconnectParams) WithCreate ¶
func (o *NetworkDisconnectParams) WithCreate(create *models.SwagCompatNetworkDisconnectRequest) *NetworkDisconnectParams
WithCreate adds the create to the network disconnect params
func (*NetworkDisconnectParams) WithDefaults ¶
func (o *NetworkDisconnectParams) WithDefaults() *NetworkDisconnectParams
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 ¶
func (o *NetworkDisconnectParams) WithName(name string) *NetworkDisconnectParams
WithName adds the name to the network disconnect params
func (*NetworkDisconnectParams) WithTimeout ¶
func (o *NetworkDisconnectParams) WithTimeout(timeout time.Duration) *NetworkDisconnectParams
WithTimeout adds the timeout to the network disconnect params
func (*NetworkDisconnectParams) WriteToRequest ¶
func (o *NetworkDisconnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *NetworkInspectInternalServerError) Error() string
func (*NetworkInspectInternalServerError) GetPayload ¶
func (o *NetworkInspectInternalServerError) GetPayload() *NetworkInspectInternalServerErrorBody
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 ¶
func (o *NetworkInspectInternalServerError) String() 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
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 (o *NetworkInspectNotFound) GetPayload() *NetworkInspectNotFoundBody
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
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 ¶
func (o *NetworkInspectParams) WithContext(ctx context.Context) *NetworkInspectParams
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 ¶
func (o *NetworkInspectParams) WithName(name string) *NetworkInspectParams
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 (o *NetworkListInternalServerError) Error() string
func (*NetworkListInternalServerError) GetPayload ¶
func (o *NetworkListInternalServerError) GetPayload() *NetworkListInternalServerErrorBody
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 ¶
func (o *NetworkListInternalServerError) String() 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
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 (o *NetworkPruneInternalServerError) Error() string
func (*NetworkPruneInternalServerError) GetPayload ¶
func (o *NetworkPruneInternalServerError) GetPayload() *NetworkPruneInternalServerErrorBody
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 ¶
func (o *NetworkPruneInternalServerError) String() 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
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 ¶
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
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 ¶
func (o *NetworkPruneParams) WithContext(ctx context.Context) *NetworkPruneParams
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.
Source Files ¶
- network_connect_parameters.go
- network_connect_responses.go
- network_create_parameters.go
- network_create_responses.go
- network_delete_parameters.go
- network_delete_responses.go
- network_disconnect_parameters.go
- network_disconnect_responses.go
- network_inspect_parameters.go
- network_inspect_responses.go
- network_list_parameters.go
- network_list_responses.go
- network_prune_parameters.go
- network_prune_responses.go
- networks_compat_client.go