controllers

package
v0.26.22 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ListControllersBadRequestCode int = 400

ListControllersBadRequestCode is the HTTP code returned for type ListControllersBadRequest

View Source
const ListControllersOKCode int = 200

ListControllersOKCode is the HTTP code returned for type ListControllersOK

View Source
const ListControllersTooManyRequestsCode int = 429

ListControllersTooManyRequestsCode is the HTTP code returned for type ListControllersTooManyRequests

View Source
const ListControllersUnauthorizedCode int = 401

ListControllersUnauthorizedCode is the HTTP code returned for type ListControllersUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type ListControllers

type ListControllers struct {
	Context *middleware.Context
	Handler ListControllersHandler
}
ListControllers swagger:route GET /controllers Controllers listControllers

List controllers

Retrieves a list of controllers

func NewListControllers

func NewListControllers(ctx *middleware.Context, handler ListControllersHandler) *ListControllers

NewListControllers creates a new http.Handler for the list controllers operation

func (*ListControllers) ServeHTTP

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

type ListControllersBadRequest

type ListControllersBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListControllersBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response listControllersBadRequest

func NewListControllersBadRequest

func NewListControllersBadRequest() *ListControllersBadRequest

NewListControllersBadRequest creates ListControllersBadRequest with default headers values

func (*ListControllersBadRequest) SetPayload

func (o *ListControllersBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the list controllers bad request response

func (*ListControllersBadRequest) WithPayload

WithPayload adds the payload to the list controllers bad request response

func (*ListControllersBadRequest) WriteResponse

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

WriteResponse to the client

type ListControllersHandler

type ListControllersHandler interface {
	Handle(ListControllersParams, interface{}) middleware.Responder
}

ListControllersHandler interface for that can handle valid list controllers params

type ListControllersHandlerFunc

type ListControllersHandlerFunc func(ListControllersParams, interface{}) middleware.Responder

ListControllersHandlerFunc turns a function with the right signature into a list controllers handler

func (ListControllersHandlerFunc) Handle

func (fn ListControllersHandlerFunc) Handle(params ListControllersParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListControllersOK

type ListControllersOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListControllersEnvelope `json:"body,omitempty"`
}

ListControllersOK A list of controllers

swagger:response listControllersOK

func NewListControllersOK

func NewListControllersOK() *ListControllersOK

NewListControllersOK creates ListControllersOK with default headers values

func (*ListControllersOK) SetPayload

func (o *ListControllersOK) SetPayload(payload *rest_model.ListControllersEnvelope)

SetPayload sets the payload to the list controllers o k response

func (*ListControllersOK) WithPayload

WithPayload adds the payload to the list controllers o k response

func (*ListControllersOK) WriteResponse

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

WriteResponse to the client

type ListControllersParams

type ListControllersParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

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

swagger:parameters listControllers

func NewListControllersParams

func NewListControllersParams() ListControllersParams

NewListControllersParams creates a new ListControllersParams object

There are no default values defined in the spec.

func (*ListControllersParams) BindRequest

func (o *ListControllersParams) 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 NewListControllersParams() beforehand.

type ListControllersTooManyRequests

type ListControllersTooManyRequests struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListControllersTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response listControllersTooManyRequests

func NewListControllersTooManyRequests

func NewListControllersTooManyRequests() *ListControllersTooManyRequests

NewListControllersTooManyRequests creates ListControllersTooManyRequests with default headers values

func (*ListControllersTooManyRequests) SetPayload

SetPayload sets the payload to the list controllers too many requests response

func (*ListControllersTooManyRequests) WithPayload

WithPayload adds the payload to the list controllers too many requests response

func (*ListControllersTooManyRequests) WriteResponse

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

WriteResponse to the client

type ListControllersURL

type ListControllersURL struct {
	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListControllersURL generates an URL for the list controllers operation

func (*ListControllersURL) Build

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

Build a url path and query string

func (*ListControllersURL) BuildFull

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

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

func (*ListControllersURL) Must

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

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

func (*ListControllersURL) SetBasePath

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

func (o *ListControllersURL) String() string

String returns the string representation of the path with query string

func (*ListControllersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListControllersURL) WithBasePath

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

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 ListControllersUnauthorized

type ListControllersUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListControllersUnauthorized The supplied session does not have the correct access rights to request this resource

swagger:response listControllersUnauthorized

func NewListControllersUnauthorized

func NewListControllersUnauthorized() *ListControllersUnauthorized

NewListControllersUnauthorized creates ListControllersUnauthorized with default headers values

func (*ListControllersUnauthorized) SetPayload

SetPayload sets the payload to the list controllers unauthorized response

func (*ListControllersUnauthorized) WithPayload

WithPayload adds the payload to the list controllers unauthorized response

func (*ListControllersUnauthorized) WriteResponse

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