cluster

package
v0.0.0-...-904661e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetClusterBadRequestCode int = 400

GetClusterBadRequestCode is the HTTP code returned for type GetClusterBadRequest

View Source
const GetClusterInternalServerErrorCode int = 500

GetClusterInternalServerErrorCode is the HTTP code returned for type GetClusterInternalServerError

View Source
const GetClusterOKCode int = 200

GetClusterOKCode is the HTTP code returned for type GetClusterOK

View Source
const GetNodeBadRequestCode int = 400

GetNodeBadRequestCode is the HTTP code returned for type GetNodeBadRequest

View Source
const GetNodeInternalServerErrorCode int = 500

GetNodeInternalServerErrorCode is the HTTP code returned for type GetNodeInternalServerError

View Source
const GetNodeNotFoundCode int = 404

GetNodeNotFoundCode is the HTTP code returned for type GetNodeNotFound

View Source
const GetNodeOKCode int = 200

GetNodeOKCode is the HTTP code returned for type GetNodeOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCluster

type GetCluster struct {
	Context *middleware.Context
	Handler GetClusterHandler
}
GetCluster swagger:route GET /cluster cluster getCluster

Get a summary of the cluster status

func NewGetCluster

func NewGetCluster(ctx *middleware.Context, handler GetClusterHandler) *GetCluster

NewGetCluster creates a new http.Handler for the get cluster operation

func (*GetCluster) ServeHTTP

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

type GetClusterBadRequest

