Documentation ¶
Index ¶
- Constants
- type SwarmInit
- type SwarmInitBadRequest
- type SwarmInitBody
- type SwarmInitHandler
- type SwarmInitHandlerFunc
- type SwarmInitInternalServerError
- type SwarmInitOK
- type SwarmInitParams
- type SwarmInitServiceUnavailable
- type SwarmInitURL
- func (o *SwarmInitURL) Build() (*url.URL, error)
- func (o *SwarmInitURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmInitURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmInitURL) SetBasePath(bp string)
- func (o *SwarmInitURL) String() string
- func (o *SwarmInitURL) StringFull(scheme, host string) string
- func (o *SwarmInitURL) WithBasePath(bp string) *SwarmInitURL
- type SwarmInspect
- type SwarmInspectHandler
- type SwarmInspectHandlerFunc
- type SwarmInspectInternalServerError
- func (o *SwarmInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmInspectInternalServerError
- func (o *SwarmInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmInspectNotFound
- type SwarmInspectOK
- type SwarmInspectParams
- type SwarmInspectServiceUnavailable
- func (o *SwarmInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmInspectServiceUnavailable
- func (o *SwarmInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmInspectURL
- func (o *SwarmInspectURL) Build() (*url.URL, error)
- func (o *SwarmInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmInspectURL) SetBasePath(bp string)
- func (o *SwarmInspectURL) String() string
- func (o *SwarmInspectURL) StringFull(scheme, host string) string
- func (o *SwarmInspectURL) WithBasePath(bp string) *SwarmInspectURL
- type SwarmJoin
- type SwarmJoinBadRequest
- type SwarmJoinBody
- type SwarmJoinHandler
- type SwarmJoinHandlerFunc
- type SwarmJoinInternalServerError
- type SwarmJoinOK
- type SwarmJoinParams
- type SwarmJoinServiceUnavailable
- type SwarmJoinURL
- func (o *SwarmJoinURL) Build() (*url.URL, error)
- func (o *SwarmJoinURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmJoinURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmJoinURL) SetBasePath(bp string)
- func (o *SwarmJoinURL) String() string
- func (o *SwarmJoinURL) StringFull(scheme, host string) string
- func (o *SwarmJoinURL) WithBasePath(bp string) *SwarmJoinURL
- type SwarmLeave
- type SwarmLeaveHandler
- type SwarmLeaveHandlerFunc
- type SwarmLeaveInternalServerError
- func (o *SwarmLeaveInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmLeaveInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmLeaveInternalServerError
- func (o *SwarmLeaveInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmLeaveOK
- type SwarmLeaveParams
- type SwarmLeaveServiceUnavailable
- type SwarmLeaveURL
- func (o *SwarmLeaveURL) Build() (*url.URL, error)
- func (o *SwarmLeaveURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmLeaveURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmLeaveURL) SetBasePath(bp string)
- func (o *SwarmLeaveURL) String() string
- func (o *SwarmLeaveURL) StringFull(scheme, host string) string
- func (o *SwarmLeaveURL) WithBasePath(bp string) *SwarmLeaveURL
- type SwarmUnlock
- type SwarmUnlockBody
- type SwarmUnlockHandler
- type SwarmUnlockHandlerFunc
- type SwarmUnlockInternalServerError
- func (o *SwarmUnlockInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUnlockInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUnlockInternalServerError
- func (o *SwarmUnlockInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUnlockOK
- type SwarmUnlockParams
- type SwarmUnlockServiceUnavailable
- func (o *SwarmUnlockServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUnlockServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUnlockServiceUnavailable
- func (o *SwarmUnlockServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUnlockURL
- func (o *SwarmUnlockURL) Build() (*url.URL, error)
- func (o *SwarmUnlockURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmUnlockURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmUnlockURL) SetBasePath(bp string)
- func (o *SwarmUnlockURL) String() string
- func (o *SwarmUnlockURL) StringFull(scheme, host string) string
- func (o *SwarmUnlockURL) WithBasePath(bp string) *SwarmUnlockURL
- type SwarmUnlockkey
- type SwarmUnlockkeyHandler
- type SwarmUnlockkeyHandlerFunc
- type SwarmUnlockkeyInternalServerError
- func (o *SwarmUnlockkeyInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUnlockkeyInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUnlockkeyInternalServerError
- func (o *SwarmUnlockkeyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUnlockkeyOK
- type SwarmUnlockkeyOKBody
- type SwarmUnlockkeyParams
- type SwarmUnlockkeyServiceUnavailable
- func (o *SwarmUnlockkeyServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUnlockkeyServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUnlockkeyServiceUnavailable
- func (o *SwarmUnlockkeyServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUnlockkeyURL
- func (o *SwarmUnlockkeyURL) Build() (*url.URL, error)
- func (o *SwarmUnlockkeyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmUnlockkeyURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmUnlockkeyURL) SetBasePath(bp string)
- func (o *SwarmUnlockkeyURL) String() string
- func (o *SwarmUnlockkeyURL) StringFull(scheme, host string) string
- func (o *SwarmUnlockkeyURL) WithBasePath(bp string) *SwarmUnlockkeyURL
- type SwarmUpdate
- type SwarmUpdateBadRequest
- type SwarmUpdateHandler
- type SwarmUpdateHandlerFunc
- type SwarmUpdateInternalServerError
- func (o *SwarmUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUpdateInternalServerError
- func (o *SwarmUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUpdateOK
- type SwarmUpdateParams
- type SwarmUpdateServiceUnavailable
- func (o *SwarmUpdateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SwarmUpdateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUpdateServiceUnavailable
- func (o *SwarmUpdateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SwarmUpdateURL
- func (o *SwarmUpdateURL) Build() (*url.URL, error)
- func (o *SwarmUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SwarmUpdateURL) Must(u *url.URL, err error) *url.URL
- func (o *SwarmUpdateURL) SetBasePath(bp string)
- func (o *SwarmUpdateURL) String() string
- func (o *SwarmUpdateURL) StringFull(scheme, host string) string
- func (o *SwarmUpdateURL) WithBasePath(bp string) *SwarmUpdateURL
Constants ¶
const SwarmInitBadRequestCode int = 400
SwarmInitBadRequestCode is the HTTP code returned for type SwarmInitBadRequest
const SwarmInitInternalServerErrorCode int = 500
SwarmInitInternalServerErrorCode is the HTTP code returned for type SwarmInitInternalServerError
const SwarmInitOKCode int = 200
SwarmInitOKCode is the HTTP code returned for type SwarmInitOK
SwarmInitServiceUnavailableCode is the HTTP code returned for type SwarmInitServiceUnavailable
const SwarmInspectInternalServerErrorCode int = 500
SwarmInspectInternalServerErrorCode is the HTTP code returned for type SwarmInspectInternalServerError
const SwarmInspectNotFoundCode int = 404
SwarmInspectNotFoundCode is the HTTP code returned for type SwarmInspectNotFound
const SwarmInspectOKCode int = 200
SwarmInspectOKCode is the HTTP code returned for type SwarmInspectOK
SwarmInspectServiceUnavailableCode is the HTTP code returned for type SwarmInspectServiceUnavailable
const SwarmJoinBadRequestCode int = 400
SwarmJoinBadRequestCode is the HTTP code returned for type SwarmJoinBadRequest
const SwarmJoinInternalServerErrorCode int = 500
SwarmJoinInternalServerErrorCode is the HTTP code returned for type SwarmJoinInternalServerError
const SwarmJoinOKCode int = 200
SwarmJoinOKCode is the HTTP code returned for type SwarmJoinOK
SwarmJoinServiceUnavailableCode is the HTTP code returned for type SwarmJoinServiceUnavailable
const SwarmLeaveInternalServerErrorCode int = 500
SwarmLeaveInternalServerErrorCode is the HTTP code returned for type SwarmLeaveInternalServerError
const SwarmLeaveOKCode int = 200
SwarmLeaveOKCode is the HTTP code returned for type SwarmLeaveOK
SwarmLeaveServiceUnavailableCode is the HTTP code returned for type SwarmLeaveServiceUnavailable
const SwarmUnlockInternalServerErrorCode int = 500
SwarmUnlockInternalServerErrorCode is the HTTP code returned for type SwarmUnlockInternalServerError
const SwarmUnlockOKCode int = 200
SwarmUnlockOKCode is the HTTP code returned for type SwarmUnlockOK
SwarmUnlockServiceUnavailableCode is the HTTP code returned for type SwarmUnlockServiceUnavailable
const SwarmUnlockkeyInternalServerErrorCode int = 500
SwarmUnlockkeyInternalServerErrorCode is the HTTP code returned for type SwarmUnlockkeyInternalServerError
const SwarmUnlockkeyOKCode int = 200
SwarmUnlockkeyOKCode is the HTTP code returned for type SwarmUnlockkeyOK
SwarmUnlockkeyServiceUnavailableCode is the HTTP code returned for type SwarmUnlockkeyServiceUnavailable
const SwarmUpdateBadRequestCode int = 400
SwarmUpdateBadRequestCode is the HTTP code returned for type SwarmUpdateBadRequest
const SwarmUpdateInternalServerErrorCode int = 500
SwarmUpdateInternalServerErrorCode is the HTTP code returned for type SwarmUpdateInternalServerError
const SwarmUpdateOKCode int = 200
SwarmUpdateOKCode is the HTTP code returned for type SwarmUpdateOK
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
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 ¶
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
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 ¶
func (fn SwarmInitHandlerFunc) Handle(params SwarmInitParams) middleware.Responder
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 ¶
func (o *SwarmInitInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmInitInternalServerError
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmInitServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmInitServiceUnavailable
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 ¶
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 ¶
func (fn SwarmInspectHandlerFunc) Handle(params SwarmInspectParams) middleware.Responder
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 ¶
func (o *SwarmInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmInspectInternalServerError
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 ¶
func (o *SwarmInspectNotFound) WithPayload(payload *models.ErrorResponse) *SwarmInspectNotFound
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 ¶
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 ¶
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmInspectServiceUnavailable
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 ¶
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
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 ¶
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
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 ¶
func (fn SwarmJoinHandlerFunc) Handle(params SwarmJoinParams) middleware.Responder
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 ¶
func (o *SwarmJoinInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmJoinInternalServerError
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmJoinServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmJoinServiceUnavailable
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 ¶
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 ¶
func (fn SwarmLeaveHandlerFunc) Handle(params SwarmLeaveParams) middleware.Responder
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 ¶
func (o *SwarmLeaveInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmLeaveInternalServerError
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmLeaveServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmLeaveServiceUnavailable
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 ¶
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 ¶
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
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 ¶
func (fn SwarmUnlockHandlerFunc) Handle(params SwarmUnlockParams) middleware.Responder
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 ¶
func (o *SwarmUnlockInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUnlockInternalServerError
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmUnlockServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUnlockServiceUnavailable
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 ¶
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 ¶
func (fn SwarmUnlockkeyHandlerFunc) Handle(params SwarmUnlockkeyParams) middleware.Responder
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 ¶
func (o *SwarmUnlockkeyInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUnlockkeyInternalServerError
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 ¶
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
type SwarmUnlockkeyParams ¶
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmUnlockkeyServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUnlockkeyServiceUnavailable
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 ¶
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 ¶
func (o *SwarmUpdateBadRequest) WithPayload(payload *models.ErrorResponse) *SwarmUpdateBadRequest
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 ¶
func (fn SwarmUpdateHandlerFunc) Handle(params SwarmUpdateParams) middleware.Responder
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 ¶
func (o *SwarmUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *SwarmUpdateInternalServerError
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *SwarmUpdateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SwarmUpdateServiceUnavailable
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 ¶
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
Source Files ¶
- swarm_init.go
- swarm_init_parameters.go
- swarm_init_responses.go
- swarm_init_urlbuilder.go
- swarm_inspect.go
- swarm_inspect_parameters.go
- swarm_inspect_responses.go
- swarm_inspect_urlbuilder.go
- swarm_join.go
- swarm_join_parameters.go
- swarm_join_responses.go
- swarm_join_urlbuilder.go
- swarm_leave.go
- swarm_leave_parameters.go
- swarm_leave_responses.go
- swarm_leave_urlbuilder.go
- swarm_unlock.go
- swarm_unlock_parameters.go
- swarm_unlock_responses.go
- swarm_unlock_urlbuilder.go
- swarm_unlockkey.go
- swarm_unlockkey_parameters.go
- swarm_unlockkey_responses.go
- swarm_unlockkey_urlbuilder.go
- swarm_update.go
- swarm_update_parameters.go
- swarm_update_responses.go
- swarm_update_urlbuilder.go