Documentation
¶
Index ¶
- Constants
- type IndexEntitlements
- type IndexEntitlementsHandler
- type IndexEntitlementsHandlerFunc
- type IndexEntitlementsOK
- type IndexEntitlementsParams
- type IndexEntitlementsURL
- func (o *IndexEntitlementsURL) Build() (*url.URL, error)
- func (o *IndexEntitlementsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IndexEntitlementsURL) Must(u *url.URL, err error) *url.URL
- func (o *IndexEntitlementsURL) SetBasePath(bp string)
- func (o *IndexEntitlementsURL) String() string
- func (o *IndexEntitlementsURL) StringFull(scheme, host string) string
- func (o *IndexEntitlementsURL) WithBasePath(bp string) *IndexEntitlementsURL
Constants ¶
const IndexEntitlementsOKCode int = 200
IndexEntitlementsOKCode is the HTTP code returned for type IndexEntitlementsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexEntitlements ¶
type IndexEntitlements struct { Context *middleware.Context Handler IndexEntitlementsHandler }
IndexEntitlements swagger:route GET /entitlements entitlements indexEntitlements
List weight weights allotted by entitlement ¶
List weight weights allotted by entitlement
func NewIndexEntitlements ¶
func NewIndexEntitlements(ctx *middleware.Context, handler IndexEntitlementsHandler) *IndexEntitlements
NewIndexEntitlements creates a new http.Handler for the index entitlements operation
func (*IndexEntitlements) ServeHTTP ¶
func (o *IndexEntitlements) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type IndexEntitlementsHandler ¶
type IndexEntitlementsHandler interface {
Handle(IndexEntitlementsParams) middleware.Responder
}
IndexEntitlementsHandler interface for that can handle valid index entitlements params
type IndexEntitlementsHandlerFunc ¶
type IndexEntitlementsHandlerFunc func(IndexEntitlementsParams) middleware.Responder
IndexEntitlementsHandlerFunc turns a function with the right signature into a index entitlements handler
func (IndexEntitlementsHandlerFunc) Handle ¶
func (fn IndexEntitlementsHandlerFunc) Handle(params IndexEntitlementsParams) middleware.Responder
Handle executing the request and returning a response
type IndexEntitlementsOK ¶
type IndexEntitlementsOK struct { /* In: Body */ Payload internalmessages.IndexEntitlements `json:"body,omitempty"` }
IndexEntitlementsOK List of weights allotted entitlement
swagger:response indexEntitlementsOK
func NewIndexEntitlementsOK ¶
func NewIndexEntitlementsOK() *IndexEntitlementsOK
NewIndexEntitlementsOK creates IndexEntitlementsOK with default headers values
func (*IndexEntitlementsOK) SetPayload ¶
func (o *IndexEntitlementsOK) SetPayload(payload internalmessages.IndexEntitlements)
SetPayload sets the payload to the index entitlements o k response
func (*IndexEntitlementsOK) WithPayload ¶
func (o *IndexEntitlementsOK) WithPayload(payload internalmessages.IndexEntitlements) *IndexEntitlementsOK
WithPayload adds the payload to the index entitlements o k response
func (*IndexEntitlementsOK) WriteResponse ¶
func (o *IndexEntitlementsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IndexEntitlementsParams ¶
IndexEntitlementsParams contains all the bound params for the index entitlements operation typically these are obtained from a http.Request
swagger:parameters indexEntitlements
func NewIndexEntitlementsParams ¶
func NewIndexEntitlementsParams() IndexEntitlementsParams
NewIndexEntitlementsParams creates a new IndexEntitlementsParams object
There are no default values defined in the spec.
func (*IndexEntitlementsParams) BindRequest ¶
func (o *IndexEntitlementsParams) 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 NewIndexEntitlementsParams() beforehand.
type IndexEntitlementsURL ¶
type IndexEntitlementsURL struct {
// contains filtered or unexported fields
}
IndexEntitlementsURL generates an URL for the index entitlements operation
func (*IndexEntitlementsURL) Build ¶
func (o *IndexEntitlementsURL) Build() (*url.URL, error)
Build a url path and query string
func (*IndexEntitlementsURL) BuildFull ¶
func (o *IndexEntitlementsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*IndexEntitlementsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*IndexEntitlementsURL) SetBasePath ¶
func (o *IndexEntitlementsURL) 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 (*IndexEntitlementsURL) String ¶
func (o *IndexEntitlementsURL) String() string
String returns the string representation of the path with query string
func (*IndexEntitlementsURL) StringFull ¶
func (o *IndexEntitlementsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*IndexEntitlementsURL) WithBasePath ¶
func (o *IndexEntitlementsURL) WithBasePath(bp string) *IndexEntitlementsURL
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