node

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 NodeDeleteInternalServerErrorCode int = 500

NodeDeleteInternalServerErrorCode is the HTTP code returned for type NodeDeleteInternalServerError

View Source
const NodeDeleteNotFoundCode int = 404

NodeDeleteNotFoundCode is the HTTP code returned for type NodeDeleteNotFound

View Source
const NodeDeleteOKCode int = 200

NodeDeleteOKCode is the HTTP code returned for type NodeDeleteOK

View Source
const NodeDeleteServiceUnavailableCode int = 503

NodeDeleteServiceUnavailableCode is the HTTP code returned for type NodeDeleteServiceUnavailable

View Source
const NodeInspectInternalServerErrorCode int = 500

NodeInspectInternalServerErrorCode is the HTTP code returned for type NodeInspectInternalServerError

View Source
const NodeInspectNotFoundCode int = 404

NodeInspectNotFoundCode is the HTTP code returned for type NodeInspectNotFound

View Source
const NodeInspectOKCode int = 200

NodeInspectOKCode is the HTTP code returned for type NodeInspectOK

View Source
const NodeInspectServiceUnavailableCode int = 503

NodeInspectServiceUnavailableCode is the HTTP code returned for type NodeInspectServiceUnavailable

View Source
const NodeListInternalServerErrorCode int = 500

NodeListInternalServerErrorCode is the HTTP code returned for type NodeListInternalServerError

View Source
const NodeListOKCode int = 200

NodeListOKCode is the HTTP code returned for type NodeListOK

View Source
const NodeListServiceUnavailableCode int = 503

NodeListServiceUnavailableCode is the HTTP code returned for type NodeListServiceUnavailable

View Source
const NodeUpdateBadRequestCode int = 400

NodeUpdateBadRequestCode is the HTTP code returned for type NodeUpdateBadRequest

View Source
const NodeUpdateInternalServerErrorCode int = 500

NodeUpdateInternalServerErrorCode is the HTTP code returned for type NodeUpdateInternalServerError

View Source
const NodeUpdateNotFoundCode int = 404

NodeUpdateNotFoundCode is the HTTP code returned for type NodeUpdateNotFound

View Source
const NodeUpdateOKCode int = 200

NodeUpdateOKCode is the HTTP code returned for type NodeUpdateOK

View Source
const NodeUpdateServiceUnavailableCode int = 503

NodeUpdateServiceUnavailableCode is the HTTP code returned for type NodeUpdateServiceUnavailable

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeDelete

type NodeDelete struct {
	Context *middleware.Context
	Handler NodeDeleteHandler
}
NodeDelete swagger:route DELETE /nodes/{id} Node nodeDelete

Delete a node

func NewNodeDelete

func NewNodeDelete(ctx *middleware.Context, handler NodeDeleteHandler) *NodeDelete

NewNodeDelete creates a new http.Handler for the node delete operation

func (*NodeDelete) ServeHTTP

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

type NodeDeleteHandler

type NodeDeleteHandler interface {
	Handle(NodeDeleteParams) middleware.Responder
}

NodeDeleteHandler interface for that can handle valid node delete params

type NodeDeleteHandlerFunc

type NodeDeleteHandlerFunc func(NodeDeleteParams) middleware.Responder

NodeDeleteHandlerFunc turns a function with the right signature into a node delete handler

