Documentation ¶
Index ¶
- Constants
- type GetApis
- type GetApisForbidden
- type GetApisHandler
- type GetApisHandlerFunc
- type GetApisInternalServerError
- type GetApisNotFound
- type GetApisOK
- type GetApisParams
- type GetApisURL
- func (o *GetApisURL) Build() (*url.URL, error)
- func (o *GetApisURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetApisURL) Must(u *url.URL, err error) *url.URL
- func (o *GetApisURL) SetBasePath(bp string)
- func (o *GetApisURL) String() string
- func (o *GetApisURL) StringFull(scheme, host string) string
- func (o *GetApisURL) WithBasePath(bp string) *GetApisURL
Constants ¶
const GetApisForbiddenCode int = 403
GetApisForbiddenCode is the HTTP code returned for type GetApisForbidden
const GetApisInternalServerErrorCode int = 500
GetApisInternalServerErrorCode is the HTTP code returned for type GetApisInternalServerError
const GetApisNotFoundCode int = 404
GetApisNotFoundCode is the HTTP code returned for type GetApisNotFound
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
type GetApisForbidden ¶
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 ¶
func (o *GetApisInternalServerError) WithPayload(payload *models.Error) *GetApisInternalServerError
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 ¶
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 ¶
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) 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