nodes

package
v1.19.11 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NodesGetForbiddenCode int = 403

NodesGetForbiddenCode is the HTTP code returned for type NodesGetForbidden

View Source
const NodesGetInternalServerErrorCode int = 500

NodesGetInternalServerErrorCode is the HTTP code returned for type NodesGetInternalServerError

View Source
const NodesGetNotFoundCode int = 404

NodesGetNotFoundCode is the HTTP code returned for type NodesGetNotFound

View Source
const NodesGetOKCode int = 200

NodesGetOKCode is the HTTP code returned for type NodesGetOK

View Source
const NodesGetUnauthorizedCode int = 401

NodesGetUnauthorizedCode is the HTTP code returned for type NodesGetUnauthorized

View Source
const NodesGetUnprocessableEntityCode int = 422

NodesGetUnprocessableEntityCode is the HTTP code returned for type NodesGetUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type NodesGet

type NodesGet struct {
	Context *middleware.Context
	Handler NodesGetHandler
}
NodesGet swagger:route GET /nodes nodes nodesGet

Returns status of Weaviate DB.

func NewNodesGet

func NewNodesGet(ctx *middleware.Context, handler NodesGetHandler) *NodesGet

NewNodesGet creates a new http.Handler for the nodes get operation

func (*NodesGet) ServeHTTP

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

type NodesGetForbidden

type NodesGetForbidden struct {

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

NodesGetForbidden Forbidden

swagger:response nodesGetForbidden

func NewNodesGetForbidden

func NewNodesGetForbidden() *NodesGetForbidden

NewNodesGetForbidden creates NodesGetForbidden with default headers values

func (*NodesGetForbidden) SetPayload

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

SetPayload sets the payload to the nodes get forbidden response

func (*NodesGetForbidden) WithPayload

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

WithPayload adds the payload to the nodes get forbidden response

func (*NodesGetForbidden) WriteResponse

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

WriteResponse to the client

type NodesGetHandler

type NodesGetHandler interface {
	Handle(NodesGetParams, *models.Principal) middleware.Responder
}

NodesGetHandler interface for that can handle valid nodes get params

type NodesGetHandlerFunc

type NodesGetHandlerFunc func(NodesGetParams, *models.Principal) middleware.Responder

NodesGetHandlerFunc turns a function with the right signature into a nodes get handler

func (NodesGetHandlerFunc) Handle

Handle executing the request and returning a response

type NodesGetInternalServerError

type NodesGetInternalServerError struct {

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

NodesGetInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response nodesGetInternalServerError

func NewNodesGetInternalServerError

func NewNodesGetInternalServerError() *NodesGetInternalServerError

NewNodesGetInternalServerError creates NodesGetInternalServerError with default headers values

func (*NodesGetInternalServerError) SetPayload

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

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

func (*NodesGetInternalServerError) WithPayload

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

func (*NodesGetInternalServerError) WriteResponse

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

WriteResponse to the client

type NodesGetNotFound

type NodesGetNotFound struct {

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

NodesGetNotFound Not Found - Backup does not exist

swagger:response nodesGetNotFound

func NewNodesGetNotFound

func NewNodesGetNotFound() *NodesGetNotFound

NewNodesGetNotFound creates NodesGetNotFound with default headers values

func (*NodesGetNotFound) SetPayload

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

SetPayload sets the payload to the nodes get not found response

func (*NodesGetNotFound) WithPayload

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

WithPayload adds the payload to the nodes get not found response

func (*NodesGetNotFound) WriteResponse

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

WriteResponse to the client

type NodesGetOK

type NodesGetOK struct {

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

NodesGetOK Nodes status successfully returned

swagger:response nodesGetOK

func NewNodesGetOK

func NewNodesGetOK() *NodesGetOK

NewNodesGetOK creates NodesGetOK with default headers values

func (*NodesGetOK) SetPayload

func (o *NodesGetOK) SetPayload(payload *models.NodesStatusResponse)

SetPayload sets the payload to the nodes get o k response

func (*NodesGetOK) WithPayload

func (o *NodesGetOK) WithPayload(payload *models.NodesStatusResponse) *NodesGetOK

WithPayload adds the payload to the nodes get o k response

func (*NodesGetOK) WriteResponse

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

WriteResponse to the client

type NodesGetParams

type NodesGetParams struct {

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

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

swagger:parameters nodes.get

func NewNodesGetParams

func NewNodesGetParams() NodesGetParams

NewNodesGetParams creates a new NodesGetParams object

There are no default values defined in the spec.

func (*NodesGetParams) BindRequest

func (o *NodesGetParams) 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 NewNodesGetParams() beforehand.

type NodesGetURL

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

NodesGetURL generates an URL for the nodes get operation

func (*NodesGetURL) Build

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

Build a url path and query string

func (*NodesGetURL) BuildFull

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

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

func (*NodesGetURL) Must

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

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

func (*NodesGetURL) SetBasePath

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

func (o *NodesGetURL) String() string

String returns the string representation of the path with query string

func (*NodesGetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*NodesGetURL) WithBasePath

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

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 NodesGetUnauthorized

type NodesGetUnauthorized struct {
}

NodesGetUnauthorized Unauthorized or invalid credentials.

swagger:response nodesGetUnauthorized

func NewNodesGetUnauthorized

func NewNodesGetUnauthorized() *NodesGetUnauthorized

NewNodesGetUnauthorized creates NodesGetUnauthorized with default headers values

func (*NodesGetUnauthorized) WriteResponse

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

WriteResponse to the client

type NodesGetUnprocessableEntity

type NodesGetUnprocessableEntity struct {

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

NodesGetUnprocessableEntity Invalid backup restoration status attempt.

swagger:response nodesGetUnprocessableEntity

func NewNodesGetUnprocessableEntity

func NewNodesGetUnprocessableEntity() *NodesGetUnprocessableEntity

NewNodesGetUnprocessableEntity creates NodesGetUnprocessableEntity with default headers values

func (*NodesGetUnprocessableEntity) SetPayload

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

SetPayload sets the payload to the nodes get unprocessable entity response

func (*NodesGetUnprocessableEntity) WithPayload

WithPayload adds the payload to the nodes get unprocessable entity response

func (*NodesGetUnprocessableEntity) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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