network

package
v0.0.0-...-f9bae2f Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const NetworkConnectForbiddenCode int = 403

NetworkConnectForbiddenCode is the HTTP code returned for type NetworkConnectForbidden

View Source
const NetworkConnectInternalServerErrorCode int = 500

NetworkConnectInternalServerErrorCode is the HTTP code returned for type NetworkConnectInternalServerError

View Source
const NetworkConnectNotFoundCode int = 404

NetworkConnectNotFoundCode is the HTTP code returned for type NetworkConnectNotFound

View Source
const NetworkConnectOKCode int = 200

NetworkConnectOKCode is the HTTP code returned for type NetworkConnectOK

View Source
const NetworkCreateCreatedCode int = 201

NetworkCreateCreatedCode is the HTTP code returned for type NetworkCreateCreated

View Source
const NetworkCreateForbiddenCode int = 403

NetworkCreateForbiddenCode is the HTTP code returned for type NetworkCreateForbidden

View Source
const NetworkCreateInternalServerErrorCode int = 500

NetworkCreateInternalServerErrorCode is the HTTP code returned for type NetworkCreateInternalServerError

View Source
const NetworkCreateNotFoundCode int = 404

NetworkCreateNotFoundCode is the HTTP code returned for type NetworkCreateNotFound

View Source
const NetworkDeleteForbiddenCode int = 403

NetworkDeleteForbiddenCode is the HTTP code returned for type NetworkDeleteForbidden

View Source
const NetworkDeleteInternalServerErrorCode int = 500

NetworkDeleteInternalServerErrorCode is the HTTP code returned for type NetworkDeleteInternalServerError

View Source
const NetworkDeleteNoContentCode int = 204

NetworkDeleteNoContentCode is the HTTP code returned for type NetworkDeleteNoContent

View Source
const NetworkDeleteNotFoundCode int = 404

NetworkDeleteNotFoundCode is the HTTP code returned for type NetworkDeleteNotFound

View Source
const NetworkDisconnectForbiddenCode int = 403

NetworkDisconnectForbiddenCode is the HTTP code returned for type NetworkDisconnectForbidden

View Source
const NetworkDisconnectInternalServerErrorCode int = 500

NetworkDisconnectInternalServerErrorCode is the HTTP code returned for type NetworkDisconnectInternalServerError

View Source
const NetworkDisconnectNotFoundCode int = 404

NetworkDisconnectNotFoundCode is the HTTP code returned for type NetworkDisconnectNotFound

View Source
const NetworkDisconnectOKCode int = 200

NetworkDisconnectOKCode is the HTTP code returned for type NetworkDisconnectOK

View Source
const NetworkInspectInternalServerErrorCode int = 500

NetworkInspectInternalServerErrorCode is the HTTP code returned for type NetworkInspectInternalServerError

View Source
const NetworkInspectNotFoundCode int = 404

NetworkInspectNotFoundCode is the HTTP code returned for type NetworkInspectNotFound

View Source
const NetworkInspectOKCode int = 200

NetworkInspectOKCode is the HTTP code returned for type NetworkInspectOK

View Source
const NetworkListInternalServerErrorCode int = 500

NetworkListInternalServerErrorCode is the HTTP code returned for type NetworkListInternalServerError

View Source
const NetworkListOKCode int = 200

NetworkListOKCode is the HTTP code returned for type NetworkListOK

View Source
const NetworkPruneInternalServerErrorCode int = 500

NetworkPruneInternalServerErrorCode is the HTTP code returned for type NetworkPruneInternalServerError

View Source
const NetworkPruneOKCode int = 200

NetworkPruneOKCode is the HTTP code returned for type NetworkPruneOK

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkConnect

type NetworkConnect struct {
	Context *middleware.Context
	Handler NetworkConnectHandler
}
NetworkConnect swagger:route POST /networks/{id}/connect Network networkConnect

Connect a container to a network

func NewNetworkConnect

func NewNetworkConnect(ctx *middleware.Context, handler NetworkConnectHandler) *NetworkConnect

NewNetworkConnect creates a new http.Handler for the network connect operation

func (*NetworkConnect) ServeHTTP