type GetClusterBadRequest struct {

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

GetClusterBadRequest Bad Request.

swagger:response getClusterBadRequest

func NewGetClusterBadRequest

func NewGetClusterBadRequest() *GetClusterBadRequest

NewGetClusterBadRequest creates GetClusterBadRequest with default headers values

func (*GetClusterBadRequest) SetPayload

func (o *GetClusterBadRequest) SetPayload(payload *models.QdbError)

SetPayload sets the payload to the get cluster bad request response

func (*GetClusterBadRequest) WithPayload

func (o *GetClusterBadRequest) WithPayload(payload *models.QdbError) *GetClusterBadRequest

WithPayload adds the payload to the get cluster bad request response

func (*GetClusterBadRequest) WriteResponse

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

WriteResponse to the client

type GetClusterHandler

type GetClusterHandler interface {
	Handle(GetClusterParams, *models.Principal) middleware.Responder
}

GetClusterHandler interface for that can handle valid get cluster params

type GetClusterHandlerFunc

type GetClusterHandlerFunc func(GetClusterParams, *models.Principal) middleware.Responder

GetClusterHandlerFunc turns a function with the right signature into a get cluster handler

func (GetClusterHandlerFunc) Handle

Handle executing the request and returning a response

type GetClusterInternalServerError

type GetClusterInternalServerError struct {

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

GetClusterInternalServerError Internal Error.

swagger:response getClusterInternalServerError

func NewGetClusterInternalServerError

func NewGetClusterInternalServerError() *GetClusterInternalServerError

NewGetClusterInternalServerError creates GetClusterInternalServerError with default headers values

func (*GetClusterInternalServerError) SetPayload

func (o *GetClusterInternalServerError) SetPayload(payload *models.QdbError)

SetPayload sets the payload to the get cluster internal server error response

func (*GetClusterInternalServerError) WithPayload

WithPayload adds the payload to the get cluster internal server error response

func (*GetClusterInternalServerError) WriteResponse

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

WriteResponse to the client

type GetClusterOK

type GetClusterOK struct {

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

GetClusterOK Successful operation

swagger:response getClusterOK

func NewGetClusterOK

func NewGetClusterOK() *GetClusterOK

NewGetClusterOK creates GetClusterOK with default headers values

func (*GetClusterOK) SetPayload

func (o *GetClusterOK) SetPayload(payload *models.Cluster)

SetPayload sets the payload to the get cluster o k response

func (*GetClusterOK) WithPayload

func (o *GetClusterOK) WithPayload(payload *models.Cluster) *GetClusterOK

WithPayload adds the payload to the get cluster o k response

func (*GetClusterOK) WriteResponse

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

WriteResponse to the client

type GetClusterParams

type GetClusterParams struct {

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

GetClusterParams contains all the bound params for the get cluster operation typically these are obtained from a http.Request

swagger:parameters get-cluster

func NewGetClusterParams

func NewGetClusterParams() GetClusterParams

NewGetClusterParams creates a new GetClusterParams object

There are no default values defined in the spec.

func (*GetClusterParams) BindRequest

func (o *GetClusterParams) 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 NewGetClusterParams() beforehand.

type GetClusterURL

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

GetClusterURL generates an URL for the get cluster operation

func (*GetClusterURL) Build

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

Build a url path and query string

func (*GetClusterURL) BuildFull

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

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

func (*GetClusterURL) Must

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

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

func (*GetClusterURL) SetBasePath

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

func (o *GetClusterURL) String() string

String returns the string representation of the path with query string

func (*GetClusterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetClusterURL) WithBasePath

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

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 GetNode

type GetNode struct {
	Context *middleware.Context
	Handler GetNodeHandler
}
GetNode swagger:route GET /cluster/nodes/{id} cluster getNode

Get information about a single node in the cluster

func NewGetNode

func NewGetNode(ctx *middleware.Context, handler GetNodeHandler) *GetNode

NewGetNode creates a new http.Handler for the get node operation

func (*GetNode) ServeHTTP

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

type GetNodeBadRequest

type GetNodeBadRequest struct {

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

GetNodeBadRequest Bad Request.

swagger:response getNodeBadRequest

func NewGetNodeBadRequest

func NewGetNodeBadRequest() *GetNodeBadRequest

NewGetNodeBadRequest creates GetNodeBadRequest with default headers values

func (*GetNodeBadRequest) SetPayload

func (o *GetNodeBadRequest) SetPayload(payload *models.QdbError)

SetPayload sets the payload to the get node bad request response

func (*GetNodeBadRequest) WithPayload

func (o *GetNodeBadRequest) WithPayload(payload *models.QdbError) *GetNodeBadRequest

WithPayload adds the payload to the get node bad request response

func (*GetNodeBadRequest) WriteResponse

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

WriteResponse to the client

type GetNodeHandler

type GetNodeHandler interface {
	Handle(GetNodeParams, *models.Principal) middleware.Responder
}

GetNodeHandler interface for that can handle valid get node params

type GetNodeHandlerFunc

type GetNodeHandlerFunc func(GetNodeParams, *models.Principal) middleware.Responder

GetNodeHandlerFunc turns a function with the right signature into a get node handler

func (GetNodeHandlerFunc) Handle

func (fn GetNodeHandlerFunc) Handle(params GetNodeParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type GetNodeInternalServerError

type GetNodeInternalServerError struct {

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

GetNodeInternalServerError Internal Error.

swagger:response getNodeInternalServerError

func NewGetNodeInternalServerError

func NewGetNodeInternalServerError() *GetNodeInternalServerError

NewGetNodeInternalServerError creates GetNodeInternalServerError with default headers values

func (*GetNodeInternalServerError) SetPayload

func (o *GetNodeInternalServerError) SetPayload(payload *models.QdbError)

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

func (*GetNodeInternalServerError) WithPayload

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

func (*GetNodeInternalServerError) WriteResponse

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

WriteResponse to the client

type GetNodeNotFound

type GetNodeNotFound struct {

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

GetNodeNotFound The requested resource could not be found but may be available again in the future.

swagger:response getNodeNotFound

func NewGetNodeNotFound

func NewGetNodeNotFound() *GetNodeNotFound

NewGetNodeNotFound creates GetNodeNotFound with default headers values

func (*GetNodeNotFound) SetPayload

func (o *GetNodeNotFound) SetPayload(payload string)

SetPayload sets the payload to the get node not found response

func (*GetNodeNotFound) WithPayload

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

WithPayload adds the payload to the get node not found response

func (*GetNodeNotFound) WriteResponse

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

WriteResponse to the client

type GetNodeOK

type GetNodeOK struct {

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

GetNodeOK Successful operation

swagger:response getNodeOK

func NewGetNodeOK

func NewGetNodeOK() *GetNodeOK

NewGetNodeOK creates GetNodeOK with default headers values

func (*GetNodeOK) SetPayload

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

SetPayload sets the payload to the get node o k response

func (*GetNodeOK) WithPayload

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

WithPayload adds the payload to the get node o k response

func (*GetNodeOK) WriteResponse

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

WriteResponse to the client

type GetNodeParams

type GetNodeParams struct {

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

	/*The node's id (address and host)
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters get-node

func NewGetNodeParams

func NewGetNodeParams() GetNodeParams

NewGetNodeParams creates a new GetNodeParams object

There are no default values defined in the spec.

func (*GetNodeParams) BindRequest

func (o *GetNodeParams) 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 NewGetNodeParams() beforehand.

type GetNodeURL

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

GetNodeURL generates an URL for the get node operation

func (*GetNodeURL) Build

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

Build a url path and query string

func (*GetNodeURL) BuildFull

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

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

func (*GetNodeURL) Must

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

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

func (*GetNodeURL) SetBasePath

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

func (o *GetNodeURL) String() string

String returns the string representation of the path with query string

func (*GetNodeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetNodeURL) WithBasePath

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

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