Documentation ¶
Index ¶
- Constants
- type GetFeatureFlags
- type GetFeatureFlagsBadRequest
- type GetFeatureFlagsHandler
- type GetFeatureFlagsHandlerFunc
- type GetFeatureFlagsInternalServerError
- func (o *GetFeatureFlagsInternalServerError) SetPayload(payload *models.Error)
- func (o *GetFeatureFlagsInternalServerError) WithPayload(payload *models.Error) *GetFeatureFlagsInternalServerError
- func (o *GetFeatureFlagsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFeatureFlagsOK
- type GetFeatureFlagsParams
- type GetFeatureFlagsURL
- func (o *GetFeatureFlagsURL) Build() (*url.URL, error)
- func (o *GetFeatureFlagsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFeatureFlagsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFeatureFlagsURL) SetBasePath(bp string)
- func (o *GetFeatureFlagsURL) String() string
- func (o *GetFeatureFlagsURL) StringFull(scheme, host string) string
- func (o *GetFeatureFlagsURL) WithBasePath(bp string) *GetFeatureFlagsURL
- type GetFeatureFlagsUnauthorized
Constants ¶
const GetFeatureFlagsBadRequestCode int = 400
GetFeatureFlagsBadRequestCode is the HTTP code returned for type GetFeatureFlagsBadRequest
const GetFeatureFlagsInternalServerErrorCode int = 500
GetFeatureFlagsInternalServerErrorCode is the HTTP code returned for type GetFeatureFlagsInternalServerError
const GetFeatureFlagsOKCode int = 200
GetFeatureFlagsOKCode is the HTTP code returned for type GetFeatureFlagsOK
GetFeatureFlagsUnauthorizedCode is the HTTP code returned for type GetFeatureFlagsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetFeatureFlags ¶
type GetFeatureFlags struct { Context *middleware.Context Handler GetFeatureFlagsHandler }
GetFeatureFlags swagger:route GET /api/features features getFeatureFlags
Retrieve list of features
func NewGetFeatureFlags ¶
func NewGetFeatureFlags(ctx *middleware.Context, handler GetFeatureFlagsHandler) *GetFeatureFlags
NewGetFeatureFlags creates a new http.Handler for the get feature flags operation
func (*GetFeatureFlags) ServeHTTP ¶
func (o *GetFeatureFlags) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFeatureFlagsBadRequest ¶
type GetFeatureFlagsBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetFeatureFlagsBadRequest Bad Request
swagger:response getFeatureFlagsBadRequest
func NewGetFeatureFlagsBadRequest ¶
func NewGetFeatureFlagsBadRequest() *GetFeatureFlagsBadRequest
NewGetFeatureFlagsBadRequest creates GetFeatureFlagsBadRequest with default headers values
func (*GetFeatureFlagsBadRequest) SetPayload ¶
func (o *GetFeatureFlagsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get feature flags bad request response
func (*GetFeatureFlagsBadRequest) WithPayload ¶
func (o *GetFeatureFlagsBadRequest) WithPayload(payload *models.Error) *GetFeatureFlagsBadRequest
WithPayload adds the payload to the get feature flags bad request response
func (*GetFeatureFlagsBadRequest) WriteResponse ¶
func (o *GetFeatureFlagsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFeatureFlagsHandler ¶
type GetFeatureFlagsHandler interface {
Handle(GetFeatureFlagsParams) middleware.Responder
}
GetFeatureFlagsHandler interface for that can handle valid get feature flags params
type GetFeatureFlagsHandlerFunc ¶
type GetFeatureFlagsHandlerFunc func(GetFeatureFlagsParams) middleware.Responder
GetFeatureFlagsHandlerFunc turns a function with the right signature into a get feature flags handler
func (GetFeatureFlagsHandlerFunc) Handle ¶
func (fn GetFeatureFlagsHandlerFunc) Handle(params GetFeatureFlagsParams) middleware.Responder
Handle executing the request and returning a response
type GetFeatureFlagsInternalServerError ¶
type GetFeatureFlagsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetFeatureFlagsInternalServerError Internal server error
swagger:response getFeatureFlagsInternalServerError
func NewGetFeatureFlagsInternalServerError ¶
func NewGetFeatureFlagsInternalServerError() *GetFeatureFlagsInternalServerError
NewGetFeatureFlagsInternalServerError creates GetFeatureFlagsInternalServerError with default headers values
func (*GetFeatureFlagsInternalServerError) SetPayload ¶
func (o *GetFeatureFlagsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get feature flags internal server error response
func (*GetFeatureFlagsInternalServerError) WithPayload ¶
func (o *GetFeatureFlagsInternalServerError) WithPayload(payload *models.Error) *GetFeatureFlagsInternalServerError
WithPayload adds the payload to the get feature flags internal server error response
func (*GetFeatureFlagsInternalServerError) WriteResponse ¶
func (o *GetFeatureFlagsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFeatureFlagsOK ¶
GetFeatureFlagsOK Successful retrieval of feature flags
swagger:response getFeatureFlagsOK
func NewGetFeatureFlagsOK ¶
func NewGetFeatureFlagsOK() *GetFeatureFlagsOK
NewGetFeatureFlagsOK creates GetFeatureFlagsOK with default headers values
func (*GetFeatureFlagsOK) SetPayload ¶
func (o *GetFeatureFlagsOK) SetPayload(payload models.Features)
SetPayload sets the payload to the get feature flags o k response
func (*GetFeatureFlagsOK) WithPayload ¶
func (o *GetFeatureFlagsOK) WithPayload(payload models.Features) *GetFeatureFlagsOK
WithPayload adds the payload to the get feature flags o k response
func (*GetFeatureFlagsOK) WriteResponse ¶
func (o *GetFeatureFlagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFeatureFlagsParams ¶
GetFeatureFlagsParams contains all the bound params for the get feature flags operation typically these are obtained from a http.Request
swagger:parameters getFeatureFlags
func NewGetFeatureFlagsParams ¶
func NewGetFeatureFlagsParams() GetFeatureFlagsParams
NewGetFeatureFlagsParams creates a new GetFeatureFlagsParams object no default values defined in spec.
func (*GetFeatureFlagsParams) BindRequest ¶
func (o *GetFeatureFlagsParams) 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 NewGetFeatureFlagsParams() beforehand.
type GetFeatureFlagsURL ¶
type GetFeatureFlagsURL struct {
// contains filtered or unexported fields
}
GetFeatureFlagsURL generates an URL for the get feature flags operation
func (*GetFeatureFlagsURL) Build ¶
func (o *GetFeatureFlagsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFeatureFlagsURL) BuildFull ¶
func (o *GetFeatureFlagsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFeatureFlagsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFeatureFlagsURL) SetBasePath ¶
func (o *GetFeatureFlagsURL) 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 (*GetFeatureFlagsURL) String ¶
func (o *GetFeatureFlagsURL) String() string
String returns the string representation of the path with query string
func (*GetFeatureFlagsURL) StringFull ¶
func (o *GetFeatureFlagsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFeatureFlagsURL) WithBasePath ¶
func (o *GetFeatureFlagsURL) WithBasePath(bp string) *GetFeatureFlagsURL
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 GetFeatureFlagsUnauthorized ¶
GetFeatureFlagsUnauthorized Incorrect credentials
swagger:response getFeatureFlagsUnauthorized
func NewGetFeatureFlagsUnauthorized ¶
func NewGetFeatureFlagsUnauthorized() *GetFeatureFlagsUnauthorized
NewGetFeatureFlagsUnauthorized creates GetFeatureFlagsUnauthorized with default headers values
func (*GetFeatureFlagsUnauthorized) SetPayload ¶
func (o *GetFeatureFlagsUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get feature flags unauthorized response
func (*GetFeatureFlagsUnauthorized) WithPayload ¶
func (o *GetFeatureFlagsUnauthorized) WithPayload(payload *models.Error) *GetFeatureFlagsUnauthorized
WithPayload adds the payload to the get feature flags unauthorized response
func (*GetFeatureFlagsUnauthorized) WriteResponse ¶
func (o *GetFeatureFlagsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client