operator_api

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ListNodeLabelsOKCode int = 200

ListNodeLabelsOKCode is the HTTP code returned for type ListNodeLabelsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type ListNodeLabels

type ListNodeLabels struct {
	Context *middleware.Context
	Handler ListNodeLabelsHandler
}
ListNodeLabels swagger:route GET /nodes/labels OperatorAPI listNodeLabels

List node labels

func NewListNodeLabels

func NewListNodeLabels(ctx *middleware.Context, handler ListNodeLabelsHandler) *ListNodeLabels

NewListNodeLabels creates a new http.Handler for the list node labels operation

func (*ListNodeLabels) ServeHTTP

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

type ListNodeLabelsDefault

type ListNodeLabelsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListNodeLabelsDefault Generic error response.

swagger:response listNodeLabelsDefault

func NewListNodeLabelsDefault

func NewListNodeLabelsDefault(code int) *ListNodeLabelsDefault

NewListNodeLabelsDefault creates ListNodeLabelsDefault with default headers values

func (*ListNodeLabelsDefault) SetPayload

func (o *ListNodeLabelsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list node labels default response

func (*ListNodeLabelsDefault) SetStatusCode

func (o *ListNodeLabelsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list node labels default response

func (*ListNodeLabelsDefault) WithPayload

func (o *ListNodeLabelsDefault) WithPayload(payload *models.Error) *ListNodeLabelsDefault

WithPayload adds the payload to the list node labels default response

func (*ListNodeLabelsDefault) WithStatusCode

func (o *ListNodeLabelsDefault) WithStatusCode(code int) *ListNodeLabelsDefault

WithStatusCode adds the status to the list node labels default response

func (*ListNodeLabelsDefault) WriteResponse

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

WriteResponse to the client

type ListNodeLabelsHandler

type ListNodeLabelsHandler interface {
	Handle(ListNodeLabelsParams, *models.Principal) middleware.Responder
}

ListNodeLabelsHandler interface for that can handle valid list node labels params

type ListNodeLabelsHandlerFunc

type ListNodeLabelsHandlerFunc func(ListNodeLabelsParams, *models.Principal) middleware.Responder

ListNodeLabelsHandlerFunc turns a function with the right signature into a list node labels handler

func (ListNodeLabelsHandlerFunc) Handle

Handle executing the request and returning a response

type ListNodeLabelsOK

type ListNodeLabelsOK struct {

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

ListNodeLabelsOK A successful response.

swagger:response listNodeLabelsOK

func NewListNodeLabelsOK

func NewListNodeLabelsOK() *ListNodeLabelsOK

NewListNodeLabelsOK creates ListNodeLabelsOK with default headers values

func (*ListNodeLabelsOK) SetPayload

func (o *ListNodeLabelsOK) SetPayload(payload models.NodeLabels)

SetPayload sets the payload to the list node labels o k response

func (*ListNodeLabelsOK) WithPayload

func (o *ListNodeLabelsOK) WithPayload(payload models.NodeLabels) *ListNodeLabelsOK

WithPayload adds the payload to the list node labels o k response

func (*ListNodeLabelsOK) WriteResponse

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

WriteResponse to the client

type ListNodeLabelsParams

type ListNodeLabelsParams struct {

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

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

swagger:parameters ListNodeLabels

func NewListNodeLabelsParams

func NewListNodeLabelsParams() ListNodeLabelsParams

NewListNodeLabelsParams creates a new ListNodeLabelsParams object

There are no default values defined in the spec.

func (*ListNodeLabelsParams) BindRequest

func (o *ListNodeLabelsParams) 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 NewListNodeLabelsParams() beforehand.

type ListNodeLabelsURL

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

ListNodeLabelsURL generates an URL for the list node labels operation

func (*ListNodeLabelsURL) Build

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

Build a url path and query string

func (*ListNodeLabelsURL) BuildFull

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

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

func (*ListNodeLabelsURL) Must

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

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

func (*ListNodeLabelsURL) SetBasePath

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

func (o *ListNodeLabelsURL) String() string

String returns the string representation of the path with query string

func (*ListNodeLabelsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListNodeLabelsURL) WithBasePath

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

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