user_api

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CheckMinIOVersionOKCode int = 200

CheckMinIOVersionOKCode is the HTTP code returned for type CheckMinIOVersionOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckMinIOVersion

type CheckMinIOVersion struct {
	Context *middleware.Context
	Handler CheckMinIOVersionHandler
}
CheckMinIOVersion swagger:route GET /check-version UserAPI checkMinIOVersion

Checks the current Operator version against the latest

func NewCheckMinIOVersion

func NewCheckMinIOVersion(ctx *middleware.Context, handler CheckMinIOVersionHandler) *CheckMinIOVersion

NewCheckMinIOVersion creates a new http.Handler for the check min i o version operation

func (*CheckMinIOVersion) ServeHTTP

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

type CheckMinIOVersionDefault

type CheckMinIOVersionDefault struct {

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

CheckMinIOVersionDefault Generic error response.

swagger:response checkMinIOVersionDefault

func NewCheckMinIOVersionDefault

func NewCheckMinIOVersionDefault(code int) *CheckMinIOVersionDefault

NewCheckMinIOVersionDefault creates CheckMinIOVersionDefault with default headers values

func (*CheckMinIOVersionDefault) SetPayload

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

SetPayload sets the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) SetStatusCode

func (o *CheckMinIOVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WithPayload

WithPayload adds the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) WithStatusCode

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

WithStatusCode adds the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WriteResponse

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

WriteResponse to the client

type CheckMinIOVersionHandler

type CheckMinIOVersionHandler interface {
	Handle(CheckMinIOVersionParams) middleware.Responder
}

CheckMinIOVersionHandler interface for that can handle valid check min i o version params

type CheckMinIOVersionHandlerFunc

type CheckMinIOVersionHandlerFunc func(CheckMinIOVersionParams) middleware.Responder

CheckMinIOVersionHandlerFunc turns a function with the right signature into a check min i o version handler

func (CheckMinIOVersionHandlerFunc) Handle

Handle executing the request and returning a response

type CheckMinIOVersionOK

type CheckMinIOVersionOK struct {

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

CheckMinIOVersionOK A successful response.

swagger:response checkMinIOVersionOK

func NewCheckMinIOVersionOK

func NewCheckMinIOVersionOK() *CheckMinIOVersionOK

NewCheckMinIOVersionOK creates CheckMinIOVersionOK with default headers values

func (*CheckMinIOVersionOK) SetPayload

SetPayload sets the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WithPayload

WithPayload adds the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WriteResponse

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

WriteResponse to the client

type CheckMinIOVersionParams

type CheckMinIOVersionParams struct {

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

CheckMinIOVersionParams contains all the bound params for the check min i o version operation typically these are obtained from a http.Request

swagger:parameters CheckMinIOVersion”

func NewCheckMinIOVersionParams

func NewCheckMinIOVersionParams() CheckMinIOVersionParams

NewCheckMinIOVersionParams creates a new CheckMinIOVersionParams object

There are no default values defined in the spec.

func (*CheckMinIOVersionParams) BindRequest

func (o *CheckMinIOVersionParams) 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 NewCheckMinIOVersionParams() beforehand.

type CheckMinIOVersionURL

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

CheckMinIOVersionURL generates an URL for the check min i o version operation

func (*CheckMinIOVersionURL) Build

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

Build a url path and query string

func (*CheckMinIOVersionURL) BuildFull

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

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

func (*CheckMinIOVersionURL) Must

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

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

func (*CheckMinIOVersionURL) SetBasePath

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

func (o *CheckMinIOVersionURL) String() string

String returns the string representation of the path with query string

func (*CheckMinIOVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CheckMinIOVersionURL) WithBasePath

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

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