func (o *NetworkConnect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkConnectBody

type NetworkConnectBody struct {

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

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

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

swagger:model NetworkConnectBody

func (*NetworkConnectBody) ContextValidate

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

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

func (*NetworkConnectBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkConnectBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkConnectBody) Validate

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

Validate validates this network connect body

type NetworkConnectForbidden

type NetworkConnectForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkConnectForbidden Operation not supported for swarm scoped networks

swagger:response networkConnectForbidden

func NewNetworkConnectForbidden

func NewNetworkConnectForbidden() *NetworkConnectForbidden

NewNetworkConnectForbidden creates NetworkConnectForbidden with default headers values

func (*NetworkConnectForbidden) SetPayload

func (o *NetworkConnectForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network connect forbidden response

func (*NetworkConnectForbidden) WithPayload

WithPayload adds the payload to the network connect forbidden response

func (*NetworkConnectForbidden) WriteResponse

func (o *NetworkConnectForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkConnectHandler

type NetworkConnectHandler interface {
	Handle(NetworkConnectParams) middleware.Responder
}

NetworkConnectHandler interface for that can handle valid network connect params

type NetworkConnectHandlerFunc

type NetworkConnectHandlerFunc func(NetworkConnectParams) middleware.Responder

NetworkConnectHandlerFunc turns a function with the right signature into a network connect handler

func (NetworkConnectHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkConnectInternalServerError

type NetworkConnectInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkConnectInternalServerError Server error

swagger:response networkConnectInternalServerError

func NewNetworkConnectInternalServerError

func NewNetworkConnectInternalServerError() *NetworkConnectInternalServerError

NewNetworkConnectInternalServerError creates NetworkConnectInternalServerError with default headers values

func (*NetworkConnectInternalServerError) SetPayload

func (o *NetworkConnectInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network connect internal server error response

func (*NetworkConnectInternalServerError) WithPayload

WithPayload adds the payload to the network connect internal server error response

func (*NetworkConnectInternalServerError) WriteResponse

func (o *NetworkConnectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkConnectNotFound

type NetworkConnectNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkConnectNotFound Network or container not found

swagger:response networkConnectNotFound

func NewNetworkConnectNotFound

func NewNetworkConnectNotFound() *NetworkConnectNotFound

NewNetworkConnectNotFound creates NetworkConnectNotFound with default headers values

func (*NetworkConnectNotFound) SetPayload

func (o *NetworkConnectNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network connect not found response

func (*NetworkConnectNotFound) WithPayload

WithPayload adds the payload to the network connect not found response

func (*NetworkConnectNotFound) WriteResponse

func (o *NetworkConnectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkConnectOK

type NetworkConnectOK struct {
}

NetworkConnectOK No error

swagger:response networkConnectOK

func NewNetworkConnectOK

func NewNetworkConnectOK() *NetworkConnectOK

NewNetworkConnectOK creates NetworkConnectOK with default headers values

func (*NetworkConnectOK) WriteResponse

func (o *NetworkConnectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkConnectParams

type NetworkConnectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Container NetworkConnectBody
	/*Network ID or name
	  Required: true
	  In: path
	*/
	ID string
}

NetworkConnectParams contains all the bound params for the network connect operation typically these are obtained from a http.Request

swagger:parameters NetworkConnect

func NewNetworkConnectParams

func NewNetworkConnectParams() NetworkConnectParams

NewNetworkConnectParams creates a new NetworkConnectParams object

There are no default values defined in the spec.

func (*NetworkConnectParams) BindRequest

func (o *NetworkConnectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkConnectParams() beforehand.

type NetworkConnectURL

type NetworkConnectURL struct {
	ID string
	// contains filtered or unexported fields
}

NetworkConnectURL generates an URL for the network connect operation

func (*NetworkConnectURL) Build

func (o *NetworkConnectURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkConnectURL) BuildFull

func (o *NetworkConnectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkConnectURL) Must

func (o *NetworkConnectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkConnectURL) SetBasePath

func (o *NetworkConnectURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkConnectURL) String

func (o *NetworkConnectURL) String() string

String returns the string representation of the path with query string

func (*NetworkConnectURL) StringFull

func (o *NetworkConnectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkConnectURL) WithBasePath

func (o *NetworkConnectURL) WithBasePath(bp string) *NetworkConnectURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkCreate

type NetworkCreate struct {
	Context *middleware.Context
	Handler NetworkCreateHandler
}
NetworkCreate swagger:route POST /networks/create Network networkCreate

Create a network

func NewNetworkCreate

func NewNetworkCreate(ctx *middleware.Context, handler NetworkCreateHandler) *NetworkCreate

NewNetworkCreate creates a new http.Handler for the network create operation

func (*NetworkCreate) ServeHTTP

func (o *NetworkCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkCreateBody

type NetworkCreateBody struct {

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

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

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

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

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

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

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

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

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

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

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

swagger:model NetworkCreateBody

func (*NetworkCreateBody) ContextValidate

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

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

func (*NetworkCreateBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateBody) Validate

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

Validate validates this network create body

type NetworkCreateCreated

type NetworkCreateCreated struct {

	/*
	  In: Body
	*/
	Payload *NetworkCreateCreatedBody `json:"body,omitempty"`
}

NetworkCreateCreated No error

swagger:response networkCreateCreated

func NewNetworkCreateCreated

func NewNetworkCreateCreated() *NetworkCreateCreated

NewNetworkCreateCreated creates NetworkCreateCreated with default headers values

func (*NetworkCreateCreated) SetPayload

func (o *NetworkCreateCreated) SetPayload(payload *NetworkCreateCreatedBody)

SetPayload sets the payload to the network create created response

func (*NetworkCreateCreated) WithPayload

WithPayload adds the payload to the network create created response

func (*NetworkCreateCreated) WriteResponse

func (o *NetworkCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkCreateCreatedBody

type NetworkCreateCreatedBody struct {

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

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

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

swagger:model NetworkCreateCreatedBody

func (*NetworkCreateCreatedBody) ContextValidate

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

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

func (*NetworkCreateCreatedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkCreateCreatedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkCreateCreatedBody) Validate

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

Validate validates this network create created body

type NetworkCreateForbidden

type NetworkCreateForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkCreateForbidden operation not supported for pre-defined networks

swagger:response networkCreateForbidden

func NewNetworkCreateForbidden

func NewNetworkCreateForbidden() *NetworkCreateForbidden

NewNetworkCreateForbidden creates NetworkCreateForbidden with default headers values

func (*NetworkCreateForbidden) SetPayload

func (o *NetworkCreateForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network create forbidden response

func (*NetworkCreateForbidden) WithPayload

WithPayload adds the payload to the network create forbidden response

func (*NetworkCreateForbidden) WriteResponse

func (o *NetworkCreateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkCreateHandler

type NetworkCreateHandler interface {
	Handle(NetworkCreateParams) middleware.Responder
}

NetworkCreateHandler interface for that can handle valid network create params

type NetworkCreateHandlerFunc

type NetworkCreateHandlerFunc func(NetworkCreateParams) middleware.Responder

NetworkCreateHandlerFunc turns a function with the right signature into a network create handler

func (NetworkCreateHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkCreateInternalServerError

type NetworkCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkCreateInternalServerError Server error

swagger:response networkCreateInternalServerError

func NewNetworkCreateInternalServerError

func NewNetworkCreateInternalServerError() *NetworkCreateInternalServerError

NewNetworkCreateInternalServerError creates NetworkCreateInternalServerError with default headers values

func (*NetworkCreateInternalServerError) SetPayload

func (o *NetworkCreateInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network create internal server error response

func (*NetworkCreateInternalServerError) WithPayload

WithPayload adds the payload to the network create internal server error response

func (*NetworkCreateInternalServerError) WriteResponse

func (o *NetworkCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkCreateNotFound

type NetworkCreateNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkCreateNotFound plugin not found

swagger:response networkCreateNotFound

func NewNetworkCreateNotFound

func NewNetworkCreateNotFound() *NetworkCreateNotFound

NewNetworkCreateNotFound creates NetworkCreateNotFound with default headers values

func (*NetworkCreateNotFound) SetPayload

func (o *NetworkCreateNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network create not found response

func (*NetworkCreateNotFound) WithPayload

WithPayload adds the payload to the network create not found response

func (*NetworkCreateNotFound) WriteResponse

func (o *NetworkCreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkCreateParams

type NetworkCreateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Network configuration
	  Required: true
	  In: body
	*/
	NetworkConfig NetworkCreateBody
}

NetworkCreateParams contains all the bound params for the network create operation typically these are obtained from a http.Request

swagger:parameters NetworkCreate

func NewNetworkCreateParams

func NewNetworkCreateParams() NetworkCreateParams

NewNetworkCreateParams creates a new NetworkCreateParams object

There are no default values defined in the spec.

func (*NetworkCreateParams) BindRequest

func (o *NetworkCreateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkCreateParams() beforehand.

type NetworkCreateURL

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

NetworkCreateURL generates an URL for the network create operation

func (*NetworkCreateURL) Build

func (o *NetworkCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkCreateURL) BuildFull

func (o *NetworkCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkCreateURL) Must

func (o *NetworkCreateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkCreateURL) SetBasePath

func (o *NetworkCreateURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkCreateURL) String

func (o *NetworkCreateURL) String() string

String returns the string representation of the path with query string

func (*NetworkCreateURL) StringFull

func (o *NetworkCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkCreateURL) WithBasePath

func (o *NetworkCreateURL) WithBasePath(bp string) *NetworkCreateURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkDelete

type NetworkDelete struct {
	Context *middleware.Context
	Handler NetworkDeleteHandler
}
NetworkDelete swagger:route DELETE /networks/{id} Network networkDelete

Remove a network

func NewNetworkDelete

func NewNetworkDelete(ctx *middleware.Context, handler NetworkDeleteHandler) *NetworkDelete

NewNetworkDelete creates a new http.Handler for the network delete operation

func (*NetworkDelete) ServeHTTP

func (o *NetworkDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkDeleteForbidden

type NetworkDeleteForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDeleteForbidden operation not supported for pre-defined networks

swagger:response networkDeleteForbidden

func NewNetworkDeleteForbidden

func NewNetworkDeleteForbidden() *NetworkDeleteForbidden

NewNetworkDeleteForbidden creates NetworkDeleteForbidden with default headers values

func (*NetworkDeleteForbidden) SetPayload

func (o *NetworkDeleteForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network delete forbidden response

func (*NetworkDeleteForbidden) WithPayload

WithPayload adds the payload to the network delete forbidden response

func (*NetworkDeleteForbidden) WriteResponse

func (o *NetworkDeleteForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDeleteHandler

type NetworkDeleteHandler interface {
	Handle(NetworkDeleteParams) middleware.Responder
}

NetworkDeleteHandler interface for that can handle valid network delete params

type NetworkDeleteHandlerFunc

type NetworkDeleteHandlerFunc func(NetworkDeleteParams) middleware.Responder

NetworkDeleteHandlerFunc turns a function with the right signature into a network delete handler

func (NetworkDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkDeleteInternalServerError

type NetworkDeleteInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDeleteInternalServerError Server error

swagger:response networkDeleteInternalServerError

func NewNetworkDeleteInternalServerError

func NewNetworkDeleteInternalServerError() *NetworkDeleteInternalServerError

NewNetworkDeleteInternalServerError creates NetworkDeleteInternalServerError with default headers values

func (*NetworkDeleteInternalServerError) SetPayload

func (o *NetworkDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network delete internal server error response

func (*NetworkDeleteInternalServerError) WithPayload

WithPayload adds the payload to the network delete internal server error response

func (*NetworkDeleteInternalServerError) WriteResponse

func (o *NetworkDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDeleteNoContent

type NetworkDeleteNoContent struct {
}

NetworkDeleteNoContent No error

swagger:response networkDeleteNoContent

func NewNetworkDeleteNoContent

func NewNetworkDeleteNoContent() *NetworkDeleteNoContent

NewNetworkDeleteNoContent creates NetworkDeleteNoContent with default headers values

func (*NetworkDeleteNoContent) WriteResponse

func (o *NetworkDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDeleteNotFound

type NetworkDeleteNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDeleteNotFound no such network

swagger:response networkDeleteNotFound

func NewNetworkDeleteNotFound

func NewNetworkDeleteNotFound() *NetworkDeleteNotFound

NewNetworkDeleteNotFound creates NetworkDeleteNotFound with default headers values

func (*NetworkDeleteNotFound) SetPayload

func (o *NetworkDeleteNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network delete not found response

func (*NetworkDeleteNotFound) WithPayload

WithPayload adds the payload to the network delete not found response

func (*NetworkDeleteNotFound) WriteResponse

func (o *NetworkDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDeleteParams

type NetworkDeleteParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Network ID or name
	  Required: true
	  In: path
	*/
	ID string
}

NetworkDeleteParams contains all the bound params for the network delete operation typically these are obtained from a http.Request

swagger:parameters NetworkDelete

func NewNetworkDeleteParams

func NewNetworkDeleteParams() NetworkDeleteParams

NewNetworkDeleteParams creates a new NetworkDeleteParams object

There are no default values defined in the spec.

func (*NetworkDeleteParams) BindRequest

func (o *NetworkDeleteParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkDeleteParams() beforehand.

type NetworkDeleteURL

type NetworkDeleteURL struct {
	ID string
	// contains filtered or unexported fields
}

NetworkDeleteURL generates an URL for the network delete operation

func (*NetworkDeleteURL) Build

func (o *NetworkDeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkDeleteURL) BuildFull

func (o *NetworkDeleteURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkDeleteURL) Must

func (o *NetworkDeleteURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkDeleteURL) SetBasePath

func (o *NetworkDeleteURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkDeleteURL) String

func (o *NetworkDeleteURL) String() string

String returns the string representation of the path with query string

func (*NetworkDeleteURL) StringFull

func (o *NetworkDeleteURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkDeleteURL) WithBasePath

func (o *NetworkDeleteURL) WithBasePath(bp string) *NetworkDeleteURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkDisconnect

type NetworkDisconnect struct {
	Context *middleware.Context
	Handler NetworkDisconnectHandler
}
NetworkDisconnect swagger:route POST /networks/{id}/disconnect Network networkDisconnect

Disconnect a container from a network

func NewNetworkDisconnect

func NewNetworkDisconnect(ctx *middleware.Context, handler NetworkDisconnectHandler) *NetworkDisconnect

NewNetworkDisconnect creates a new http.Handler for the network disconnect operation

func (*NetworkDisconnect) ServeHTTP

func (o *NetworkDisconnect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkDisconnectBody

type NetworkDisconnectBody struct {

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

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

NetworkDisconnectBody network disconnect body

swagger:model NetworkDisconnectBody

func (*NetworkDisconnectBody) ContextValidate

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

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

func (*NetworkDisconnectBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkDisconnectBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkDisconnectBody) Validate

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

Validate validates this network disconnect body

type NetworkDisconnectForbidden

type NetworkDisconnectForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDisconnectForbidden Operation not supported for swarm scoped networks

swagger:response networkDisconnectForbidden

func NewNetworkDisconnectForbidden

func NewNetworkDisconnectForbidden() *NetworkDisconnectForbidden

NewNetworkDisconnectForbidden creates NetworkDisconnectForbidden with default headers values

func (*NetworkDisconnectForbidden) SetPayload

func (o *NetworkDisconnectForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network disconnect forbidden response

func (*NetworkDisconnectForbidden) WithPayload

WithPayload adds the payload to the network disconnect forbidden response

func (*NetworkDisconnectForbidden) WriteResponse

func (o *NetworkDisconnectForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDisconnectHandler

type NetworkDisconnectHandler interface {
	Handle(NetworkDisconnectParams) middleware.Responder
}

NetworkDisconnectHandler interface for that can handle valid network disconnect params

type NetworkDisconnectHandlerFunc

type NetworkDisconnectHandlerFunc func(NetworkDisconnectParams) middleware.Responder

NetworkDisconnectHandlerFunc turns a function with the right signature into a network disconnect handler

func (NetworkDisconnectHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkDisconnectInternalServerError

type NetworkDisconnectInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDisconnectInternalServerError Server error

swagger:response networkDisconnectInternalServerError

func NewNetworkDisconnectInternalServerError

func NewNetworkDisconnectInternalServerError() *NetworkDisconnectInternalServerError

NewNetworkDisconnectInternalServerError creates NetworkDisconnectInternalServerError with default headers values

func (*NetworkDisconnectInternalServerError) SetPayload

SetPayload sets the payload to the network disconnect internal server error response

func (*NetworkDisconnectInternalServerError) WithPayload

WithPayload adds the payload to the network disconnect internal server error response

func (*NetworkDisconnectInternalServerError) WriteResponse

WriteResponse to the client

type NetworkDisconnectNotFound

type NetworkDisconnectNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkDisconnectNotFound Network or container not found

swagger:response networkDisconnectNotFound

func NewNetworkDisconnectNotFound

func NewNetworkDisconnectNotFound() *NetworkDisconnectNotFound

NewNetworkDisconnectNotFound creates NetworkDisconnectNotFound with default headers values

func (*NetworkDisconnectNotFound) SetPayload

func (o *NetworkDisconnectNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network disconnect not found response

func (*NetworkDisconnectNotFound) WithPayload

WithPayload adds the payload to the network disconnect not found response

func (*NetworkDisconnectNotFound) WriteResponse

func (o *NetworkDisconnectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDisconnectOK

type NetworkDisconnectOK struct {
}

NetworkDisconnectOK No error

swagger:response networkDisconnectOK

func NewNetworkDisconnectOK

func NewNetworkDisconnectOK() *NetworkDisconnectOK

NewNetworkDisconnectOK creates NetworkDisconnectOK with default headers values

func (*NetworkDisconnectOK) WriteResponse

func (o *NetworkDisconnectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkDisconnectParams

type NetworkDisconnectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Container NetworkDisconnectBody
	/*Network ID or name
	  Required: true
	  In: path
	*/
	ID string
}

NetworkDisconnectParams contains all the bound params for the network disconnect operation typically these are obtained from a http.Request

swagger:parameters NetworkDisconnect

func NewNetworkDisconnectParams

func NewNetworkDisconnectParams() NetworkDisconnectParams

NewNetworkDisconnectParams creates a new NetworkDisconnectParams object

There are no default values defined in the spec.

func (*NetworkDisconnectParams) BindRequest

func (o *NetworkDisconnectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkDisconnectParams() beforehand.

type NetworkDisconnectURL

type NetworkDisconnectURL struct {
	ID string
	// contains filtered or unexported fields
}

NetworkDisconnectURL generates an URL for the network disconnect operation

func (*NetworkDisconnectURL) Build

func (o *NetworkDisconnectURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkDisconnectURL) BuildFull

func (o *NetworkDisconnectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkDisconnectURL) Must

func (o *NetworkDisconnectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkDisconnectURL) SetBasePath

func (o *NetworkDisconnectURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkDisconnectURL) String

func (o *NetworkDisconnectURL) String() string

String returns the string representation of the path with query string

func (*NetworkDisconnectURL) StringFull

func (o *NetworkDisconnectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkDisconnectURL) WithBasePath

func (o *NetworkDisconnectURL) WithBasePath(bp string) *NetworkDisconnectURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkInspect

type NetworkInspect struct {
	Context *middleware.Context
	Handler NetworkInspectHandler
}
NetworkInspect swagger:route GET /networks/{id} Network networkInspect

Inspect a network

func NewNetworkInspect

func NewNetworkInspect(ctx *middleware.Context, handler NetworkInspectHandler) *NetworkInspect

NewNetworkInspect creates a new http.Handler for the network inspect operation

func (*NetworkInspect) ServeHTTP

func (o *NetworkInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkInspectHandler

type NetworkInspectHandler interface {
	Handle(NetworkInspectParams) middleware.Responder
}

NetworkInspectHandler interface for that can handle valid network inspect params

type NetworkInspectHandlerFunc

type NetworkInspectHandlerFunc func(NetworkInspectParams) middleware.Responder

NetworkInspectHandlerFunc turns a function with the right signature into a network inspect handler

func (NetworkInspectHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkInspectInternalServerError

type NetworkInspectInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkInspectInternalServerError Server error

swagger:response networkInspectInternalServerError

func NewNetworkInspectInternalServerError

func NewNetworkInspectInternalServerError() *NetworkInspectInternalServerError

NewNetworkInspectInternalServerError creates NetworkInspectInternalServerError with default headers values

func (*NetworkInspectInternalServerError) SetPayload

func (o *NetworkInspectInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network inspect internal server error response

func (*NetworkInspectInternalServerError) WithPayload

WithPayload adds the payload to the network inspect internal server error response

func (*NetworkInspectInternalServerError) WriteResponse

func (o *NetworkInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkInspectNotFound

type NetworkInspectNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkInspectNotFound Network not found

swagger:response networkInspectNotFound

func NewNetworkInspectNotFound

func NewNetworkInspectNotFound() *NetworkInspectNotFound

NewNetworkInspectNotFound creates NetworkInspectNotFound with default headers values

func (*NetworkInspectNotFound) SetPayload

func (o *NetworkInspectNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network inspect not found response

func (*NetworkInspectNotFound) WithPayload

WithPayload adds the payload to the network inspect not found response

func (*NetworkInspectNotFound) WriteResponse

func (o *NetworkInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkInspectOK

type NetworkInspectOK struct {

	/*
	  In: Body
	*/
	Payload *models.Network `json:"body,omitempty"`
}

NetworkInspectOK No error

swagger:response networkInspectOK

func NewNetworkInspectOK

func NewNetworkInspectOK() *NetworkInspectOK

NewNetworkInspectOK creates NetworkInspectOK with default headers values

func (*NetworkInspectOK) SetPayload

func (o *NetworkInspectOK) SetPayload(payload *models.Network)

SetPayload sets the payload to the network inspect o k response

func (*NetworkInspectOK) WithPayload

func (o *NetworkInspectOK) WithPayload(payload *models.Network) *NetworkInspectOK

WithPayload adds the payload to the network inspect o k response

func (*NetworkInspectOK) WriteResponse

func (o *NetworkInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkInspectParams

type NetworkInspectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Network ID or name
	  Required: true
	  In: path
	*/
	ID string
	/*Filter the network by scope (swarm, global, or local)
	  In: query
	*/
	Scope *string
	/*Detailed inspect output for troubleshooting
	  In: query
	  Default: false
	*/
	Verbose *bool
}

NetworkInspectParams contains all the bound params for the network inspect operation typically these are obtained from a http.Request

swagger:parameters NetworkInspect

func NewNetworkInspectParams

func NewNetworkInspectParams() NetworkInspectParams

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

func (*NetworkInspectParams) BindRequest

func (o *NetworkInspectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkInspectParams() beforehand.

type NetworkInspectURL

type NetworkInspectURL struct {
	ID string

	Scope   *string
	Verbose *bool
	// contains filtered or unexported fields
}

NetworkInspectURL generates an URL for the network inspect operation

func (*NetworkInspectURL) Build

func (o *NetworkInspectURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkInspectURL) BuildFull

func (o *NetworkInspectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkInspectURL) Must

func (o *NetworkInspectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkInspectURL) SetBasePath

func (o *NetworkInspectURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkInspectURL) String

func (o *NetworkInspectURL) String() string

String returns the string representation of the path with query string

func (*NetworkInspectURL) StringFull

func (o *NetworkInspectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkInspectURL) WithBasePath

func (o *NetworkInspectURL) WithBasePath(bp string) *NetworkInspectURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkList

type NetworkList struct {
	Context *middleware.Context
	Handler NetworkListHandler
}
NetworkList swagger:route GET /networks Network networkList

List 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 NewNetworkList

func NewNetworkList(ctx *middleware.Context, handler NetworkListHandler) *NetworkList

NewNetworkList creates a new http.Handler for the network list operation

func (*NetworkList) ServeHTTP

func (o *NetworkList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkListHandler

type NetworkListHandler interface {
	Handle(NetworkListParams) middleware.Responder
}

NetworkListHandler interface for that can handle valid network list params

type NetworkListHandlerFunc

type NetworkListHandlerFunc func(NetworkListParams) middleware.Responder

NetworkListHandlerFunc turns a function with the right signature into a network list handler

func (NetworkListHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkListInternalServerError

type NetworkListInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkListInternalServerError Server error

swagger:response networkListInternalServerError

func NewNetworkListInternalServerError

func NewNetworkListInternalServerError() *NetworkListInternalServerError

NewNetworkListInternalServerError creates NetworkListInternalServerError with default headers values

func (*NetworkListInternalServerError) SetPayload

func (o *NetworkListInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network list internal server error response

func (*NetworkListInternalServerError) WithPayload

WithPayload adds the payload to the network list internal server error response

func (*NetworkListInternalServerError) WriteResponse

func (o *NetworkListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkListOK

type NetworkListOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Network `json:"body,omitempty"`
}

NetworkListOK No error

swagger:response networkListOK

func NewNetworkListOK

func NewNetworkListOK() *NetworkListOK

NewNetworkListOK creates NetworkListOK with default headers values

func (*NetworkListOK) SetPayload

func (o *NetworkListOK) SetPayload(payload []*models.Network)

SetPayload sets the payload to the network list o k response

func (*NetworkListOK) WithPayload

func (o *NetworkListOK) WithPayload(payload []*models.Network) *NetworkListOK

WithPayload adds the payload to the network list o k response

func (*NetworkListOK) WriteResponse

func (o *NetworkListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkListParams

type NetworkListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*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.

	  In: query
	*/
	Filters *string
}

NetworkListParams contains all the bound params for the network list operation typically these are obtained from a http.Request

swagger:parameters NetworkList

func NewNetworkListParams

func NewNetworkListParams() NetworkListParams

NewNetworkListParams creates a new NetworkListParams object

There are no default values defined in the spec.

func (*NetworkListParams) BindRequest

func (o *NetworkListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkListParams() beforehand.

type NetworkListURL

type NetworkListURL struct {
	Filters *string
	// contains filtered or unexported fields
}

NetworkListURL generates an URL for the network list operation

func (*NetworkListURL) Build

func (o *NetworkListURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkListURL) BuildFull

func (o *NetworkListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkListURL) Must

func (o *NetworkListURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkListURL) SetBasePath

func (o *NetworkListURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkListURL) String

func (o *NetworkListURL) String() string

String returns the string representation of the path with query string

func (*NetworkListURL) StringFull

func (o *NetworkListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkListURL) WithBasePath

func (o *NetworkListURL) WithBasePath(bp string) *NetworkListURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type NetworkPrune

type NetworkPrune struct {
	Context *middleware.Context
	Handler NetworkPruneHandler
}
NetworkPrune swagger:route POST /networks/prune Network networkPrune

Delete unused networks

func NewNetworkPrune

func NewNetworkPrune(ctx *middleware.Context, handler NetworkPruneHandler) *NetworkPrune

NewNetworkPrune creates a new http.Handler for the network prune operation

func (*NetworkPrune) ServeHTTP

func (o *NetworkPrune) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type NetworkPruneHandler

type NetworkPruneHandler interface {
	Handle(NetworkPruneParams) middleware.Responder
}

NetworkPruneHandler interface for that can handle valid network prune params

type NetworkPruneHandlerFunc

type NetworkPruneHandlerFunc func(NetworkPruneParams) middleware.Responder

NetworkPruneHandlerFunc turns a function with the right signature into a network prune handler

func (NetworkPruneHandlerFunc) Handle

Handle executing the request and returning a response

type NetworkPruneInternalServerError

type NetworkPruneInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

NetworkPruneInternalServerError Server error

swagger:response networkPruneInternalServerError

func NewNetworkPruneInternalServerError

func NewNetworkPruneInternalServerError() *NetworkPruneInternalServerError

NewNetworkPruneInternalServerError creates NetworkPruneInternalServerError with default headers values

func (*NetworkPruneInternalServerError) SetPayload

func (o *NetworkPruneInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the network prune internal server error response

func (*NetworkPruneInternalServerError) WithPayload

WithPayload adds the payload to the network prune internal server error response

func (*NetworkPruneInternalServerError) WriteResponse

func (o *NetworkPruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkPruneOK

type NetworkPruneOK struct {

	/*
	  In: Body
	*/
	Payload *NetworkPruneOKBody `json:"body,omitempty"`
}

NetworkPruneOK No error

swagger:response networkPruneOK

func NewNetworkPruneOK

func NewNetworkPruneOK() *NetworkPruneOK

NewNetworkPruneOK creates NetworkPruneOK with default headers values

func (*NetworkPruneOK) SetPayload

func (o *NetworkPruneOK) SetPayload(payload *NetworkPruneOKBody)

SetPayload sets the payload to the network prune o k response

func (*NetworkPruneOK) WithPayload

func (o *NetworkPruneOK) WithPayload(payload *NetworkPruneOKBody) *NetworkPruneOK

WithPayload adds the payload to the network prune o k response

func (*NetworkPruneOK) WriteResponse

func (o *NetworkPruneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type NetworkPruneOKBody

type NetworkPruneOKBody struct {

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

NetworkPruneOKBody NetworkPruneResponse

swagger:model NetworkPruneOKBody

func (*NetworkPruneOKBody) ContextValidate

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

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

func (*NetworkPruneOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*NetworkPruneOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetworkPruneOKBody) Validate

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

Validate validates this network prune o k body

type NetworkPruneParams

type NetworkPruneParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*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.

	  In: query
	*/
	Filters *string
}

NetworkPruneParams contains all the bound params for the network prune operation typically these are obtained from a http.Request

swagger:parameters NetworkPrune

func NewNetworkPruneParams

func NewNetworkPruneParams() NetworkPruneParams

NewNetworkPruneParams creates a new NetworkPruneParams object

There are no default values defined in the spec.

func (*NetworkPruneParams) BindRequest

func (o *NetworkPruneParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewNetworkPruneParams() beforehand.

type NetworkPruneURL

type NetworkPruneURL struct {
	Filters *string
	// contains filtered or unexported fields
}

NetworkPruneURL generates an URL for the network prune operation

func (*NetworkPruneURL) Build

func (o *NetworkPruneURL) Build() (*url.URL, error)

Build a url path and query string

func (*NetworkPruneURL) BuildFull

func (o *NetworkPruneURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*NetworkPruneURL) Must

func (o *NetworkPruneURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*NetworkPruneURL) SetBasePath

func (o *NetworkPruneURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*NetworkPruneURL) String

func (o *NetworkPruneURL) String() string

String returns the string representation of the path with query string

func (*NetworkPruneURL) StringFull

func (o *NetworkPruneURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*NetworkPruneURL) WithBasePath

func (o *NetworkPruneURL) WithBasePath(bp string) *NetworkPruneURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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