func (NodeDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type NodeDeleteInternalServerError

type NodeDeleteInternalServerError struct {

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

NodeDeleteInternalServerError server error

swagger:response nodeDeleteInternalServerError

func NewNodeDeleteInternalServerError

func NewNodeDeleteInternalServerError() *NodeDeleteInternalServerError

NewNodeDeleteInternalServerError creates NodeDeleteInternalServerError with default headers values

func (*NodeDeleteInternalServerError) SetPayload

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

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

func (*NodeDeleteInternalServerError) WithPayload

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

func (*NodeDeleteInternalServerError) WriteResponse

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

WriteResponse to the client

type NodeDeleteNotFound

type NodeDeleteNotFound struct {

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

NodeDeleteNotFound no such node

swagger:response nodeDeleteNotFound

func NewNodeDeleteNotFound

func NewNodeDeleteNotFound() *NodeDeleteNotFound

NewNodeDeleteNotFound creates NodeDeleteNotFound with default headers values

func (*NodeDeleteNotFound) SetPayload

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

SetPayload sets the payload to the node delete not found response

func (*NodeDeleteNotFound) WithPayload

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

WithPayload adds the payload to the node delete not found response

func (*NodeDeleteNotFound) WriteResponse

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

WriteResponse to the client

type NodeDeleteOK

type NodeDeleteOK struct {
}

NodeDeleteOK no error

swagger:response nodeDeleteOK

func NewNodeDeleteOK

func NewNodeDeleteOK() *NodeDeleteOK

NewNodeDeleteOK creates NodeDeleteOK with default headers values

func (*NodeDeleteOK) WriteResponse

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

WriteResponse to the client

type NodeDeleteParams

type NodeDeleteParams struct {

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

	/*Force remove a node from the swarm
	  In: query
	  Default: false
	*/
	Force *bool
	/*The ID or name of the node
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters NodeDelete

func NewNodeDeleteParams

func NewNodeDeleteParams() NodeDeleteParams

NewNodeDeleteParams creates a new NodeDeleteParams object with the default values initialized.

func (*NodeDeleteParams) BindRequest

func (o *NodeDeleteParams) 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 NewNodeDeleteParams() beforehand.

type NodeDeleteServiceUnavailable

type NodeDeleteServiceUnavailable struct {

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

NodeDeleteServiceUnavailable node is not part of a swarm

swagger:response nodeDeleteServiceUnavailable

func NewNodeDeleteServiceUnavailable

func NewNodeDeleteServiceUnavailable() *NodeDeleteServiceUnavailable

NewNodeDeleteServiceUnavailable creates NodeDeleteServiceUnavailable with default headers values

func (*NodeDeleteServiceUnavailable) SetPayload

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

SetPayload sets the payload to the node delete service unavailable response

func (*NodeDeleteServiceUnavailable) WithPayload

WithPayload adds the payload to the node delete service unavailable response

func (*NodeDeleteServiceUnavailable) WriteResponse

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

WriteResponse to the client

type NodeDeleteURL

type NodeDeleteURL struct {
	ID string

	Force *bool
	// contains filtered or unexported fields
}

NodeDeleteURL generates an URL for the node delete operation

func (*NodeDeleteURL) Build

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

Build a url path and query string

func (*NodeDeleteURL) BuildFull

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

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

func (*NodeDeleteURL) Must

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

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

func (*NodeDeleteURL) SetBasePath

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

func (o *NodeDeleteURL) String() string

String returns the string representation of the path with query string

func (*NodeDeleteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*NodeDeleteURL) WithBasePath

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

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 NodeInspect

type NodeInspect struct {
	Context *middleware.Context
	Handler NodeInspectHandler
}
NodeInspect swagger:route GET /nodes/{id} Node nodeInspect

Inspect a node

func NewNodeInspect

func NewNodeInspect(ctx *middleware.Context, handler NodeInspectHandler) *NodeInspect

NewNodeInspect creates a new http.Handler for the node inspect operation

func (*NodeInspect) ServeHTTP

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

type NodeInspectHandler

type NodeInspectHandler interface {
	Handle(NodeInspectParams) middleware.Responder
}

NodeInspectHandler interface for that can handle valid node inspect params

type NodeInspectHandlerFunc

type NodeInspectHandlerFunc func(NodeInspectParams) middleware.Responder

NodeInspectHandlerFunc turns a function with the right signature into a node inspect handler

func (NodeInspectHandlerFunc) Handle

Handle executing the request and returning a response

type NodeInspectInternalServerError

type NodeInspectInternalServerError struct {

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

NodeInspectInternalServerError server error

swagger:response nodeInspectInternalServerError

func NewNodeInspectInternalServerError

func NewNodeInspectInternalServerError() *NodeInspectInternalServerError

NewNodeInspectInternalServerError creates NodeInspectInternalServerError with default headers values

func (*NodeInspectInternalServerError) SetPayload

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

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

func (*NodeInspectInternalServerError) WithPayload

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

func (*NodeInspectInternalServerError) WriteResponse

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

WriteResponse to the client

type NodeInspectNotFound

type NodeInspectNotFound struct {

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

NodeInspectNotFound no such node

swagger:response nodeInspectNotFound

func NewNodeInspectNotFound

func NewNodeInspectNotFound() *NodeInspectNotFound

NewNodeInspectNotFound creates NodeInspectNotFound with default headers values

func (*NodeInspectNotFound) SetPayload

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

SetPayload sets the payload to the node inspect not found response

func (*NodeInspectNotFound) WithPayload

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

WithPayload adds the payload to the node inspect not found response

func (*NodeInspectNotFound) WriteResponse

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

WriteResponse to the client

type NodeInspectOK

type NodeInspectOK struct {

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

NodeInspectOK no error

swagger:response nodeInspectOK

func NewNodeInspectOK

func NewNodeInspectOK() *NodeInspectOK

NewNodeInspectOK creates NodeInspectOK with default headers values

func (*NodeInspectOK) SetPayload

func (o *NodeInspectOK) SetPayload(payload *models.Node)

SetPayload sets the payload to the node inspect o k response

func (*NodeInspectOK) WithPayload

func (o *NodeInspectOK) WithPayload(payload *models.Node) *NodeInspectOK

WithPayload adds the payload to the node inspect o k response

func (*NodeInspectOK) WriteResponse

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

WriteResponse to the client

type NodeInspectParams

type NodeInspectParams struct {

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

	/*The ID or name of the node
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters NodeInspect

func NewNodeInspectParams

func NewNodeInspectParams() NodeInspectParams

NewNodeInspectParams creates a new NodeInspectParams object

There are no default values defined in the spec.

func (*NodeInspectParams) BindRequest

func (o *NodeInspectParams) 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 NewNodeInspectParams() beforehand.

type NodeInspectServiceUnavailable

type NodeInspectServiceUnavailable struct {

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

NodeInspectServiceUnavailable node is not part of a swarm

swagger:response nodeInspectServiceUnavailable

func NewNodeInspectServiceUnavailable

func NewNodeInspectServiceUnavailable() *NodeInspectServiceUnavailable

NewNodeInspectServiceUnavailable creates NodeInspectServiceUnavailable with default headers values

func (*NodeInspectServiceUnavailable) SetPayload

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

SetPayload sets the payload to the node inspect service unavailable response

func (*NodeInspectServiceUnavailable) WithPayload

WithPayload adds the payload to the node inspect service unavailable response

func (*NodeInspectServiceUnavailable) WriteResponse

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

WriteResponse to the client

type NodeInspectURL

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

NodeInspectURL generates an URL for the node inspect operation

func (*NodeInspectURL) Build

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

Build a url path and query string

func (*NodeInspectURL) BuildFull

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

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

func (*NodeInspectURL) Must

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

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

func (*NodeInspectURL) SetBasePath

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

func (o *NodeInspectURL) String() string

String returns the string representation of the path with query string

func (*NodeInspectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*NodeInspectURL) WithBasePath

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

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 NodeList

type NodeList struct {
	Context *middleware.Context
	Handler NodeListHandler
}
NodeList swagger:route GET /nodes Node nodeList

List nodes

func NewNodeList

func NewNodeList(ctx *middleware.Context, handler NodeListHandler) *NodeList

NewNodeList creates a new http.Handler for the node list operation

func (*NodeList) ServeHTTP

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

type NodeListHandler

type NodeListHandler interface {
	Handle(NodeListParams) middleware.Responder
}

NodeListHandler interface for that can handle valid node list params

type NodeListHandlerFunc

type NodeListHandlerFunc func(NodeListParams) middleware.Responder

NodeListHandlerFunc turns a function with the right signature into a node list handler

func (NodeListHandlerFunc) Handle

Handle executing the request and returning a response

type NodeListInternalServerError

type NodeListInternalServerError struct {

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

NodeListInternalServerError server error

swagger:response nodeListInternalServerError

func NewNodeListInternalServerError

func NewNodeListInternalServerError() *NodeListInternalServerError

NewNodeListInternalServerError creates NodeListInternalServerError with default headers values

func (*NodeListInternalServerError) SetPayload

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

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

func (*NodeListInternalServerError) WithPayload

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

func (*NodeListInternalServerError) WriteResponse

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

WriteResponse to the client

type NodeListOK

type NodeListOK struct {

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

NodeListOK no error

swagger:response nodeListOK

func NewNodeListOK

func NewNodeListOK() *NodeListOK

NewNodeListOK creates NodeListOK with default headers values

func (*NodeListOK) SetPayload

func (o *NodeListOK) SetPayload(payload []*models.Node)

SetPayload sets the payload to the node list o k response

func (*NodeListOK) WithPayload

func (o *NodeListOK) WithPayload(payload []*models.Node) *NodeListOK

WithPayload adds the payload to the node list o k response

func (*NodeListOK) WriteResponse

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

WriteResponse to the client

type NodeListParams

type NodeListParams struct {

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

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

	Available filters:
	- `id=<node id>`
	- `label=<engine label>`
	- `membership=`(`accepted`|`pending`)`
	- `name=<node name>`
	- `node.label=<node label>`
	- `role=`(`manager`|`worker`)`

	  In: query
	*/
	Filters *string
}

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

swagger:parameters NodeList

func NewNodeListParams

func NewNodeListParams() NodeListParams

NewNodeListParams creates a new NodeListParams object

There are no default values defined in the spec.

func (*NodeListParams) BindRequest

func (o *NodeListParams) 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 NewNodeListParams() beforehand.

type NodeListServiceUnavailable

type NodeListServiceUnavailable struct {

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

NodeListServiceUnavailable node is not part of a swarm

swagger:response nodeListServiceUnavailable

func NewNodeListServiceUnavailable

func NewNodeListServiceUnavailable() *NodeListServiceUnavailable

NewNodeListServiceUnavailable creates NodeListServiceUnavailable with default headers values

func (*NodeListServiceUnavailable) SetPayload

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

SetPayload sets the payload to the node list service unavailable response

func (*NodeListServiceUnavailable) WithPayload

WithPayload adds the payload to the node list service unavailable response

func (*NodeListServiceUnavailable) WriteResponse

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

WriteResponse to the client

type NodeListURL

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

NodeListURL generates an URL for the node list operation

func (*NodeListURL) Build

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

Build a url path and query string

func (*NodeListURL) BuildFull

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

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

func (*NodeListURL) Must

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

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

func (*NodeListURL) SetBasePath

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

func (o *NodeListURL) String() string

String returns the string representation of the path with query string

func (*NodeListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*NodeListURL) WithBasePath

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

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 NodeUpdate

type NodeUpdate struct {
	Context *middleware.Context
	Handler NodeUpdateHandler
}
NodeUpdate swagger:route POST /nodes/{id}/update Node nodeUpdate

Update a node

func NewNodeUpdate

func NewNodeUpdate(ctx *middleware.Context, handler NodeUpdateHandler) *NodeUpdate

NewNodeUpdate creates a new http.Handler for the node update operation

func (*NodeUpdate) ServeHTTP

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

type NodeUpdateBadRequest

type NodeUpdateBadRequest struct {

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

NodeUpdateBadRequest bad parameter

swagger:response nodeUpdateBadRequest

func NewNodeUpdateBadRequest

func NewNodeUpdateBadRequest() *NodeUpdateBadRequest

NewNodeUpdateBadRequest creates NodeUpdateBadRequest with default headers values

func (*NodeUpdateBadRequest) SetPayload

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

SetPayload sets the payload to the node update bad request response

func (*NodeUpdateBadRequest) WithPayload

WithPayload adds the payload to the node update bad request response

func (*NodeUpdateBadRequest) WriteResponse

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

WriteResponse to the client

type NodeUpdateHandler

type NodeUpdateHandler interface {
	Handle(NodeUpdateParams) middleware.Responder
}

NodeUpdateHandler interface for that can handle valid node update params

type NodeUpdateHandlerFunc

type NodeUpdateHandlerFunc func(NodeUpdateParams) middleware.Responder

NodeUpdateHandlerFunc turns a function with the right signature into a node update handler

func (NodeUpdateHandlerFunc) Handle

Handle executing the request and returning a response

type NodeUpdateInternalServerError

type NodeUpdateInternalServerError struct {

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

NodeUpdateInternalServerError server error

swagger:response nodeUpdateInternalServerError

func NewNodeUpdateInternalServerError

func NewNodeUpdateInternalServerError() *NodeUpdateInternalServerError

NewNodeUpdateInternalServerError creates NodeUpdateInternalServerError with default headers values

func (*NodeUpdateInternalServerError) SetPayload

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

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

func (*NodeUpdateInternalServerError) WithPayload

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

func (*NodeUpdateInternalServerError) WriteResponse

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

WriteResponse to the client

type NodeUpdateNotFound

type NodeUpdateNotFound struct {

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

NodeUpdateNotFound no such node

swagger:response nodeUpdateNotFound

func NewNodeUpdateNotFound

func NewNodeUpdateNotFound() *NodeUpdateNotFound

NewNodeUpdateNotFound creates NodeUpdateNotFound with default headers values

func (*NodeUpdateNotFound) SetPayload

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

SetPayload sets the payload to the node update not found response

func (*NodeUpdateNotFound) WithPayload

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

WithPayload adds the payload to the node update not found response

func (*NodeUpdateNotFound) WriteResponse

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

WriteResponse to the client

type NodeUpdateOK

type NodeUpdateOK struct {
}

NodeUpdateOK no error

swagger:response nodeUpdateOK

func NewNodeUpdateOK

func NewNodeUpdateOK() *NodeUpdateOK

NewNodeUpdateOK creates NodeUpdateOK with default headers values

func (*NodeUpdateOK) WriteResponse

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

WriteResponse to the client

type NodeUpdateParams

type NodeUpdateParams struct {

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

	/*
	  In: body
	*/
	Body *models.NodeSpec
	/*The ID of the node
	  Required: true
	  In: path
	*/
	ID string
	/*The version number of the node object being updated. This is required
	to avoid conflicting writes.

	  Required: true
	  In: query
	*/
	Version int64
}

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

swagger:parameters NodeUpdate

func NewNodeUpdateParams

func NewNodeUpdateParams() NodeUpdateParams

NewNodeUpdateParams creates a new NodeUpdateParams object

There are no default values defined in the spec.

func (*NodeUpdateParams) BindRequest

func (o *NodeUpdateParams) 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 NewNodeUpdateParams() beforehand.

type NodeUpdateServiceUnavailable

type NodeUpdateServiceUnavailable struct {

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

NodeUpdateServiceUnavailable node is not part of a swarm

swagger:response nodeUpdateServiceUnavailable

func NewNodeUpdateServiceUnavailable

func NewNodeUpdateServiceUnavailable() *NodeUpdateServiceUnavailable

NewNodeUpdateServiceUnavailable creates NodeUpdateServiceUnavailable with default headers values

func (*NodeUpdateServiceUnavailable) SetPayload

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

SetPayload sets the payload to the node update service unavailable response

func (*NodeUpdateServiceUnavailable) WithPayload

WithPayload adds the payload to the node update service unavailable response

func (*NodeUpdateServiceUnavailable) WriteResponse

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

WriteResponse to the client

type NodeUpdateURL

type NodeUpdateURL struct {
	ID string

	Version int64
	// contains filtered or unexported fields
}

NodeUpdateURL generates an URL for the node update operation

func (*NodeUpdateURL) Build

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

Build a url path and query string

func (*NodeUpdateURL) BuildFull

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

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

func (*NodeUpdateURL) Must

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

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

func (*NodeUpdateURL) SetBasePath

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

func (o *NodeUpdateURL) String() string

String returns the string representation of the path with query string

func (*NodeUpdateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*NodeUpdateURL) WithBasePath

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

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