swarm

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SwarmInitBadRequestCode int = 400

SwarmInitBadRequestCode is the HTTP code returned for type SwarmInitBadRequest

View Source
const SwarmInitInternalServerErrorCode int = 500

SwarmInitInternalServerErrorCode is the HTTP code returned for type SwarmInitInternalServerError

View Source
const SwarmInitOKCode int = 200

SwarmInitOKCode is the HTTP code returned for type SwarmInitOK

View Source
const SwarmInitServiceUnavailableCode int = 503

SwarmInitServiceUnavailableCode is the HTTP code returned for type SwarmInitServiceUnavailable

View Source
const SwarmInspectInternalServerErrorCode int = 500

SwarmInspectInternalServerErrorCode is the HTTP code returned for type SwarmInspectInternalServerError

View Source
const SwarmInspectNotFoundCode int = 404

SwarmInspectNotFoundCode is the HTTP code returned for type SwarmInspectNotFound

View Source
const SwarmInspectOKCode int = 200

SwarmInspectOKCode is the HTTP code returned for type SwarmInspectOK

View Source
const SwarmInspectServiceUnavailableCode int = 503

SwarmInspectServiceUnavailableCode is the HTTP code returned for type SwarmInspectServiceUnavailable

View Source
const SwarmJoinBadRequestCode int = 400

SwarmJoinBadRequestCode is the HTTP code returned for type SwarmJoinBadRequest

View Source
const SwarmJoinInternalServerErrorCode int = 500

SwarmJoinInternalServerErrorCode is the HTTP code returned for type SwarmJoinInternalServerError

View Source
const SwarmJoinOKCode int = 200

SwarmJoinOKCode is the HTTP code returned for type SwarmJoinOK

View Source
const SwarmJoinServiceUnavailableCode int = 503

SwarmJoinServiceUnavailableCode is the HTTP code returned for type SwarmJoinServiceUnavailable

View Source
const SwarmLeaveInternalServerErrorCode int = 500

SwarmLeaveInternalServerErrorCode is the HTTP code returned for type SwarmLeaveInternalServerError

View Source
const SwarmLeaveOKCode int = 200

SwarmLeaveOKCode is the HTTP code returned for type SwarmLeaveOK

View Source
const SwarmLeaveServiceUnavailableCode int = 503

SwarmLeaveServiceUnavailableCode is the HTTP code returned for type SwarmLeaveServiceUnavailable

View Source
const SwarmUnlockInternalServerErrorCode int = 500

SwarmUnlockInternalServerErrorCode is the HTTP code returned for type SwarmUnlockInternalServerError

View Source
const SwarmUnlockOKCode int = 200

SwarmUnlockOKCode is the HTTP code returned for type SwarmUnlockOK

View Source
const SwarmUnlockServiceUnavailableCode int = 503

SwarmUnlockServiceUnavailableCode is the HTTP code returned for type SwarmUnlockServiceUnavailable

View Source
const SwarmUnlockkeyInternalServerErrorCode int = 500

SwarmUnlockkeyInternalServerErrorCode is the HTTP code returned for type SwarmUnlockkeyInternalServerError

View Source
const SwarmUnlockkeyOKCode int = 200

SwarmUnlockkeyOKCode is the HTTP code returned for type SwarmUnlockkeyOK

View Source
const SwarmUnlockkeyServiceUnavailableCode int = 503

SwarmUnlockkeyServiceUnavailableCode is the HTTP code returned for type SwarmUnlockkeyServiceUnavailable

View Source
const SwarmUpdateBadRequestCode int = 400

SwarmUpdateBadRequestCode is the HTTP code returned for type SwarmUpdateBadRequest

View Source
const SwarmUpdateInternalServerErrorCode int = 500

SwarmUpdateInternalServerErrorCode is the HTTP code returned for type SwarmUpdateInternalServerError

View Source
const SwarmUpdateOKCode int = 200

SwarmUpdateOKCode is the HTTP code returned for type SwarmUpdateOK

View Source
const SwarmUpdateServiceUnavailableCode int = 503

SwarmUpdateServiceUnavailableCode is the HTTP code returned for type SwarmUpdateServiceUnavailable

Variables

This section is empty.

Functions

This section is empty.

Types

type SwarmInit

type SwarmInit struct {
	Context *middleware.Context
	Handler SwarmInitHandler
}
SwarmInit swagger:route POST /swarm/init Swarm swarmInit

Initialize a new swarm

func NewSwarmInit

func NewSwarmInit(ctx *middleware.Context, handler SwarmInitHandler) *SwarmInit

NewSwarmInit creates a new http.Handler for the swarm init operation

func (*SwarmInit) ServeHTTP

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

type SwarmInitBadRequest

