Documentation
¶
Index ¶
- Constants
- type GetQuotas
- type GetQuotasForbidden
- type GetQuotasHandler
- type GetQuotasHandlerFunc
- type GetQuotasInternalServerError
- type GetQuotasMethodNotAllowed
- type GetQuotasNotFound
- type GetQuotasOK
- type GetQuotasParams
- type GetQuotasServiceUnavailable
- type GetQuotasURL
- func (o *GetQuotasURL) Build() (*url.URL, error)
- func (o *GetQuotasURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetQuotasURL) Must(u *url.URL, err error) *url.URL
- func (o *GetQuotasURL) SetBasePath(bp string)
- func (o *GetQuotasURL) String() string
- func (o *GetQuotasURL) StringFull(scheme, host string) string
- func (o *GetQuotasURL) WithBasePath(bp string) *GetQuotasURL
Constants ¶
const GetQuotasForbiddenCode int = 403
GetQuotasForbiddenCode is the HTTP code returned for type GetQuotasForbidden
const GetQuotasInternalServerErrorCode int = 500
GetQuotasInternalServerErrorCode is the HTTP code returned for type GetQuotasInternalServerError
const GetQuotasMethodNotAllowedCode int = 405
GetQuotasMethodNotAllowedCode is the HTTP code returned for type GetQuotasMethodNotAllowed
const GetQuotasNotFoundCode int = 404
GetQuotasNotFoundCode is the HTTP code returned for type GetQuotasNotFound
const GetQuotasOKCode int = 200
GetQuotasOKCode is the HTTP code returned for type GetQuotasOK
GetQuotasServiceUnavailableCode is the HTTP code returned for type GetQuotasServiceUnavailable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetQuotas ¶
type GetQuotas struct { Context *middleware.Context Handler GetQuotasHandler }
GetQuotas swagger:route GET /quotas quota getQuotas
Refresh quota info ¶
Retrieve all quotas set
func NewGetQuotas ¶
func NewGetQuotas(ctx *middleware.Context, handler GetQuotasHandler) *GetQuotas
NewGetQuotas creates a new http.Handler for the get quotas operation
type GetQuotasForbidden ¶
type GetQuotasForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetQuotasForbidden Forbidden from querying quota info
swagger:response getQuotasForbidden
func NewGetQuotasForbidden ¶
func NewGetQuotasForbidden() *GetQuotasForbidden
NewGetQuotasForbidden creates GetQuotasForbidden with default headers values
func (*GetQuotasForbidden) SetPayload ¶
func (o *GetQuotasForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get quotas forbidden response
func (*GetQuotasForbidden) WithPayload ¶
func (o *GetQuotasForbidden) WithPayload(payload *models.APIResponse) *GetQuotasForbidden
WithPayload adds the payload to the get quotas forbidden response
func (*GetQuotasForbidden) WriteResponse ¶
func (o *GetQuotasForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasHandler ¶
type GetQuotasHandler interface {
Handle(GetQuotasParams) middleware.Responder
}
GetQuotasHandler interface for that can handle valid get quotas params
type GetQuotasHandlerFunc ¶
type GetQuotasHandlerFunc func(GetQuotasParams) middleware.Responder
GetQuotasHandlerFunc turns a function with the right signature into a get quotas handler
func (GetQuotasHandlerFunc) Handle ¶
func (fn GetQuotasHandlerFunc) Handle(params GetQuotasParams) middleware.Responder
Handle executing the request and returning a response
type GetQuotasInternalServerError ¶
type GetQuotasInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetQuotasInternalServerError TOC controller error
swagger:response getQuotasInternalServerError
func NewGetQuotasInternalServerError ¶
func NewGetQuotasInternalServerError() *GetQuotasInternalServerError
NewGetQuotasInternalServerError creates GetQuotasInternalServerError with default headers values
func (*GetQuotasInternalServerError) SetPayload ¶
func (o *GetQuotasInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get quotas internal server error response
func (*GetQuotasInternalServerError) WithPayload ¶
func (o *GetQuotasInternalServerError) WithPayload(payload *models.APIResponse) *GetQuotasInternalServerError
WithPayload adds the payload to the get quotas internal server error response
func (*GetQuotasInternalServerError) WriteResponse ¶
func (o *GetQuotasInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasMethodNotAllowed ¶
type GetQuotasMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetQuotasMethodNotAllowed Bad request
swagger:response getQuotasMethodNotAllowed
func NewGetQuotasMethodNotAllowed ¶
func NewGetQuotasMethodNotAllowed() *GetQuotasMethodNotAllowed
NewGetQuotasMethodNotAllowed creates GetQuotasMethodNotAllowed with default headers values
func (*GetQuotasMethodNotAllowed) SetPayload ¶
func (o *GetQuotasMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get quotas method not allowed response
func (*GetQuotasMethodNotAllowed) WithPayload ¶
func (o *GetQuotasMethodNotAllowed) WithPayload(payload *models.APIResponse) *GetQuotasMethodNotAllowed
WithPayload adds the payload to the get quotas method not allowed response
func (*GetQuotasMethodNotAllowed) WriteResponse ¶
func (o *GetQuotasMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasNotFound ¶
type GetQuotasNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetQuotasNotFound Quota not found
swagger:response getQuotasNotFound
func NewGetQuotasNotFound ¶
func NewGetQuotasNotFound() *GetQuotasNotFound
NewGetQuotasNotFound creates GetQuotasNotFound with default headers values
func (*GetQuotasNotFound) SetPayload ¶
func (o *GetQuotasNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get quotas not found response
func (*GetQuotasNotFound) WithPayload ¶
func (o *GetQuotasNotFound) WithPayload(payload *models.APIResponse) *GetQuotasNotFound
WithPayload adds the payload to the get quotas not found response
func (*GetQuotasNotFound) WriteResponse ¶
func (o *GetQuotasNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasOK ¶
GetQuotasOK Quotas retrieved
swagger:response getQuotasOK
func NewGetQuotasOK ¶
func NewGetQuotasOK() *GetQuotasOK
NewGetQuotasOK creates GetQuotasOK with default headers values
func (*GetQuotasOK) SetPayload ¶
func (o *GetQuotasOK) SetPayload(payload []*models.Quota)
SetPayload sets the payload to the get quotas o k response
func (*GetQuotasOK) WithPayload ¶
func (o *GetQuotasOK) WithPayload(payload []*models.Quota) *GetQuotasOK
WithPayload adds the payload to the get quotas o k response
func (*GetQuotasOK) WriteResponse ¶
func (o *GetQuotasOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasParams ¶
GetQuotasParams contains all the bound params for the get quotas operation typically these are obtained from a http.Request
swagger:parameters getQuotas
func NewGetQuotasParams ¶
func NewGetQuotasParams() GetQuotasParams
NewGetQuotasParams creates a new GetQuotasParams object
There are no default values defined in the spec.
func (*GetQuotasParams) BindRequest ¶
func (o *GetQuotasParams) 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 NewGetQuotasParams() beforehand.
type GetQuotasServiceUnavailable ¶
type GetQuotasServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
GetQuotasServiceUnavailable Service unavailable
swagger:response getQuotasServiceUnavailable
func NewGetQuotasServiceUnavailable ¶
func NewGetQuotasServiceUnavailable() *GetQuotasServiceUnavailable
NewGetQuotasServiceUnavailable creates GetQuotasServiceUnavailable with default headers values
func (*GetQuotasServiceUnavailable) SetPayload ¶
func (o *GetQuotasServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get quotas service unavailable response
func (*GetQuotasServiceUnavailable) WithPayload ¶
func (o *GetQuotasServiceUnavailable) WithPayload(payload *models.APIResponse) *GetQuotasServiceUnavailable
WithPayload adds the payload to the get quotas service unavailable response
func (*GetQuotasServiceUnavailable) WriteResponse ¶
func (o *GetQuotasServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetQuotasURL ¶
type GetQuotasURL struct {
// contains filtered or unexported fields
}
GetQuotasURL generates an URL for the get quotas operation
func (*GetQuotasURL) Build ¶
func (o *GetQuotasURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetQuotasURL) BuildFull ¶
func (o *GetQuotasURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetQuotasURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetQuotasURL) SetBasePath ¶
func (o *GetQuotasURL) 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 (*GetQuotasURL) String ¶
func (o *GetQuotasURL) String() string
String returns the string representation of the path with query string
func (*GetQuotasURL) StringFull ¶
func (o *GetQuotasURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetQuotasURL) WithBasePath ¶
func (o *GetQuotasURL) WithBasePath(bp string) *GetQuotasURL
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