info

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetLivezOKCode int = 200

GetLivezOKCode is the HTTP code returned for type GetLivezOK

View Source
const GetVersionOKCode int = 200

GetVersionOKCode is the HTTP code returned for type GetVersionOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetLivez

type GetLivez struct {
	Context *middleware.Context
	Handler GetLivezHandler
}
GetLivez swagger:route GET /livez info getLivez

Liveness status for orchestrator

Returns OK

func NewGetLivez

func NewGetLivez(ctx *middleware.Context, handler GetLivezHandler) *GetLivez

NewGetLivez creates a new http.Handler for the get livez operation

func (*GetLivez) ServeHTTP

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

type GetLivezHandler

type GetLivezHandler interface {
	Handle(GetLivezParams) middleware.Responder
}

GetLivezHandler interface for that can handle valid get livez params

type GetLivezHandlerFunc

type GetLivezHandlerFunc func(GetLivezParams) middleware.Responder

GetLivezHandlerFunc turns a function with the right signature into a get livez handler

func (GetLivezHandlerFunc) Handle

Handle executing the request and returning a response

type GetLivezOK

type GetLivezOK struct {
}

GetLivezOK successful operation

swagger:response getLivezOK

func NewGetLivezOK

func NewGetLivezOK() *GetLivezOK

NewGetLivezOK creates GetLivezOK with default headers values

func (*GetLivezOK) WriteResponse

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

WriteResponse to the client

type GetLivezParams

type GetLivezParams struct {

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

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

swagger:parameters getLivez

func NewGetLivezParams

func NewGetLivezParams() GetLivezParams

NewGetLivezParams creates a new GetLivezParams object

There are no default values defined in the spec.

func (*GetLivezParams) BindRequest

func (o *GetLivezParams) 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 NewGetLivezParams() beforehand.

type GetLivezURL

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

GetLivezURL generates an URL for the get livez operation

func (*GetLivezURL) Build

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

Build a url path and query string

func (*GetLivezURL) BuildFull

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

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

func (*GetLivezURL) Must

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

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

func (*GetLivezURL) SetBasePath

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

func (o *GetLivezURL) String() string

String returns the string representation of the path with query string

func (*GetLivezURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLivezURL) WithBasePath

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

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 GetVersion

type GetVersion struct {
	Context *middleware.Context
	Handler GetVersionHandler
}
GetVersion swagger:route GET /version info getVersion

Version

Version anf build info

func NewGetVersion

func NewGetVersion(ctx *middleware.Context, handler GetVersionHandler) *GetVersion

NewGetVersion creates a new http.Handler for the get version operation

func (*GetVersion) ServeHTTP

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

type GetVersionHandler

type GetVersionHandler interface {
	Handle(GetVersionParams) middleware.Responder
}

GetVersionHandler interface for that can handle valid get version params

type GetVersionHandlerFunc

type GetVersionHandlerFunc func(GetVersionParams) middleware.Responder

GetVersionHandlerFunc turns a function with the right signature into a get version handler

func (GetVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetVersionOK

type GetVersionOK struct {

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

GetVersionOK successful operation

swagger:response getVersionOK

func NewGetVersionOK

func NewGetVersionOK() *GetVersionOK

NewGetVersionOK creates GetVersionOK with default headers values

func (*GetVersionOK) SetPayload

func (o *GetVersionOK) SetPayload(payload *models.Version)

SetPayload sets the payload to the get version o k response

func (*GetVersionOK) WithPayload

func (o *GetVersionOK) WithPayload(payload *models.Version) *GetVersionOK

WithPayload adds the payload to the get version o k response

func (*GetVersionOK) WriteResponse

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

WriteResponse to the client

type GetVersionParams

type GetVersionParams struct {

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

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

swagger:parameters getVersion

func NewGetVersionParams

func NewGetVersionParams() GetVersionParams

NewGetVersionParams creates a new GetVersionParams object

There are no default values defined in the spec.

func (*GetVersionParams) BindRequest

func (o *GetVersionParams) 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 NewGetVersionParams() beforehand.

type GetVersionURL

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

GetVersionURL generates an URL for the get version operation

func (*GetVersionURL) Build

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

Build a url path and query string

func (*GetVersionURL) BuildFull

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

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

func (*GetVersionURL) Must

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

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

func (*GetVersionURL) SetBasePath

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

func (o *GetVersionURL) String() string

String returns the string representation of the path with query string

func (*GetVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetVersionURL) WithBasePath

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

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