a_p_is_all

package
v0.0.0-...-036f9fd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetApisForbiddenCode int = 403

GetApisForbiddenCode is the HTTP code returned for type GetApisForbidden

View Source
const GetApisInternalServerErrorCode int = 500

GetApisInternalServerErrorCode is the HTTP code returned for type GetApisInternalServerError

View Source
const GetApisNotFoundCode int = 404

GetApisNotFoundCode is the HTTP code returned for type GetApisNotFound

View Source
const GetApisOKCode int = 200

GetApisOKCode is the HTTP code returned for type GetApisOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetApis

type GetApis struct {
	Context *middleware.Context
	Handler GetApisHandler
}

GetApis swagger:route GET /apis APIs (All) getApis

Get all apis in a zip file

This operation can be used to get all the APIs deployed in Kubernetes.

func NewGetApis

func NewGetApis(ctx *middleware.Context, handler GetApisHandler) *GetApis

NewGetApis creates a new http.Handler for the get apis operation

func (*GetApis) ServeHTTP

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

type GetApisForbidden

type GetApisForbidden struct {

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

GetApisForbidden Forbidden Not Authorized to send.

swagger:response getApisForbidden

func NewGetApisForbidden

func NewGetApisForbidden() *GetApisForbidden

NewGetApisForbidden creates GetApisForbidden with default headers values

func (*GetApisForbidden) SetPayload

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

SetPayload sets the payload to the get apis forbidden response

func (*GetApisForbidden) WithPayload

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

WithPayload adds the payload to the get apis forbidden response

func (*GetApisForbidden) WriteResponse

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

WriteResponse to the client

type GetApisHandler

type GetApisHandler interface {
	Handle(GetApisParams, *models.Principal) middleware.Responder
}

GetApisHandler interface for that can handle valid get apis params

type GetApisHandlerFunc

type GetApisHandlerFunc func(GetApisParams, *models.Principal) middleware.Responder

GetApisHandlerFunc turns a function with the right signature into a get apis handler

func (GetApisHandlerFunc) Handle

func (fn GetApisHandlerFunc) Handle(params GetApisParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type GetApisInternalServerError

type GetApisInternalServerError struct {

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

GetApisInternalServerError Internal Server Error. Error in sending APIs.

swagger:response getApisInternalServerError

func NewGetApisInternalServerError

func NewGetApisInternalServerError() *GetApisInternalServerError

NewGetApisInternalServerError creates GetApisInternalServerError with default headers values

func (*GetApisInternalServerError) SetPayload

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

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

func (*GetApisInternalServerError) WithPayload

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

func (*GetApisInternalServerError) WriteResponse

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

WriteResponse to the client

type GetApisNotFound

type GetApisNotFound struct {

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

GetApisNotFound Not Found. Requested APIs to send not found.

swagger:response getApisNotFound

func NewGetApisNotFound

func NewGetApisNotFound() *GetApisNotFound

NewGetApisNotFound creates GetApisNotFound with default headers values

func (*GetApisNotFound) SetPayload

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

SetPayload sets the payload to the get apis not found response

func (*GetApisNotFound) WithPayload

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

WithPayload adds the payload to the get apis not found response

func (*GetApisNotFound) WriteResponse

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

WriteResponse to the client

type GetApisOK

type GetApisOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

GetApisOK Sent. APIs sent Successfully.

swagger:response getApisOK

func NewGetApisOK

func NewGetApisOK() *GetApisOK

NewGetApisOK creates GetApisOK with default headers values

func (*GetApisOK) SetPayload

func (o *GetApisOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the get apis o k response

func (*GetApisOK) WithPayload

func (o *GetApisOK) WithPayload(payload io.ReadCloser) *GetApisOK

WithPayload adds the payload to the get apis o k response

func (*GetApisOK) WriteResponse

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

WriteResponse to the client

type GetApisParams

type GetApisParams struct {

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

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

swagger:parameters GetApis

func NewGetApisParams

func NewGetApisParams() GetApisParams

NewGetApisParams creates a new GetApisParams object no default values defined in spec.

func (*GetApisParams) BindRequest

func (o *GetApisParams) 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 NewGetApisParams() beforehand.

type GetApisURL

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

GetApisURL generates an URL for the get apis operation

func (*GetApisURL) Build

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

Build a url path and query string

func (*GetApisURL) BuildFull

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

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

func (*GetApisURL) Must

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

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

func (*GetApisURL) SetBasePath

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

func (o *GetApisURL) String() string

String returns the string representation of the path with query string

func (*GetApisURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetApisURL) WithBasePath

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

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