type SwarmInitBadRequest struct {

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

SwarmInitBadRequest bad parameter

swagger:response swarmInitBadRequest

func NewSwarmInitBadRequest

func NewSwarmInitBadRequest() *SwarmInitBadRequest

NewSwarmInitBadRequest creates SwarmInitBadRequest with default headers values

func (*SwarmInitBadRequest) SetPayload

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

SetPayload sets the payload to the swarm init bad request response

func (*SwarmInitBadRequest) WithPayload

func (o *SwarmInitBadRequest) WithPayload(payload *models.ErrorResponse) *SwarmInitBadRequest

WithPayload adds the payload to the swarm init bad request response

func (*SwarmInitBadRequest) WriteResponse

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

WriteResponse to the client

type SwarmInitBody

type SwarmInitBody struct {

	// Externally reachable address advertised to other nodes. This
	// can either be an address/port combination in the form
	// `192.168.1.1:4567`, or an interface followed by a port number,
	// like `eth0:4567`. If the port number is omitted, the port
	// number from the listen address is used. If `AdvertiseAddr` is
	// not specified, it will be automatically detected when possible.
	//
	AdvertiseAddr string `json:"AdvertiseAddr,omitempty"`

	// Address or interface to use for data path traffic (format:
	// `<ip|interface>`), for example,  `192.168.1.1`, or an interface,
	// like `eth0`. If `DataPathAddr` is unspecified, the same address
	// as `AdvertiseAddr` is used.
	//
	// The `DataPathAddr` specifies the address that global scope
	// network drivers will publish towards other  nodes in order to
	// reach the containers running on this node. Using this parameter
	// it is possible to separate the container data traffic from the
	// management traffic of the cluster.
	//
	DataPathAddr string `json:"DataPathAddr,omitempty"`

	// DataPathPort specifies the data path port number for data traffic.
	// Acceptable port range is 1024 to 49151.
	// if no port is set or is set to 0, default port 4789 will be used.
	//
	DataPathPort uint32 `json:"DataPathPort,omitempty"`

	// Default Address Pool specifies default subnet pools for global
	// scope networks.
	//
	DefaultAddrPool []string `json:"DefaultAddrPool"`

	// Force creation of a new swarm.
	ForceNewCluster bool `json:"ForceNewCluster,omitempty"`

	// Listen address used for inter-manager communication, as well
	// as determining the networking interface used for the VXLAN
	// Tunnel Endpoint (VTEP). This can either be an address/port
	// combination in the form `192.168.1.1:4567`, or an interface
	// followed by a port number, like `eth0:4567`. If the port number
	// is omitted, the default swarm listening port is used.
	//
	ListenAddr string `json:"ListenAddr,omitempty"`

	// spec
	Spec *models.SwarmSpec `json:"Spec,omitempty"`

	// SubnetSize specifies the subnet size of the networks created
	// from the default subnet pool.
	//
	SubnetSize uint32 `json:"SubnetSize,omitempty"`
}

SwarmInitBody swarm init body Example: {"AdvertiseAddr":"192.168.1.1:2377","DataPathPort":4789,"DefaultAddrPool":["10.10.0.0/8","20.20.0.0/8"],"ForceNewCluster":false,"ListenAddr":"0.0.0.0:2377","Spec":{"CAConfig":{},"Dispatcher":{},"EncryptionConfig":{"AutoLockManagers":false},"Orchestration":{},"Raft":{}},"SubnetSize":24}

swagger:model SwarmInitBody

func (*SwarmInitBody) ContextValidate

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

ContextValidate validate this swarm init body based on the context it is used

func (*SwarmInitBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SwarmInitBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SwarmInitBody) Validate

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

Validate validates this swarm init body

type SwarmInitHandler

type SwarmInitHandler interface {
	Handle(SwarmInitParams) middleware.Responder
}

SwarmInitHandler interface for that can handle valid swarm init params

type SwarmInitHandlerFunc

type SwarmInitHandlerFunc func(SwarmInitParams) middleware.Responder

SwarmInitHandlerFunc turns a function with the right signature into a swarm init handler

func (SwarmInitHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmInitInternalServerError

type SwarmInitInternalServerError struct {

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

SwarmInitInternalServerError server error

swagger:response swarmInitInternalServerError

func NewSwarmInitInternalServerError

func NewSwarmInitInternalServerError() *SwarmInitInternalServerError

NewSwarmInitInternalServerError creates SwarmInitInternalServerError with default headers values

func (*SwarmInitInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm init internal server error response

func (*SwarmInitInternalServerError) WithPayload

WithPayload adds the payload to the swarm init internal server error response

func (*SwarmInitInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmInitOK

type SwarmInitOK struct {

	/*The node ID
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

SwarmInitOK no error

swagger:response swarmInitOK

func NewSwarmInitOK

func NewSwarmInitOK() *SwarmInitOK

NewSwarmInitOK creates SwarmInitOK with default headers values

func (*SwarmInitOK) SetPayload

func (o *SwarmInitOK) SetPayload(payload string)

SetPayload sets the payload to the swarm init o k response

func (*SwarmInitOK) WithPayload

func (o *SwarmInitOK) WithPayload(payload string) *SwarmInitOK

WithPayload adds the payload to the swarm init o k response

func (*SwarmInitOK) WriteResponse

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

WriteResponse to the client

type SwarmInitParams

type SwarmInitParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body SwarmInitBody
}

SwarmInitParams contains all the bound params for the swarm init operation typically these are obtained from a http.Request

swagger:parameters SwarmInit

func NewSwarmInitParams

func NewSwarmInitParams() SwarmInitParams

NewSwarmInitParams creates a new SwarmInitParams object

There are no default values defined in the spec.

func (*SwarmInitParams) BindRequest

func (o *SwarmInitParams) 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 NewSwarmInitParams() beforehand.

type SwarmInitServiceUnavailable

type SwarmInitServiceUnavailable struct {

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

SwarmInitServiceUnavailable node is already part of a swarm

swagger:response swarmInitServiceUnavailable

func NewSwarmInitServiceUnavailable

func NewSwarmInitServiceUnavailable() *SwarmInitServiceUnavailable

NewSwarmInitServiceUnavailable creates SwarmInitServiceUnavailable with default headers values

func (*SwarmInitServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm init service unavailable response

func (*SwarmInitServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm init service unavailable response

func (*SwarmInitServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmInitURL

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

SwarmInitURL generates an URL for the swarm init operation

func (*SwarmInitURL) Build

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

Build a url path and query string

func (*SwarmInitURL) BuildFull

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

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

func (*SwarmInitURL) Must

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

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

func (*SwarmInitURL) SetBasePath

func (o *SwarmInitURL) 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 (*SwarmInitURL) String

func (o *SwarmInitURL) String() string

String returns the string representation of the path with query string

func (*SwarmInitURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmInitURL) WithBasePath

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

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 SwarmInspect

type SwarmInspect struct {
	Context *middleware.Context
	Handler SwarmInspectHandler
}
SwarmInspect swagger:route GET /swarm Swarm swarmInspect

Inspect swarm

func NewSwarmInspect

func NewSwarmInspect(ctx *middleware.Context, handler SwarmInspectHandler) *SwarmInspect

NewSwarmInspect creates a new http.Handler for the swarm inspect operation

func (*SwarmInspect) ServeHTTP

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

type SwarmInspectHandler

type SwarmInspectHandler interface {
	Handle(SwarmInspectParams) middleware.Responder
}

SwarmInspectHandler interface for that can handle valid swarm inspect params

type SwarmInspectHandlerFunc

type SwarmInspectHandlerFunc func(SwarmInspectParams) middleware.Responder

SwarmInspectHandlerFunc turns a function with the right signature into a swarm inspect handler

func (SwarmInspectHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmInspectInternalServerError

type SwarmInspectInternalServerError struct {

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

SwarmInspectInternalServerError server error

swagger:response swarmInspectInternalServerError

func NewSwarmInspectInternalServerError

func NewSwarmInspectInternalServerError() *SwarmInspectInternalServerError

NewSwarmInspectInternalServerError creates SwarmInspectInternalServerError with default headers values

func (*SwarmInspectInternalServerError) SetPayload

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

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

func (*SwarmInspectInternalServerError) WithPayload

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

func (*SwarmInspectInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmInspectNotFound

type SwarmInspectNotFound struct {

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

SwarmInspectNotFound no such swarm

swagger:response swarmInspectNotFound

func NewSwarmInspectNotFound

func NewSwarmInspectNotFound() *SwarmInspectNotFound

NewSwarmInspectNotFound creates SwarmInspectNotFound with default headers values

func (*SwarmInspectNotFound) SetPayload

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

SetPayload sets the payload to the swarm inspect not found response

func (*SwarmInspectNotFound) WithPayload

WithPayload adds the payload to the swarm inspect not found response

func (*SwarmInspectNotFound) WriteResponse

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

WriteResponse to the client

type SwarmInspectOK

type SwarmInspectOK struct {

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

SwarmInspectOK no error

swagger:response swarmInspectOK

func NewSwarmInspectOK

func NewSwarmInspectOK() *SwarmInspectOK

NewSwarmInspectOK creates SwarmInspectOK with default headers values

func (*SwarmInspectOK) SetPayload

func (o *SwarmInspectOK) SetPayload(payload *models.Swarm)

SetPayload sets the payload to the swarm inspect o k response

func (*SwarmInspectOK) WithPayload

func (o *SwarmInspectOK) WithPayload(payload *models.Swarm) *SwarmInspectOK

WithPayload adds the payload to the swarm inspect o k response

func (*SwarmInspectOK) WriteResponse

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

WriteResponse to the client

type SwarmInspectParams

type SwarmInspectParams struct {

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

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

swagger:parameters SwarmInspect

func NewSwarmInspectParams

func NewSwarmInspectParams() SwarmInspectParams

NewSwarmInspectParams creates a new SwarmInspectParams object

There are no default values defined in the spec.

func (*SwarmInspectParams) BindRequest

func (o *SwarmInspectParams) 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 NewSwarmInspectParams() beforehand.

type SwarmInspectServiceUnavailable

type SwarmInspectServiceUnavailable struct {

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

SwarmInspectServiceUnavailable node is not part of a swarm

swagger:response swarmInspectServiceUnavailable

func NewSwarmInspectServiceUnavailable

func NewSwarmInspectServiceUnavailable() *SwarmInspectServiceUnavailable

NewSwarmInspectServiceUnavailable creates SwarmInspectServiceUnavailable with default headers values

func (*SwarmInspectServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm inspect service unavailable response

func (*SwarmInspectServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm inspect service unavailable response

func (*SwarmInspectServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmInspectURL

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

SwarmInspectURL generates an URL for the swarm inspect operation

func (*SwarmInspectURL) Build

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

Build a url path and query string

func (*SwarmInspectURL) BuildFull

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

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

func (*SwarmInspectURL) Must

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

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

func (*SwarmInspectURL) SetBasePath

func (o *SwarmInspectURL) 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 (*SwarmInspectURL) String

func (o *SwarmInspectURL) String() string

String returns the string representation of the path with query string

func (*SwarmInspectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmInspectURL) WithBasePath

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

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 SwarmJoin

type SwarmJoin struct {
	Context *middleware.Context
	Handler SwarmJoinHandler
}
SwarmJoin swagger:route POST /swarm/join Swarm swarmJoin

Join an existing swarm

func NewSwarmJoin

func NewSwarmJoin(ctx *middleware.Context, handler SwarmJoinHandler) *SwarmJoin

NewSwarmJoin creates a new http.Handler for the swarm join operation

func (*SwarmJoin) ServeHTTP

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

type SwarmJoinBadRequest

type SwarmJoinBadRequest struct {

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

SwarmJoinBadRequest bad parameter

swagger:response swarmJoinBadRequest

func NewSwarmJoinBadRequest

func NewSwarmJoinBadRequest() *SwarmJoinBadRequest

NewSwarmJoinBadRequest creates SwarmJoinBadRequest with default headers values

func (*SwarmJoinBadRequest) SetPayload

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

SetPayload sets the payload to the swarm join bad request response

func (*SwarmJoinBadRequest) WithPayload

func (o *SwarmJoinBadRequest) WithPayload(payload *models.ErrorResponse) *SwarmJoinBadRequest

WithPayload adds the payload to the swarm join bad request response

func (*SwarmJoinBadRequest) WriteResponse

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

WriteResponse to the client

type SwarmJoinBody

type SwarmJoinBody struct {

	// Externally reachable address advertised to other nodes. This
	// can either be an address/port combination in the form
	// `192.168.1.1:4567`, or an interface followed by a port number,
	// like `eth0:4567`. If the port number is omitted, the port
	// number from the listen address is used. If `AdvertiseAddr` is
	// not specified, it will be automatically detected when possible.
	//
	AdvertiseAddr string `json:"AdvertiseAddr,omitempty"`

	// Address or interface to use for data path traffic (format:
	// `<ip|interface>`), for example,  `192.168.1.1`, or an interface,
	// like `eth0`. If `DataPathAddr` is unspecified, the same addres
	// as `AdvertiseAddr` is used.
	//
	// The `DataPathAddr` specifies the address that global scope
	// network drivers will publish towards other nodes in order to
	// reach the containers running on this node. Using this parameter
	// it is possible to separate the container data traffic from the
	// management traffic of the cluster.
	//
	DataPathAddr string `json:"DataPathAddr,omitempty"`

	// Secret token for joining this swarm.
	JoinToken string `json:"JoinToken,omitempty"`

	// Listen address used for inter-manager communication if the node
	// gets promoted to manager, as well as determining the networking
	// interface used for the VXLAN Tunnel Endpoint (VTEP).
	//
	ListenAddr string `json:"ListenAddr,omitempty"`

	// Addresses of manager nodes already participating in the swarm.
	//
	RemoteAddrs []string `json:"RemoteAddrs"`
}

SwarmJoinBody swarm join body Example: {"AdvertiseAddr":"192.168.1.1:2377","JoinToken":"SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2","ListenAddr":"0.0.0.0:2377","RemoteAddrs":["node1:2377"]}

swagger:model SwarmJoinBody

func (*SwarmJoinBody) ContextValidate

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

ContextValidate validates this swarm join body based on context it is used

func (*SwarmJoinBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SwarmJoinBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SwarmJoinBody) Validate

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

Validate validates this swarm join body

type SwarmJoinHandler

type SwarmJoinHandler interface {
	Handle(SwarmJoinParams) middleware.Responder
}

SwarmJoinHandler interface for that can handle valid swarm join params

type SwarmJoinHandlerFunc

type SwarmJoinHandlerFunc func(SwarmJoinParams) middleware.Responder

SwarmJoinHandlerFunc turns a function with the right signature into a swarm join handler

func (SwarmJoinHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmJoinInternalServerError

type SwarmJoinInternalServerError struct {

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

SwarmJoinInternalServerError server error

swagger:response swarmJoinInternalServerError

func NewSwarmJoinInternalServerError

func NewSwarmJoinInternalServerError() *SwarmJoinInternalServerError

NewSwarmJoinInternalServerError creates SwarmJoinInternalServerError with default headers values

func (*SwarmJoinInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm join internal server error response

func (*SwarmJoinInternalServerError) WithPayload

WithPayload adds the payload to the swarm join internal server error response

func (*SwarmJoinInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmJoinOK

type SwarmJoinOK struct {
}

SwarmJoinOK no error

swagger:response swarmJoinOK

func NewSwarmJoinOK

func NewSwarmJoinOK() *SwarmJoinOK

NewSwarmJoinOK creates SwarmJoinOK with default headers values

func (*SwarmJoinOK) WriteResponse

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

WriteResponse to the client

type SwarmJoinParams

type SwarmJoinParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body SwarmJoinBody
}

SwarmJoinParams contains all the bound params for the swarm join operation typically these are obtained from a http.Request

swagger:parameters SwarmJoin

func NewSwarmJoinParams

func NewSwarmJoinParams() SwarmJoinParams

NewSwarmJoinParams creates a new SwarmJoinParams object

There are no default values defined in the spec.

func (*SwarmJoinParams) BindRequest

func (o *SwarmJoinParams) 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 NewSwarmJoinParams() beforehand.

type SwarmJoinServiceUnavailable

type SwarmJoinServiceUnavailable struct {

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

SwarmJoinServiceUnavailable node is already part of a swarm

swagger:response swarmJoinServiceUnavailable

func NewSwarmJoinServiceUnavailable

func NewSwarmJoinServiceUnavailable() *SwarmJoinServiceUnavailable

NewSwarmJoinServiceUnavailable creates SwarmJoinServiceUnavailable with default headers values

func (*SwarmJoinServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm join service unavailable response

func (*SwarmJoinServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm join service unavailable response

func (*SwarmJoinServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmJoinURL

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

SwarmJoinURL generates an URL for the swarm join operation

func (*SwarmJoinURL) Build

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

Build a url path and query string

func (*SwarmJoinURL) BuildFull

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

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

func (*SwarmJoinURL) Must

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

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

func (*SwarmJoinURL) SetBasePath

func (o *SwarmJoinURL) 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 (*SwarmJoinURL) String

func (o *SwarmJoinURL) String() string

String returns the string representation of the path with query string

func (*SwarmJoinURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmJoinURL) WithBasePath

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

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 SwarmLeave

type SwarmLeave struct {
	Context *middleware.Context
	Handler SwarmLeaveHandler
}
SwarmLeave swagger:route POST /swarm/leave Swarm swarmLeave

Leave a swarm

func NewSwarmLeave

func NewSwarmLeave(ctx *middleware.Context, handler SwarmLeaveHandler) *SwarmLeave

NewSwarmLeave creates a new http.Handler for the swarm leave operation

func (*SwarmLeave) ServeHTTP

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

type SwarmLeaveHandler

type SwarmLeaveHandler interface {
	Handle(SwarmLeaveParams) middleware.Responder
}

SwarmLeaveHandler interface for that can handle valid swarm leave params

type SwarmLeaveHandlerFunc

type SwarmLeaveHandlerFunc func(SwarmLeaveParams) middleware.Responder

SwarmLeaveHandlerFunc turns a function with the right signature into a swarm leave handler

func (SwarmLeaveHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmLeaveInternalServerError

type SwarmLeaveInternalServerError struct {

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

SwarmLeaveInternalServerError server error

swagger:response swarmLeaveInternalServerError

func NewSwarmLeaveInternalServerError

func NewSwarmLeaveInternalServerError() *SwarmLeaveInternalServerError

NewSwarmLeaveInternalServerError creates SwarmLeaveInternalServerError with default headers values

func (*SwarmLeaveInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm leave internal server error response

func (*SwarmLeaveInternalServerError) WithPayload

WithPayload adds the payload to the swarm leave internal server error response

func (*SwarmLeaveInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmLeaveOK

type SwarmLeaveOK struct {
}

SwarmLeaveOK no error

swagger:response swarmLeaveOK

func NewSwarmLeaveOK

func NewSwarmLeaveOK() *SwarmLeaveOK

NewSwarmLeaveOK creates SwarmLeaveOK with default headers values

func (*SwarmLeaveOK) WriteResponse

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

WriteResponse to the client

type SwarmLeaveParams

type SwarmLeaveParams struct {

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

	/*Force leave swarm, even if this is the last manager or that it will
	break the cluster.

	  In: query
	  Default: false
	*/
	Force *bool
}

SwarmLeaveParams contains all the bound params for the swarm leave operation typically these are obtained from a http.Request

swagger:parameters SwarmLeave

func NewSwarmLeaveParams

func NewSwarmLeaveParams() SwarmLeaveParams

NewSwarmLeaveParams creates a new SwarmLeaveParams object with the default values initialized.

func (*SwarmLeaveParams) BindRequest

func (o *SwarmLeaveParams) 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 NewSwarmLeaveParams() beforehand.

type SwarmLeaveServiceUnavailable

type SwarmLeaveServiceUnavailable struct {

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

SwarmLeaveServiceUnavailable node is not part of a swarm

swagger:response swarmLeaveServiceUnavailable

func NewSwarmLeaveServiceUnavailable

func NewSwarmLeaveServiceUnavailable() *SwarmLeaveServiceUnavailable

NewSwarmLeaveServiceUnavailable creates SwarmLeaveServiceUnavailable with default headers values

func (*SwarmLeaveServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm leave service unavailable response

func (*SwarmLeaveServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm leave service unavailable response

func (*SwarmLeaveServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmLeaveURL

type SwarmLeaveURL struct {
	Force *bool
	// contains filtered or unexported fields
}

SwarmLeaveURL generates an URL for the swarm leave operation

func (*SwarmLeaveURL) Build

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

Build a url path and query string

func (*SwarmLeaveURL) BuildFull

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

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

func (*SwarmLeaveURL) Must

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

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

func (*SwarmLeaveURL) SetBasePath

func (o *SwarmLeaveURL) 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 (*SwarmLeaveURL) String

func (o *SwarmLeaveURL) String() string

String returns the string representation of the path with query string

func (*SwarmLeaveURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmLeaveURL) WithBasePath

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

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 SwarmUnlock

type SwarmUnlock struct {
	Context *middleware.Context
	Handler SwarmUnlockHandler
}
SwarmUnlock swagger:route POST /swarm/unlock Swarm swarmUnlock

Unlock a locked manager

func NewSwarmUnlock

func NewSwarmUnlock(ctx *middleware.Context, handler SwarmUnlockHandler) *SwarmUnlock

NewSwarmUnlock creates a new http.Handler for the swarm unlock operation

func (*SwarmUnlock) ServeHTTP

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

type SwarmUnlockBody

type SwarmUnlockBody struct {

	// The swarm's unlock key.
	UnlockKey string `json:"UnlockKey,omitempty"`
}

SwarmUnlockBody swarm unlock body Example: {"UnlockKey":"SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"}

swagger:model SwarmUnlockBody

func (*SwarmUnlockBody) ContextValidate

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

ContextValidate validates this swarm unlock body based on context it is used

func (*SwarmUnlockBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SwarmUnlockBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SwarmUnlockBody) Validate

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

Validate validates this swarm unlock body

type SwarmUnlockHandler

type SwarmUnlockHandler interface {
	Handle(SwarmUnlockParams) middleware.Responder
}

SwarmUnlockHandler interface for that can handle valid swarm unlock params

type SwarmUnlockHandlerFunc

type SwarmUnlockHandlerFunc func(SwarmUnlockParams) middleware.Responder

SwarmUnlockHandlerFunc turns a function with the right signature into a swarm unlock handler

func (SwarmUnlockHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmUnlockInternalServerError

type SwarmUnlockInternalServerError struct {

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

SwarmUnlockInternalServerError server error

swagger:response swarmUnlockInternalServerError

func NewSwarmUnlockInternalServerError

func NewSwarmUnlockInternalServerError() *SwarmUnlockInternalServerError

NewSwarmUnlockInternalServerError creates SwarmUnlockInternalServerError with default headers values

func (*SwarmUnlockInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm unlock internal server error response

func (*SwarmUnlockInternalServerError) WithPayload

WithPayload adds the payload to the swarm unlock internal server error response

func (*SwarmUnlockInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmUnlockOK

type SwarmUnlockOK struct {
}

SwarmUnlockOK no error

swagger:response swarmUnlockOK

func NewSwarmUnlockOK

func NewSwarmUnlockOK() *SwarmUnlockOK

NewSwarmUnlockOK creates SwarmUnlockOK with default headers values

func (*SwarmUnlockOK) WriteResponse

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

WriteResponse to the client

type SwarmUnlockParams

type SwarmUnlockParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body SwarmUnlockBody
}

SwarmUnlockParams contains all the bound params for the swarm unlock operation typically these are obtained from a http.Request

swagger:parameters SwarmUnlock

func NewSwarmUnlockParams

func NewSwarmUnlockParams() SwarmUnlockParams

NewSwarmUnlockParams creates a new SwarmUnlockParams object

There are no default values defined in the spec.

func (*SwarmUnlockParams) BindRequest

func (o *SwarmUnlockParams) 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 NewSwarmUnlockParams() beforehand.

type SwarmUnlockServiceUnavailable

type SwarmUnlockServiceUnavailable struct {

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

SwarmUnlockServiceUnavailable node is not part of a swarm

swagger:response swarmUnlockServiceUnavailable

func NewSwarmUnlockServiceUnavailable

func NewSwarmUnlockServiceUnavailable() *SwarmUnlockServiceUnavailable

NewSwarmUnlockServiceUnavailable creates SwarmUnlockServiceUnavailable with default headers values

func (*SwarmUnlockServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm unlock service unavailable response

func (*SwarmUnlockServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm unlock service unavailable response

func (*SwarmUnlockServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmUnlockURL

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

SwarmUnlockURL generates an URL for the swarm unlock operation

func (*SwarmUnlockURL) Build

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

Build a url path and query string

func (*SwarmUnlockURL) BuildFull

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

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

func (*SwarmUnlockURL) Must

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

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

func (*SwarmUnlockURL) SetBasePath

func (o *SwarmUnlockURL) 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 (*SwarmUnlockURL) String

func (o *SwarmUnlockURL) String() string

String returns the string representation of the path with query string

func (*SwarmUnlockURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmUnlockURL) WithBasePath

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

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 SwarmUnlockkey

type SwarmUnlockkey struct {
	Context *middleware.Context
	Handler SwarmUnlockkeyHandler
}
SwarmUnlockkey swagger:route GET /swarm/unlockkey Swarm swarmUnlockkey

Get the unlock key

func NewSwarmUnlockkey

func NewSwarmUnlockkey(ctx *middleware.Context, handler SwarmUnlockkeyHandler) *SwarmUnlockkey

NewSwarmUnlockkey creates a new http.Handler for the swarm unlockkey operation

func (*SwarmUnlockkey) ServeHTTP

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

type SwarmUnlockkeyHandler

type SwarmUnlockkeyHandler interface {
	Handle(SwarmUnlockkeyParams) middleware.Responder
}

SwarmUnlockkeyHandler interface for that can handle valid swarm unlockkey params

type SwarmUnlockkeyHandlerFunc

type SwarmUnlockkeyHandlerFunc func(SwarmUnlockkeyParams) middleware.Responder

SwarmUnlockkeyHandlerFunc turns a function with the right signature into a swarm unlockkey handler

func (SwarmUnlockkeyHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmUnlockkeyInternalServerError

type SwarmUnlockkeyInternalServerError struct {

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

SwarmUnlockkeyInternalServerError server error

swagger:response swarmUnlockkeyInternalServerError

func NewSwarmUnlockkeyInternalServerError

func NewSwarmUnlockkeyInternalServerError() *SwarmUnlockkeyInternalServerError

NewSwarmUnlockkeyInternalServerError creates SwarmUnlockkeyInternalServerError with default headers values

func (*SwarmUnlockkeyInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm unlockkey internal server error response

func (*SwarmUnlockkeyInternalServerError) WithPayload

WithPayload adds the payload to the swarm unlockkey internal server error response

func (*SwarmUnlockkeyInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmUnlockkeyOK

type SwarmUnlockkeyOK struct {

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

SwarmUnlockkeyOK no error

swagger:response swarmUnlockkeyOK

func NewSwarmUnlockkeyOK

func NewSwarmUnlockkeyOK() *SwarmUnlockkeyOK

NewSwarmUnlockkeyOK creates SwarmUnlockkeyOK with default headers values

func (*SwarmUnlockkeyOK) SetPayload

func (o *SwarmUnlockkeyOK) SetPayload(payload *SwarmUnlockkeyOKBody)

SetPayload sets the payload to the swarm unlockkey o k response

func (*SwarmUnlockkeyOK) WithPayload

func (o *SwarmUnlockkeyOK) WithPayload(payload *SwarmUnlockkeyOKBody) *SwarmUnlockkeyOK

WithPayload adds the payload to the swarm unlockkey o k response

func (*SwarmUnlockkeyOK) WriteResponse

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

WriteResponse to the client

type SwarmUnlockkeyOKBody

type SwarmUnlockkeyOKBody struct {

	// The swarm's unlock key.
	UnlockKey string `json:"UnlockKey,omitempty"`
}

SwarmUnlockkeyOKBody UnlockKeyResponse Example: {"UnlockKey":"SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8"}

swagger:model SwarmUnlockkeyOKBody

func (*SwarmUnlockkeyOKBody) ContextValidate

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

ContextValidate validates this swarm unlockkey o k body based on context it is used

func (*SwarmUnlockkeyOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SwarmUnlockkeyOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SwarmUnlockkeyOKBody) Validate

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

Validate validates this swarm unlockkey o k body

type SwarmUnlockkeyParams

type SwarmUnlockkeyParams struct {

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

SwarmUnlockkeyParams contains all the bound params for the swarm unlockkey operation typically these are obtained from a http.Request

swagger:parameters SwarmUnlockkey

func NewSwarmUnlockkeyParams

func NewSwarmUnlockkeyParams() SwarmUnlockkeyParams

NewSwarmUnlockkeyParams creates a new SwarmUnlockkeyParams object

There are no default values defined in the spec.

func (*SwarmUnlockkeyParams) BindRequest

func (o *SwarmUnlockkeyParams) 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 NewSwarmUnlockkeyParams() beforehand.

type SwarmUnlockkeyServiceUnavailable

type SwarmUnlockkeyServiceUnavailable struct {

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

SwarmUnlockkeyServiceUnavailable node is not part of a swarm

swagger:response swarmUnlockkeyServiceUnavailable

func NewSwarmUnlockkeyServiceUnavailable

func NewSwarmUnlockkeyServiceUnavailable() *SwarmUnlockkeyServiceUnavailable

NewSwarmUnlockkeyServiceUnavailable creates SwarmUnlockkeyServiceUnavailable with default headers values

func (*SwarmUnlockkeyServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm unlockkey service unavailable response

func (*SwarmUnlockkeyServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm unlockkey service unavailable response

func (*SwarmUnlockkeyServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmUnlockkeyURL

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

SwarmUnlockkeyURL generates an URL for the swarm unlockkey operation

func (*SwarmUnlockkeyURL) Build

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

Build a url path and query string

func (*SwarmUnlockkeyURL) BuildFull

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

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

func (*SwarmUnlockkeyURL) Must

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

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

func (*SwarmUnlockkeyURL) SetBasePath

func (o *SwarmUnlockkeyURL) 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 (*SwarmUnlockkeyURL) String

func (o *SwarmUnlockkeyURL) String() string

String returns the string representation of the path with query string

func (*SwarmUnlockkeyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmUnlockkeyURL) WithBasePath

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

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 SwarmUpdate

type SwarmUpdate struct {
	Context *middleware.Context
	Handler SwarmUpdateHandler
}
SwarmUpdate swagger:route POST /swarm/update Swarm swarmUpdate

Update a swarm

func NewSwarmUpdate

func NewSwarmUpdate(ctx *middleware.Context, handler SwarmUpdateHandler) *SwarmUpdate

NewSwarmUpdate creates a new http.Handler for the swarm update operation

func (*SwarmUpdate) ServeHTTP

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

type SwarmUpdateBadRequest

type SwarmUpdateBadRequest struct {

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

SwarmUpdateBadRequest bad parameter

swagger:response swarmUpdateBadRequest

func NewSwarmUpdateBadRequest

func NewSwarmUpdateBadRequest() *SwarmUpdateBadRequest

NewSwarmUpdateBadRequest creates SwarmUpdateBadRequest with default headers values

func (*SwarmUpdateBadRequest) SetPayload

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

SetPayload sets the payload to the swarm update bad request response

func (*SwarmUpdateBadRequest) WithPayload

WithPayload adds the payload to the swarm update bad request response

func (*SwarmUpdateBadRequest) WriteResponse

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

WriteResponse to the client

type SwarmUpdateHandler

type SwarmUpdateHandler interface {
	Handle(SwarmUpdateParams) middleware.Responder
}

SwarmUpdateHandler interface for that can handle valid swarm update params

type SwarmUpdateHandlerFunc

type SwarmUpdateHandlerFunc func(SwarmUpdateParams) middleware.Responder

SwarmUpdateHandlerFunc turns a function with the right signature into a swarm update handler

func (SwarmUpdateHandlerFunc) Handle

Handle executing the request and returning a response

type SwarmUpdateInternalServerError

type SwarmUpdateInternalServerError struct {

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

SwarmUpdateInternalServerError server error

swagger:response swarmUpdateInternalServerError

func NewSwarmUpdateInternalServerError

func NewSwarmUpdateInternalServerError() *SwarmUpdateInternalServerError

NewSwarmUpdateInternalServerError creates SwarmUpdateInternalServerError with default headers values

func (*SwarmUpdateInternalServerError) SetPayload

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

SetPayload sets the payload to the swarm update internal server error response

func (*SwarmUpdateInternalServerError) WithPayload

WithPayload adds the payload to the swarm update internal server error response

func (*SwarmUpdateInternalServerError) WriteResponse

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

WriteResponse to the client

type SwarmUpdateOK

type SwarmUpdateOK struct {
}

SwarmUpdateOK no error

swagger:response swarmUpdateOK

func NewSwarmUpdateOK

func NewSwarmUpdateOK() *SwarmUpdateOK

NewSwarmUpdateOK creates SwarmUpdateOK with default headers values

func (*SwarmUpdateOK) WriteResponse

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

WriteResponse to the client

type SwarmUpdateParams

type SwarmUpdateParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.SwarmSpec
	/*Rotate the manager join token.
	  In: query
	  Default: false
	*/
	RotateManagerToken *bool
	/*Rotate the manager unlock key.
	  In: query
	  Default: false
	*/
	RotateManagerUnlockKey *bool
	/*Rotate the worker join token.
	  In: query
	  Default: false
	*/
	RotateWorkerToken *bool
	/*The version number of the swarm object being updated. This is
	required to avoid conflicting writes.

	  Required: true
	  In: query
	*/
	Version int64
}

SwarmUpdateParams contains all the bound params for the swarm update operation typically these are obtained from a http.Request

swagger:parameters SwarmUpdate

func NewSwarmUpdateParams

func NewSwarmUpdateParams() SwarmUpdateParams

NewSwarmUpdateParams creates a new SwarmUpdateParams object with the default values initialized.

func (*SwarmUpdateParams) BindRequest

func (o *SwarmUpdateParams) 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 NewSwarmUpdateParams() beforehand.

type SwarmUpdateServiceUnavailable

type SwarmUpdateServiceUnavailable struct {

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

SwarmUpdateServiceUnavailable node is not part of a swarm

swagger:response swarmUpdateServiceUnavailable

func NewSwarmUpdateServiceUnavailable

func NewSwarmUpdateServiceUnavailable() *SwarmUpdateServiceUnavailable

NewSwarmUpdateServiceUnavailable creates SwarmUpdateServiceUnavailable with default headers values

func (*SwarmUpdateServiceUnavailable) SetPayload

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

SetPayload sets the payload to the swarm update service unavailable response

func (*SwarmUpdateServiceUnavailable) WithPayload

WithPayload adds the payload to the swarm update service unavailable response

func (*SwarmUpdateServiceUnavailable) WriteResponse

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

WriteResponse to the client

type SwarmUpdateURL

type SwarmUpdateURL struct {
	RotateManagerToken     *bool
	RotateManagerUnlockKey *bool
	RotateWorkerToken      *bool
	Version                int64
	// contains filtered or unexported fields
}

SwarmUpdateURL generates an URL for the swarm update operation

func (*SwarmUpdateURL) Build

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

Build a url path and query string

func (*SwarmUpdateURL) BuildFull

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

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

func (*SwarmUpdateURL) Must

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

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

func (*SwarmUpdateURL) SetBasePath

func (o *SwarmUpdateURL) 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 (*SwarmUpdateURL) String

func (o *SwarmUpdateURL) String() string

String returns the string representation of the path with query string

func (*SwarmUpdateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwarmUpdateURL) WithBasePath

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

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