network

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for network API

func New

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

New creates a new network API client.

func (*Client) NetworkConnect

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

NetworkConnect connects a container to a network

func (*Client) NetworkCreate

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

NetworkCreate creates a network

func (*Client) NetworkDelete

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

NetworkDelete removes a network

func (*Client) NetworkDisconnect

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

NetworkDisconnect disconnects a container from a network

func (*Client) NetworkInspect

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

NetworkInspect inspects a network

func (*Client) NetworkList

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

NetworkList lists networks

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

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

func (*Client) NetworkPrune

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

NetworkPrune deletes unused networks

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type NetworkConnectBody

type NetworkConnectBody struct {

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

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

NetworkConnectBody network connect body swagger:model NetworkConnectBody

func (*NetworkConnectBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkConnectBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkConnectBody) Validate

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

Validate validates this network connect body

type NetworkConnectForbidden

type NetworkConnectForbidden struct {
	Payload *models.ErrorResponse
}

NetworkConnectForbidden handles this case with default header values.

Operation not supported for swarm scoped networks

func NewNetworkConnectForbidden

func NewNetworkConnectForbidden() *NetworkConnectForbidden

NewNetworkConnectForbidden creates a NetworkConnectForbidden with default headers values

func (*NetworkConnectForbidden) Error

func (o *NetworkConnectForbidden) Error() string

type NetworkConnectInternalServerError

type NetworkConnectInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkConnectInternalServerError handles this case with default header values.

Server error

func NewNetworkConnectInternalServerError

func NewNetworkConnectInternalServerError() *NetworkConnectInternalServerError

NewNetworkConnectInternalServerError creates a NetworkConnectInternalServerError with default headers values

func (*NetworkConnectInternalServerError) Error

type NetworkConnectNotFound

type NetworkConnectNotFound struct {
	Payload *models.ErrorResponse
}

NetworkConnectNotFound handles this case with default header values.

Network or container not found

func NewNetworkConnectNotFound

func NewNetworkConnectNotFound() *NetworkConnectNotFound

NewNetworkConnectNotFound creates a NetworkConnectNotFound with default headers values

func (*NetworkConnectNotFound) Error

func (o *NetworkConnectNotFound) Error() string

type NetworkConnectOK

type NetworkConnectOK struct {
}

NetworkConnectOK handles this case with default header values.

No error

func NewNetworkConnectOK

func NewNetworkConnectOK() *NetworkConnectOK

NewNetworkConnectOK creates a NetworkConnectOK with default headers values

func (*NetworkConnectOK) Error

func (o *NetworkConnectOK) Error() string

type NetworkConnectParams

type NetworkConnectParams struct {

	/*Container*/
	Container NetworkConnectBody
	/*ID
	  Network ID or name

	*/
	ID string

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

NetworkConnectParams contains all the parameters to send to the API endpoint for the network connect operation typically these are written to a http.Request

func NewNetworkConnectParams

func NewNetworkConnectParams() *NetworkConnectParams

NewNetworkConnectParams creates a new NetworkConnectParams object with the default values initialized.

func NewNetworkConnectParamsWithContext

func NewNetworkConnectParamsWithContext(ctx context.Context) *NetworkConnectParams

NewNetworkConnectParamsWithContext creates a new NetworkConnectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*NetworkConnectParams) SetContainer

func (o *NetworkConnectParams) SetContainer(container NetworkConnectBody)

SetContainer adds the container to the network connect params

func (*NetworkConnectParams) SetContext

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

SetContext adds the context to the network connect params

func (*NetworkConnectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network connect params

func (*NetworkConnectParams) SetID

func (o *NetworkConnectParams) SetID(id string)

SetID adds the id to the network connect params

func (*NetworkConnectParams) SetTimeout

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

SetTimeout adds the timeout to the network connect params

func (*NetworkConnectParams) WithContainer

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

WithContainer adds the container to the network connect params

func (*NetworkConnectParams) WithContext

WithContext adds the context to the network connect params

func (*NetworkConnectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network connect params

func (*NetworkConnectParams) WithID

WithID adds the id to the network connect params

func (*NetworkConnectParams) WithTimeout

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

WithTimeout adds the timeout to the network connect params

func (*NetworkConnectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkConnectReader

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

NetworkConnectReader is a Reader for the NetworkConnect structure.

func (*NetworkConnectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkCreateBody

type NetworkCreateBody struct {

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

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

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

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

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

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

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

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

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

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

NetworkCreateBody network create body swagger:model NetworkCreateBody

func (*NetworkCreateBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateBody) Validate

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

Validate validates this network create body

type NetworkCreateCreated

type NetworkCreateCreated struct {
	Payload *NetworkCreateCreatedBody
}

NetworkCreateCreated handles this case with default header values.

No error

func NewNetworkCreateCreated

func NewNetworkCreateCreated() *NetworkCreateCreated

NewNetworkCreateCreated creates a NetworkCreateCreated with default headers values

func (*NetworkCreateCreated) Error

func (o *NetworkCreateCreated) Error() string

type NetworkCreateCreatedBody

type NetworkCreateCreatedBody struct {

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

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

NetworkCreateCreatedBody NetworkCreateResponse swagger:model NetworkCreateCreatedBody

func (*NetworkCreateCreatedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateCreatedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateCreatedBody) Validate

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

Validate validates this network create created body

type NetworkCreateForbidden

type NetworkCreateForbidden struct {
	Payload *models.ErrorResponse
}

NetworkCreateForbidden handles this case with default header values.

operation not supported for pre-defined networks

func NewNetworkCreateForbidden

func NewNetworkCreateForbidden() *NetworkCreateForbidden

NewNetworkCreateForbidden creates a NetworkCreateForbidden with default headers values

func (*NetworkCreateForbidden) Error

func (o *NetworkCreateForbidden) Error() string

type NetworkCreateInternalServerError

type NetworkCreateInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkCreateInternalServerError handles this case with default header values.

Server error

func NewNetworkCreateInternalServerError

func NewNetworkCreateInternalServerError() *NetworkCreateInternalServerError

NewNetworkCreateInternalServerError creates a NetworkCreateInternalServerError with default headers values

func (*NetworkCreateInternalServerError) Error

type NetworkCreateNotFound

type NetworkCreateNotFound struct {
	Payload *models.ErrorResponse
}

NetworkCreateNotFound handles this case with default header values.

plugin not found

func NewNetworkCreateNotFound

func NewNetworkCreateNotFound() *NetworkCreateNotFound

NewNetworkCreateNotFound creates a NetworkCreateNotFound with default headers values

func (*NetworkCreateNotFound) Error

func (o *NetworkCreateNotFound) Error() string

type NetworkCreateParams

type NetworkCreateParams struct {

	/*NetworkConfig
	  Network configuration

	*/
	NetworkConfig NetworkCreateBody

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

NetworkCreateParams contains all the parameters to send to the API endpoint for the network create operation typically these are written to a http.Request

func NewNetworkCreateParams

func NewNetworkCreateParams() *NetworkCreateParams

NewNetworkCreateParams creates a new NetworkCreateParams object with the default values initialized.

func NewNetworkCreateParamsWithContext

func NewNetworkCreateParamsWithContext(ctx context.Context) *NetworkCreateParams

NewNetworkCreateParamsWithContext creates a new NetworkCreateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network create params

func (*NetworkCreateParams) SetNetworkConfig

func (o *NetworkCreateParams) SetNetworkConfig(networkConfig NetworkCreateBody)

SetNetworkConfig adds the networkConfig to the network create params

func (*NetworkCreateParams) SetTimeout

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

SetTimeout adds the timeout to the network create params

func (*NetworkCreateParams) WithContext

WithContext adds the context to the network create params

func (*NetworkCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network create params

func (*NetworkCreateParams) WithNetworkConfig

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

WithNetworkConfig adds the networkConfig to the network create params

func (*NetworkCreateParams) WithTimeout

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

WithTimeout adds the timeout to the network create params

func (*NetworkCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkCreateReader

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

NetworkCreateReader is a Reader for the NetworkCreate structure.

func (*NetworkCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkDeleteForbidden

type NetworkDeleteForbidden struct {
	Payload *models.ErrorResponse
}

NetworkDeleteForbidden handles this case with default header values.

operation not supported for pre-defined networks

func NewNetworkDeleteForbidden

func NewNetworkDeleteForbidden() *NetworkDeleteForbidden

NewNetworkDeleteForbidden creates a NetworkDeleteForbidden with default headers values

func (*NetworkDeleteForbidden) Error

func (o *NetworkDeleteForbidden) Error() string

type NetworkDeleteInternalServerError

type NetworkDeleteInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkDeleteInternalServerError handles this case with default header values.

Server error

func NewNetworkDeleteInternalServerError

func NewNetworkDeleteInternalServerError() *NetworkDeleteInternalServerError

NewNetworkDeleteInternalServerError creates a NetworkDeleteInternalServerError with default headers values

func (*NetworkDeleteInternalServerError) Error

type NetworkDeleteNoContent

type NetworkDeleteNoContent struct {
}

NetworkDeleteNoContent handles this case 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

type NetworkDeleteNotFound

type NetworkDeleteNotFound struct {
	Payload *models.ErrorResponse
}

NetworkDeleteNotFound handles this case 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

type NetworkDeleteParams

type NetworkDeleteParams struct {

	/*ID
	  Network ID or name

	*/
	ID string

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

NetworkDeleteParams contains all the parameters to send to the API endpoint for the network delete operation typically these are written to a http.Request

func NewNetworkDeleteParams

func NewNetworkDeleteParams() *NetworkDeleteParams

NewNetworkDeleteParams creates a new NetworkDeleteParams object with the default values initialized.

func NewNetworkDeleteParamsWithContext

func NewNetworkDeleteParamsWithContext(ctx context.Context) *NetworkDeleteParams

NewNetworkDeleteParamsWithContext creates a new NetworkDeleteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network delete params

func (*NetworkDeleteParams) SetID

func (o *NetworkDeleteParams) SetID(id string)

SetID adds the id to the network delete params

func (*NetworkDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the network delete params

func (*NetworkDeleteParams) WithContext

WithContext adds the context to the network delete params

func (*NetworkDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network delete params

func (*NetworkDeleteParams) WithID

WithID adds the id to the network delete params

func (*NetworkDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the network delete params

func (*NetworkDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkDeleteReader

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

NetworkDeleteReader is a Reader for the NetworkDelete structure.

func (*NetworkDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkDisconnectBody

type NetworkDisconnectBody struct {

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

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

NetworkDisconnectBody network disconnect body swagger:model NetworkDisconnectBody

func (*NetworkDisconnectBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDisconnectBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDisconnectBody) Validate

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

Validate validates this network disconnect body

type NetworkDisconnectForbidden

type NetworkDisconnectForbidden struct {
	Payload *models.ErrorResponse
}

NetworkDisconnectForbidden handles this case with default header values.

Operation not supported for swarm scoped networks

func NewNetworkDisconnectForbidden

func NewNetworkDisconnectForbidden() *NetworkDisconnectForbidden

NewNetworkDisconnectForbidden creates a NetworkDisconnectForbidden with default headers values

func (*NetworkDisconnectForbidden) Error

type NetworkDisconnectInternalServerError

type NetworkDisconnectInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkDisconnectInternalServerError handles this case with default header values.

Server error

func NewNetworkDisconnectInternalServerError

func NewNetworkDisconnectInternalServerError() *NetworkDisconnectInternalServerError

NewNetworkDisconnectInternalServerError creates a NetworkDisconnectInternalServerError with default headers values

func (*NetworkDisconnectInternalServerError) Error

type NetworkDisconnectNotFound

type NetworkDisconnectNotFound struct {
	Payload *models.ErrorResponse
}

NetworkDisconnectNotFound handles this case with default header values.

Network or container not found

func NewNetworkDisconnectNotFound

func NewNetworkDisconnectNotFound() *NetworkDisconnectNotFound

NewNetworkDisconnectNotFound creates a NetworkDisconnectNotFound with default headers values

func (*NetworkDisconnectNotFound) Error

func (o *NetworkDisconnectNotFound) Error() string

type NetworkDisconnectOK

type NetworkDisconnectOK struct {
}

NetworkDisconnectOK handles this case with default header values.

No error

func NewNetworkDisconnectOK

func NewNetworkDisconnectOK() *NetworkDisconnectOK

NewNetworkDisconnectOK creates a NetworkDisconnectOK with default headers values

func (*NetworkDisconnectOK) Error

func (o *NetworkDisconnectOK) Error() string

type NetworkDisconnectParams

type NetworkDisconnectParams struct {

	/*Container*/
	Container NetworkDisconnectBody
	/*ID
	  Network ID or name

	*/
	ID string

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

NetworkDisconnectParams contains all the parameters to send to the API endpoint for the network disconnect operation typically these are written to a http.Request

func NewNetworkDisconnectParams

func NewNetworkDisconnectParams() *NetworkDisconnectParams

NewNetworkDisconnectParams creates a new NetworkDisconnectParams object with the default values initialized.

func NewNetworkDisconnectParamsWithContext

func NewNetworkDisconnectParamsWithContext(ctx context.Context) *NetworkDisconnectParams

NewNetworkDisconnectParamsWithContext creates a new NetworkDisconnectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*NetworkDisconnectParams) SetContainer

func (o *NetworkDisconnectParams) SetContainer(container NetworkDisconnectBody)

SetContainer adds the container to the network disconnect params

func (*NetworkDisconnectParams) SetContext

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

SetContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network disconnect params

func (*NetworkDisconnectParams) SetID

func (o *NetworkDisconnectParams) SetID(id string)

SetID adds the id to the network disconnect params

func (*NetworkDisconnectParams) SetTimeout

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

SetTimeout adds the timeout to the network disconnect params

func (*NetworkDisconnectParams) WithContainer

WithContainer adds the container to the network disconnect params

func (*NetworkDisconnectParams) WithContext

WithContext adds the context to the network disconnect params

func (*NetworkDisconnectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network disconnect params

func (*NetworkDisconnectParams) WithID

WithID adds the id to the network disconnect params

func (*NetworkDisconnectParams) WithTimeout

WithTimeout adds the timeout to the network disconnect params

func (*NetworkDisconnectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type NetworkDisconnectReader

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

NetworkDisconnectReader is a Reader for the NetworkDisconnect structure.

func (*NetworkDisconnectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkInspectInternalServerError

type NetworkInspectInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkInspectInternalServerError handles this case with default header values.

Server error

func NewNetworkInspectInternalServerError

func NewNetworkInspectInternalServerError() *NetworkInspectInternalServerError

NewNetworkInspectInternalServerError creates a NetworkInspectInternalServerError with default headers values

func (*NetworkInspectInternalServerError) Error

type NetworkInspectNotFound

type NetworkInspectNotFound struct {
	Payload *models.ErrorResponse
}

NetworkInspectNotFound handles this case with default header values.

Network not found

func NewNetworkInspectNotFound

func NewNetworkInspectNotFound() *NetworkInspectNotFound

NewNetworkInspectNotFound creates a NetworkInspectNotFound with default headers values

func (*NetworkInspectNotFound) Error

func (o *NetworkInspectNotFound) Error() string

type NetworkInspectOK

type NetworkInspectOK struct {
	Payload *models.Network
}

NetworkInspectOK handles this case with default header values.

No error

func NewNetworkInspectOK

func NewNetworkInspectOK() *NetworkInspectOK

NewNetworkInspectOK creates a NetworkInspectOK with default headers values

func (*NetworkInspectOK) Error

func (o *NetworkInspectOK) Error() string

type NetworkInspectParams

type NetworkInspectParams struct {

	/*ID
	  Network ID or name

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

	*/
	Scope *string
	/*Verbose
	  Detailed inspect output for troubleshooting

	*/
	Verbose *bool

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

NetworkInspectParams contains all the parameters to send to the API endpoint for the network inspect operation typically these are written to a http.Request

func NewNetworkInspectParams

func NewNetworkInspectParams() *NetworkInspectParams

NewNetworkInspectParams creates a new NetworkInspectParams object with the default values initialized.

func NewNetworkInspectParamsWithContext

func NewNetworkInspectParamsWithContext(ctx context.Context) *NetworkInspectParams

NewNetworkInspectParamsWithContext creates a new NetworkInspectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network inspect params

func (*NetworkInspectParams) SetID

func (o *NetworkInspectParams) SetID(id string)

SetID adds the id to the network inspect params

func (*NetworkInspectParams) SetScope

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

SetScope adds the scope to the network inspect params

func (*NetworkInspectParams) SetTimeout

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

SetTimeout adds the timeout to the network inspect params

func (*NetworkInspectParams) SetVerbose

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

SetVerbose adds the verbose to the network inspect params

func (*NetworkInspectParams) WithContext

WithContext adds the context to the network inspect params

func (*NetworkInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network inspect params

func (*NetworkInspectParams) WithID

WithID adds the id to the network inspect params

func (*NetworkInspectParams) WithScope

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

WithScope adds the scope to the network inspect params

func (*NetworkInspectParams) WithTimeout

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

WithTimeout adds the timeout to the network inspect params

func (*NetworkInspectParams) WithVerbose

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

WithVerbose adds the verbose to the network inspect params

func (*NetworkInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkInspectReader

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

NetworkInspectReader is a Reader for the NetworkInspect structure.

func (*NetworkInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkListInternalServerError

type NetworkListInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkListInternalServerError handles this case with default header values.

Server error

func NewNetworkListInternalServerError

func NewNetworkListInternalServerError() *NetworkListInternalServerError

NewNetworkListInternalServerError creates a NetworkListInternalServerError with default headers values

func (*NetworkListInternalServerError) Error

type NetworkListOK

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

NetworkListOK handles this case with default header values.

No error

func NewNetworkListOK

func NewNetworkListOK() *NetworkListOK

NewNetworkListOK creates a NetworkListOK with default headers values

func (*NetworkListOK) Error

func (o *NetworkListOK) Error() string

type NetworkListParams

type NetworkListParams struct {

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

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


	*/
	Filters *string

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

NetworkListParams contains all the parameters to send to the API endpoint for the network list operation typically these are written to a http.Request

func NewNetworkListParams

func NewNetworkListParams() *NetworkListParams

NewNetworkListParams creates a new NetworkListParams object with the default values initialized.

func NewNetworkListParamsWithContext

func NewNetworkListParamsWithContext(ctx context.Context) *NetworkListParams

NewNetworkListParamsWithContext creates a new NetworkListParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) WithFilters

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

WithFilters adds the filters to the network list params

func (*NetworkListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network list params

func (*NetworkListParams) WithTimeout

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

WithTimeout adds the timeout to the network list params

func (*NetworkListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkListReader

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

NetworkListReader is a Reader for the NetworkList structure.

func (*NetworkListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NetworkPruneInternalServerError

type NetworkPruneInternalServerError struct {
	Payload *models.ErrorResponse
}

NetworkPruneInternalServerError handles this case with default header values.

Server error

func NewNetworkPruneInternalServerError

func NewNetworkPruneInternalServerError() *NetworkPruneInternalServerError

NewNetworkPruneInternalServerError creates a NetworkPruneInternalServerError with default headers values

func (*NetworkPruneInternalServerError) Error

type NetworkPruneOK

type NetworkPruneOK struct {
	Payload *NetworkPruneOKBody
}

NetworkPruneOK handles this case with default header values.

No error

func NewNetworkPruneOK

func NewNetworkPruneOK() *NetworkPruneOK

NewNetworkPruneOK creates a NetworkPruneOK with default headers values

func (*NetworkPruneOK) Error

func (o *NetworkPruneOK) Error() string

type NetworkPruneOKBody

type NetworkPruneOKBody struct {

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

NetworkPruneOKBody NetworkPruneResponse swagger:model NetworkPruneOKBody

func (*NetworkPruneOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkPruneOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkPruneOKBody) Validate

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

Validate validates this network prune o k body

type NetworkPruneParams

type NetworkPruneParams struct {

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

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


	*/
	Filters *string

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

NetworkPruneParams contains all the parameters to send to the API endpoint for the network prune operation typically these are written to a http.Request

func NewNetworkPruneParams

func NewNetworkPruneParams() *NetworkPruneParams

NewNetworkPruneParams creates a new NetworkPruneParams object with the default values initialized.

func NewNetworkPruneParamsWithContext

func NewNetworkPruneParamsWithContext(ctx context.Context) *NetworkPruneParams

NewNetworkPruneParamsWithContext creates a new NetworkPruneParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetFilters

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

SetFilters adds the filters to the network prune params

func (*NetworkPruneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the network prune params

func (*NetworkPruneParams) SetTimeout

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

SetTimeout adds the timeout to the network prune params

func (*NetworkPruneParams) WithContext

WithContext adds the context to the network prune params

func (*NetworkPruneParams) WithFilters

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

WithFilters adds the filters to the network prune params

func (*NetworkPruneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the network prune params

func (*NetworkPruneParams) WithTimeout

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

WithTimeout adds the timeout to the network prune params

func (*NetworkPruneParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NetworkPruneReader

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

NetworkPruneReader is a Reader for the NetworkPrune structure.

func (*NetworkPruneReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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