Documentation ¶
Index ¶
- Constants
- type CreateFlag
- type CreateFlagDefault
- func (o *CreateFlagDefault) SetPayload(payload *models.Error)
- func (o *CreateFlagDefault) SetStatusCode(code int)
- func (o *CreateFlagDefault) WithPayload(payload *models.Error) *CreateFlagDefault
- func (o *CreateFlagDefault) WithStatusCode(code int) *CreateFlagDefault
- func (o *CreateFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateFlagHandler
- type CreateFlagHandlerFunc
- type CreateFlagOK
- type CreateFlagParams
- type CreateFlagURL
- func (o *CreateFlagURL) Build() (*url.URL, error)
- func (o *CreateFlagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateFlagURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateFlagURL) SetBasePath(bp string)
- func (o *CreateFlagURL) String() string
- func (o *CreateFlagURL) StringFull(scheme, host string) string
- func (o *CreateFlagURL) WithBasePath(bp string) *CreateFlagURL
- type DeleteFlag
- type DeleteFlagDefault
- func (o *DeleteFlagDefault) SetPayload(payload *models.Error)
- func (o *DeleteFlagDefault) SetStatusCode(code int)
- func (o *DeleteFlagDefault) WithPayload(payload *models.Error) *DeleteFlagDefault
- func (o *DeleteFlagDefault) WithStatusCode(code int) *DeleteFlagDefault
- func (o *DeleteFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteFlagHandler
- type DeleteFlagHandlerFunc
- type DeleteFlagOK
- type DeleteFlagParams
- type DeleteFlagURL
- func (o *DeleteFlagURL) Build() (*url.URL, error)
- func (o *DeleteFlagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteFlagURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteFlagURL) SetBasePath(bp string)
- func (o *DeleteFlagURL) String() string
- func (o *DeleteFlagURL) StringFull(scheme, host string) string
- func (o *DeleteFlagURL) WithBasePath(bp string) *DeleteFlagURL
- type FindFlags
- type FindFlagsDefault
- func (o *FindFlagsDefault) SetPayload(payload *models.Error)
- func (o *FindFlagsDefault) SetStatusCode(code int)
- func (o *FindFlagsDefault) WithPayload(payload *models.Error) *FindFlagsDefault
- func (o *FindFlagsDefault) WithStatusCode(code int) *FindFlagsDefault
- func (o *FindFlagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindFlagsHandler
- type FindFlagsHandlerFunc
- type FindFlagsOK
- type FindFlagsParams
- type FindFlagsURL
- func (o *FindFlagsURL) Build() (*url.URL, error)
- func (o *FindFlagsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FindFlagsURL) Must(u *url.URL, err error) *url.URL
- func (o *FindFlagsURL) SetBasePath(bp string)
- func (o *FindFlagsURL) String() string
- func (o *FindFlagsURL) StringFull(scheme, host string) string
- func (o *FindFlagsURL) WithBasePath(bp string) *FindFlagsURL
- type GetFlag
- type GetFlagDefault
- func (o *GetFlagDefault) SetPayload(payload *models.Error)
- func (o *GetFlagDefault) SetStatusCode(code int)
- func (o *GetFlagDefault) WithPayload(payload *models.Error) *GetFlagDefault
- func (o *GetFlagDefault) WithStatusCode(code int) *GetFlagDefault
- func (o *GetFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFlagEntityTypes
- type GetFlagEntityTypesDefault
- func (o *GetFlagEntityTypesDefault) SetPayload(payload *models.Error)
- func (o *GetFlagEntityTypesDefault) SetStatusCode(code int)
- func (o *GetFlagEntityTypesDefault) WithPayload(payload *models.Error) *GetFlagEntityTypesDefault
- func (o *GetFlagEntityTypesDefault) WithStatusCode(code int) *GetFlagEntityTypesDefault
- func (o *GetFlagEntityTypesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFlagEntityTypesHandler
- type GetFlagEntityTypesHandlerFunc
- type GetFlagEntityTypesOK
- type GetFlagEntityTypesParams
- type GetFlagEntityTypesURL
- func (o *GetFlagEntityTypesURL) Build() (*url.URL, error)
- func (o *GetFlagEntityTypesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFlagEntityTypesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFlagEntityTypesURL) SetBasePath(bp string)
- func (o *GetFlagEntityTypesURL) String() string
- func (o *GetFlagEntityTypesURL) StringFull(scheme, host string) string
- func (o *GetFlagEntityTypesURL) WithBasePath(bp string) *GetFlagEntityTypesURL
- type GetFlagHandler
- type GetFlagHandlerFunc
- type GetFlagOK
- type GetFlagParams
- type GetFlagSnapshots
- type GetFlagSnapshotsDefault
- func (o *GetFlagSnapshotsDefault) SetPayload(payload *models.Error)
- func (o *GetFlagSnapshotsDefault) SetStatusCode(code int)
- func (o *GetFlagSnapshotsDefault) WithPayload(payload *models.Error) *GetFlagSnapshotsDefault
- func (o *GetFlagSnapshotsDefault) WithStatusCode(code int) *GetFlagSnapshotsDefault
- func (o *GetFlagSnapshotsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFlagSnapshotsHandler
- type GetFlagSnapshotsHandlerFunc
- type GetFlagSnapshotsOK
- type GetFlagSnapshotsParams
- type GetFlagSnapshotsURL
- func (o *GetFlagSnapshotsURL) Build() (*url.URL, error)
- func (o *GetFlagSnapshotsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFlagSnapshotsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFlagSnapshotsURL) SetBasePath(bp string)
- func (o *GetFlagSnapshotsURL) String() string
- func (o *GetFlagSnapshotsURL) StringFull(scheme, host string) string
- func (o *GetFlagSnapshotsURL) WithBasePath(bp string) *GetFlagSnapshotsURL
- type GetFlagURL
- func (o *GetFlagURL) Build() (*url.URL, error)
- func (o *GetFlagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFlagURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFlagURL) SetBasePath(bp string)
- func (o *GetFlagURL) String() string
- func (o *GetFlagURL) StringFull(scheme, host string) string
- func (o *GetFlagURL) WithBasePath(bp string) *GetFlagURL
- type PutFlag
- type PutFlagDefault
- func (o *PutFlagDefault) SetPayload(payload *models.Error)
- func (o *PutFlagDefault) SetStatusCode(code int)
- func (o *PutFlagDefault) WithPayload(payload *models.Error) *PutFlagDefault
- func (o *PutFlagDefault) WithStatusCode(code int) *PutFlagDefault
- func (o *PutFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutFlagHandler
- type PutFlagHandlerFunc
- type PutFlagOK
- type PutFlagParams
- type PutFlagURL
- func (o *PutFlagURL) Build() (*url.URL, error)
- func (o *PutFlagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutFlagURL) Must(u *url.URL, err error) *url.URL
- func (o *PutFlagURL) SetBasePath(bp string)
- func (o *PutFlagURL) String() string
- func (o *PutFlagURL) StringFull(scheme, host string) string
- func (o *PutFlagURL) WithBasePath(bp string) *PutFlagURL
- type RestoreFlag
- type RestoreFlagDefault
- func (o *RestoreFlagDefault) SetPayload(payload *models.Error)
- func (o *RestoreFlagDefault) SetStatusCode(code int)
- func (o *RestoreFlagDefault) WithPayload(payload *models.Error) *RestoreFlagDefault
- func (o *RestoreFlagDefault) WithStatusCode(code int) *RestoreFlagDefault
- func (o *RestoreFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RestoreFlagHandler
- type RestoreFlagHandlerFunc
- type RestoreFlagOK
- type RestoreFlagParams
- type RestoreFlagURL
- func (o *RestoreFlagURL) Build() (*url.URL, error)
- func (o *RestoreFlagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RestoreFlagURL) Must(u *url.URL, err error) *url.URL
- func (o *RestoreFlagURL) SetBasePath(bp string)
- func (o *RestoreFlagURL) String() string
- func (o *RestoreFlagURL) StringFull(scheme, host string) string
- func (o *RestoreFlagURL) WithBasePath(bp string) *RestoreFlagURL
- type SetFlagEnabled
- type SetFlagEnabledDefault
- func (o *SetFlagEnabledDefault) SetPayload(payload *models.Error)
- func (o *SetFlagEnabledDefault) SetStatusCode(code int)
- func (o *SetFlagEnabledDefault) WithPayload(payload *models.Error) *SetFlagEnabledDefault
- func (o *SetFlagEnabledDefault) WithStatusCode(code int) *SetFlagEnabledDefault
- func (o *SetFlagEnabledDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SetFlagEnabledHandler
- type SetFlagEnabledHandlerFunc
- type SetFlagEnabledOK
- type SetFlagEnabledParams
- type SetFlagEnabledURL
- func (o *SetFlagEnabledURL) Build() (*url.URL, error)
- func (o *SetFlagEnabledURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetFlagEnabledURL) Must(u *url.URL, err error) *url.URL
- func (o *SetFlagEnabledURL) SetBasePath(bp string)
- func (o *SetFlagEnabledURL) String() string
- func (o *SetFlagEnabledURL) StringFull(scheme, host string) string
- func (o *SetFlagEnabledURL) WithBasePath(bp string) *SetFlagEnabledURL
Constants ¶
const CreateFlagOKCode int = 200
CreateFlagOKCode is the HTTP code returned for type CreateFlagOK
const DeleteFlagOKCode int = 200
DeleteFlagOKCode is the HTTP code returned for type DeleteFlagOK
const FindFlagsOKCode int = 200
FindFlagsOKCode is the HTTP code returned for type FindFlagsOK
const GetFlagEntityTypesOKCode int = 200
GetFlagEntityTypesOKCode is the HTTP code returned for type GetFlagEntityTypesOK
const GetFlagOKCode int = 200
GetFlagOKCode is the HTTP code returned for type GetFlagOK
const GetFlagSnapshotsOKCode int = 200
GetFlagSnapshotsOKCode is the HTTP code returned for type GetFlagSnapshotsOK
const PutFlagOKCode int = 200
PutFlagOKCode is the HTTP code returned for type PutFlagOK
const RestoreFlagOKCode int = 200
RestoreFlagOKCode is the HTTP code returned for type RestoreFlagOK
const SetFlagEnabledOKCode int = 200
SetFlagEnabledOKCode is the HTTP code returned for type SetFlagEnabledOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFlag ¶
type CreateFlag struct { Context *middleware.Context Handler CreateFlagHandler }
CreateFlag swagger:route POST /flags flag createFlag
CreateFlag create flag API
func NewCreateFlag ¶
func NewCreateFlag(ctx *middleware.Context, handler CreateFlagHandler) *CreateFlag
NewCreateFlag creates a new http.Handler for the create flag operation
func (*CreateFlag) ServeHTTP ¶
func (o *CreateFlag) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateFlagDefault ¶
type CreateFlagDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateFlagDefault generic error response
swagger:response createFlagDefault
func NewCreateFlagDefault ¶
func NewCreateFlagDefault(code int) *CreateFlagDefault
NewCreateFlagDefault creates CreateFlagDefault with default headers values
func (*CreateFlagDefault) SetPayload ¶
func (o *CreateFlagDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create flag default response
func (*CreateFlagDefault) SetStatusCode ¶
func (o *CreateFlagDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create flag default response
func (*CreateFlagDefault) WithPayload ¶
func (o *CreateFlagDefault) WithPayload(payload *models.Error) *CreateFlagDefault
WithPayload adds the payload to the create flag default response
func (*CreateFlagDefault) WithStatusCode ¶
func (o *CreateFlagDefault) WithStatusCode(code int) *CreateFlagDefault
WithStatusCode adds the status to the create flag default response
func (*CreateFlagDefault) WriteResponse ¶
func (o *CreateFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFlagHandler ¶
type CreateFlagHandler interface {
Handle(CreateFlagParams) middleware.Responder
}
CreateFlagHandler interface for that can handle valid create flag params
type CreateFlagHandlerFunc ¶
type CreateFlagHandlerFunc func(CreateFlagParams) middleware.Responder
CreateFlagHandlerFunc turns a function with the right signature into a create flag handler
func (CreateFlagHandlerFunc) Handle ¶
func (fn CreateFlagHandlerFunc) Handle(params CreateFlagParams) middleware.Responder
Handle executing the request and returning a response
type CreateFlagOK ¶
CreateFlagOK returns the created flag
swagger:response createFlagOK
func NewCreateFlagOK ¶
func NewCreateFlagOK() *CreateFlagOK
NewCreateFlagOK creates CreateFlagOK with default headers values
func (*CreateFlagOK) SetPayload ¶
func (o *CreateFlagOK) SetPayload(payload *models.Flag)
SetPayload sets the payload to the create flag o k response
func (*CreateFlagOK) WithPayload ¶
func (o *CreateFlagOK) WithPayload(payload *models.Flag) *CreateFlagOK
WithPayload adds the payload to the create flag o k response
func (*CreateFlagOK) WriteResponse ¶
func (o *CreateFlagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFlagParams ¶
type CreateFlagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*create a flag Required: true In: body */ Body *models.CreateFlagRequest }
CreateFlagParams contains all the bound params for the create flag operation typically these are obtained from a http.Request
swagger:parameters createFlag
func NewCreateFlagParams ¶
func NewCreateFlagParams() CreateFlagParams
NewCreateFlagParams creates a new CreateFlagParams object
There are no default values defined in the spec.
func (*CreateFlagParams) BindRequest ¶
func (o *CreateFlagParams) 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 NewCreateFlagParams() beforehand.
type CreateFlagURL ¶
type CreateFlagURL struct {
// contains filtered or unexported fields
}
CreateFlagURL generates an URL for the create flag operation
func (*CreateFlagURL) Build ¶
func (o *CreateFlagURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateFlagURL) BuildFull ¶
func (o *CreateFlagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateFlagURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateFlagURL) SetBasePath ¶
func (o *CreateFlagURL) 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 (*CreateFlagURL) String ¶
func (o *CreateFlagURL) String() string
String returns the string representation of the path with query string
func (*CreateFlagURL) StringFull ¶
func (o *CreateFlagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateFlagURL) WithBasePath ¶
func (o *CreateFlagURL) WithBasePath(bp string) *CreateFlagURL
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 DeleteFlag ¶
type DeleteFlag struct { Context *middleware.Context Handler DeleteFlagHandler }
DeleteFlag swagger:route DELETE /flags/{flagID} flag deleteFlag
DeleteFlag delete flag API
func NewDeleteFlag ¶
func NewDeleteFlag(ctx *middleware.Context, handler DeleteFlagHandler) *DeleteFlag
NewDeleteFlag creates a new http.Handler for the delete flag operation
func (*DeleteFlag) ServeHTTP ¶
func (o *DeleteFlag) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteFlagDefault ¶
type DeleteFlagDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteFlagDefault generic error response
swagger:response deleteFlagDefault
func NewDeleteFlagDefault ¶
func NewDeleteFlagDefault(code int) *DeleteFlagDefault
NewDeleteFlagDefault creates DeleteFlagDefault with default headers values
func (*DeleteFlagDefault) SetPayload ¶
func (o *DeleteFlagDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete flag default response
func (*DeleteFlagDefault) SetStatusCode ¶
func (o *DeleteFlagDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete flag default response
func (*DeleteFlagDefault) WithPayload ¶
func (o *DeleteFlagDefault) WithPayload(payload *models.Error) *DeleteFlagDefault
WithPayload adds the payload to the delete flag default response
func (*DeleteFlagDefault) WithStatusCode ¶
func (o *DeleteFlagDefault) WithStatusCode(code int) *DeleteFlagDefault
WithStatusCode adds the status to the delete flag default response
func (*DeleteFlagDefault) WriteResponse ¶
func (o *DeleteFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFlagHandler ¶
type DeleteFlagHandler interface {
Handle(DeleteFlagParams) middleware.Responder
}
DeleteFlagHandler interface for that can handle valid delete flag params
type DeleteFlagHandlerFunc ¶
type DeleteFlagHandlerFunc func(DeleteFlagParams) middleware.Responder
DeleteFlagHandlerFunc turns a function with the right signature into a delete flag handler
func (DeleteFlagHandlerFunc) Handle ¶
func (fn DeleteFlagHandlerFunc) Handle(params DeleteFlagParams) middleware.Responder
Handle executing the request and returning a response
type DeleteFlagOK ¶
type DeleteFlagOK struct { }
DeleteFlagOK OK deleted
swagger:response deleteFlagOK
func NewDeleteFlagOK ¶
func NewDeleteFlagOK() *DeleteFlagOK
NewDeleteFlagOK creates DeleteFlagOK with default headers values
func (*DeleteFlagOK) WriteResponse ¶
func (o *DeleteFlagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFlagParams ¶
type DeleteFlagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 }
DeleteFlagParams contains all the bound params for the delete flag operation typically these are obtained from a http.Request
swagger:parameters deleteFlag
func NewDeleteFlagParams ¶
func NewDeleteFlagParams() DeleteFlagParams
NewDeleteFlagParams creates a new DeleteFlagParams object
There are no default values defined in the spec.
func (*DeleteFlagParams) BindRequest ¶
func (o *DeleteFlagParams) 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 NewDeleteFlagParams() beforehand.
type DeleteFlagURL ¶
type DeleteFlagURL struct { FlagID int64 // contains filtered or unexported fields }
DeleteFlagURL generates an URL for the delete flag operation
func (*DeleteFlagURL) Build ¶
func (o *DeleteFlagURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteFlagURL) BuildFull ¶
func (o *DeleteFlagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteFlagURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteFlagURL) SetBasePath ¶
func (o *DeleteFlagURL) 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 (*DeleteFlagURL) String ¶
func (o *DeleteFlagURL) String() string
String returns the string representation of the path with query string
func (*DeleteFlagURL) StringFull ¶
func (o *DeleteFlagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteFlagURL) WithBasePath ¶
func (o *DeleteFlagURL) WithBasePath(bp string) *DeleteFlagURL
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 FindFlags ¶
type FindFlags struct { Context *middleware.Context Handler FindFlagsHandler }
FindFlags swagger:route GET /flags flag findFlags
FindFlags find flags API
func NewFindFlags ¶
func NewFindFlags(ctx *middleware.Context, handler FindFlagsHandler) *FindFlags
NewFindFlags creates a new http.Handler for the find flags operation
type FindFlagsDefault ¶
type FindFlagsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
FindFlagsDefault generic error response
swagger:response findFlagsDefault
func NewFindFlagsDefault ¶
func NewFindFlagsDefault(code int) *FindFlagsDefault
NewFindFlagsDefault creates FindFlagsDefault with default headers values
func (*FindFlagsDefault) SetPayload ¶
func (o *FindFlagsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the find flags default response
func (*FindFlagsDefault) SetStatusCode ¶
func (o *FindFlagsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the find flags default response
func (*FindFlagsDefault) WithPayload ¶
func (o *FindFlagsDefault) WithPayload(payload *models.Error) *FindFlagsDefault
WithPayload adds the payload to the find flags default response
func (*FindFlagsDefault) WithStatusCode ¶
func (o *FindFlagsDefault) WithStatusCode(code int) *FindFlagsDefault
WithStatusCode adds the status to the find flags default response
func (*FindFlagsDefault) WriteResponse ¶
func (o *FindFlagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindFlagsHandler ¶
type FindFlagsHandler interface {
Handle(FindFlagsParams) middleware.Responder
}
FindFlagsHandler interface for that can handle valid find flags params
type FindFlagsHandlerFunc ¶
type FindFlagsHandlerFunc func(FindFlagsParams) middleware.Responder
FindFlagsHandlerFunc turns a function with the right signature into a find flags handler
func (FindFlagsHandlerFunc) Handle ¶
func (fn FindFlagsHandlerFunc) Handle(params FindFlagsParams) middleware.Responder
Handle executing the request and returning a response
type FindFlagsOK ¶
FindFlagsOK list all the flags
swagger:response findFlagsOK
func NewFindFlagsOK ¶
func NewFindFlagsOK() *FindFlagsOK
NewFindFlagsOK creates FindFlagsOK with default headers values
func (*FindFlagsOK) SetPayload ¶
func (o *FindFlagsOK) SetPayload(payload []*models.Flag)
SetPayload sets the payload to the find flags o k response
func (*FindFlagsOK) WithPayload ¶
func (o *FindFlagsOK) WithPayload(payload []*models.Flag) *FindFlagsOK
WithPayload adds the payload to the find flags o k response
func (*FindFlagsOK) WriteResponse ¶
func (o *FindFlagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindFlagsParams ¶
type FindFlagsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*return all deleted flags In: query */ Deleted *bool /*return flags exactly matching given description In: query */ Description *string /*return flags partially matching given description In: query */ DescriptionLike *string /*return flags having given enabled status In: query */ Enabled *bool /*return flags matching given key In: query */ Key *string /*the numbers of flags to return In: query */ Limit *int64 /*return flags given the offset, it should usually set together with limit In: query */ Offset *int64 /*return flags with preloaded segments and variants In: query */ Preload *bool /*return flags with the given tags (comma separated) In: query */ Tags *string }
FindFlagsParams contains all the bound params for the find flags operation typically these are obtained from a http.Request
swagger:parameters findFlags
func NewFindFlagsParams ¶
func NewFindFlagsParams() FindFlagsParams
NewFindFlagsParams creates a new FindFlagsParams object
There are no default values defined in the spec.
func (*FindFlagsParams) BindRequest ¶
func (o *FindFlagsParams) 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 NewFindFlagsParams() beforehand.
type FindFlagsURL ¶
type FindFlagsURL struct { Deleted *bool Description *string DescriptionLike *string Enabled *bool Key *string Limit *int64 Offset *int64 Preload *bool Tags *string // contains filtered or unexported fields }
FindFlagsURL generates an URL for the find flags operation
func (*FindFlagsURL) Build ¶
func (o *FindFlagsURL) Build() (*url.URL, error)
Build a url path and query string
func (*FindFlagsURL) BuildFull ¶
func (o *FindFlagsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*FindFlagsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*FindFlagsURL) SetBasePath ¶
func (o *FindFlagsURL) 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 (*FindFlagsURL) String ¶
func (o *FindFlagsURL) String() string
String returns the string representation of the path with query string
func (*FindFlagsURL) StringFull ¶
func (o *FindFlagsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*FindFlagsURL) WithBasePath ¶
func (o *FindFlagsURL) WithBasePath(bp string) *FindFlagsURL
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 GetFlag ¶
type GetFlag struct { Context *middleware.Context Handler GetFlagHandler }
GetFlag swagger:route GET /flags/{flagID} flag getFlag
GetFlag get flag API
func NewGetFlag ¶
func NewGetFlag(ctx *middleware.Context, handler GetFlagHandler) *GetFlag
NewGetFlag creates a new http.Handler for the get flag operation
type GetFlagDefault ¶
type GetFlagDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetFlagDefault generic error response
swagger:response getFlagDefault
func NewGetFlagDefault ¶
func NewGetFlagDefault(code int) *GetFlagDefault
NewGetFlagDefault creates GetFlagDefault with default headers values
func (*GetFlagDefault) SetPayload ¶
func (o *GetFlagDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get flag default response
func (*GetFlagDefault) SetStatusCode ¶
func (o *GetFlagDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get flag default response
func (*GetFlagDefault) WithPayload ¶
func (o *GetFlagDefault) WithPayload(payload *models.Error) *GetFlagDefault
WithPayload adds the payload to the get flag default response
func (*GetFlagDefault) WithStatusCode ¶
func (o *GetFlagDefault) WithStatusCode(code int) *GetFlagDefault
WithStatusCode adds the status to the get flag default response
func (*GetFlagDefault) WriteResponse ¶
func (o *GetFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagEntityTypes ¶
type GetFlagEntityTypes struct { Context *middleware.Context Handler GetFlagEntityTypesHandler }
GetFlagEntityTypes swagger:route GET /flags/entity_types flag getFlagEntityTypes
GetFlagEntityTypes get flag entity types API
func NewGetFlagEntityTypes ¶
func NewGetFlagEntityTypes(ctx *middleware.Context, handler GetFlagEntityTypesHandler) *GetFlagEntityTypes
NewGetFlagEntityTypes creates a new http.Handler for the get flag entity types operation
func (*GetFlagEntityTypes) ServeHTTP ¶
func (o *GetFlagEntityTypes) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFlagEntityTypesDefault ¶
type GetFlagEntityTypesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetFlagEntityTypesDefault generic error response
swagger:response getFlagEntityTypesDefault
func NewGetFlagEntityTypesDefault ¶
func NewGetFlagEntityTypesDefault(code int) *GetFlagEntityTypesDefault
NewGetFlagEntityTypesDefault creates GetFlagEntityTypesDefault with default headers values
func (*GetFlagEntityTypesDefault) SetPayload ¶
func (o *GetFlagEntityTypesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get flag entity types default response
func (*GetFlagEntityTypesDefault) SetStatusCode ¶
func (o *GetFlagEntityTypesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get flag entity types default response
func (*GetFlagEntityTypesDefault) WithPayload ¶
func (o *GetFlagEntityTypesDefault) WithPayload(payload *models.Error) *GetFlagEntityTypesDefault
WithPayload adds the payload to the get flag entity types default response
func (*GetFlagEntityTypesDefault) WithStatusCode ¶
func (o *GetFlagEntityTypesDefault) WithStatusCode(code int) *GetFlagEntityTypesDefault
WithStatusCode adds the status to the get flag entity types default response
func (*GetFlagEntityTypesDefault) WriteResponse ¶
func (o *GetFlagEntityTypesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagEntityTypesHandler ¶
type GetFlagEntityTypesHandler interface {
Handle(GetFlagEntityTypesParams) middleware.Responder
}
GetFlagEntityTypesHandler interface for that can handle valid get flag entity types params
type GetFlagEntityTypesHandlerFunc ¶
type GetFlagEntityTypesHandlerFunc func(GetFlagEntityTypesParams) middleware.Responder
GetFlagEntityTypesHandlerFunc turns a function with the right signature into a get flag entity types handler
func (GetFlagEntityTypesHandlerFunc) Handle ¶
func (fn GetFlagEntityTypesHandlerFunc) Handle(params GetFlagEntityTypesParams) middleware.Responder
Handle executing the request and returning a response
type GetFlagEntityTypesOK ¶
type GetFlagEntityTypesOK struct { /* In: Body */ Payload []string `json:"body,omitempty"` }
GetFlagEntityTypesOK returns all the FlagEntityTypes
swagger:response getFlagEntityTypesOK
func NewGetFlagEntityTypesOK ¶
func NewGetFlagEntityTypesOK() *GetFlagEntityTypesOK
NewGetFlagEntityTypesOK creates GetFlagEntityTypesOK with default headers values
func (*GetFlagEntityTypesOK) SetPayload ¶
func (o *GetFlagEntityTypesOK) SetPayload(payload []string)
SetPayload sets the payload to the get flag entity types o k response
func (*GetFlagEntityTypesOK) WithPayload ¶
func (o *GetFlagEntityTypesOK) WithPayload(payload []string) *GetFlagEntityTypesOK
WithPayload adds the payload to the get flag entity types o k response
func (*GetFlagEntityTypesOK) WriteResponse ¶
func (o *GetFlagEntityTypesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagEntityTypesParams ¶
type GetFlagEntityTypesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetFlagEntityTypesParams contains all the bound params for the get flag entity types operation typically these are obtained from a http.Request
swagger:parameters getFlagEntityTypes
func NewGetFlagEntityTypesParams ¶
func NewGetFlagEntityTypesParams() GetFlagEntityTypesParams
NewGetFlagEntityTypesParams creates a new GetFlagEntityTypesParams object
There are no default values defined in the spec.
func (*GetFlagEntityTypesParams) BindRequest ¶
func (o *GetFlagEntityTypesParams) 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 NewGetFlagEntityTypesParams() beforehand.
type GetFlagEntityTypesURL ¶
type GetFlagEntityTypesURL struct {
// contains filtered or unexported fields
}
GetFlagEntityTypesURL generates an URL for the get flag entity types operation
func (*GetFlagEntityTypesURL) Build ¶
func (o *GetFlagEntityTypesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFlagEntityTypesURL) BuildFull ¶
func (o *GetFlagEntityTypesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFlagEntityTypesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFlagEntityTypesURL) SetBasePath ¶
func (o *GetFlagEntityTypesURL) 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 (*GetFlagEntityTypesURL) String ¶
func (o *GetFlagEntityTypesURL) String() string
String returns the string representation of the path with query string
func (*GetFlagEntityTypesURL) StringFull ¶
func (o *GetFlagEntityTypesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFlagEntityTypesURL) WithBasePath ¶
func (o *GetFlagEntityTypesURL) WithBasePath(bp string) *GetFlagEntityTypesURL
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 GetFlagHandler ¶
type GetFlagHandler interface {
Handle(GetFlagParams) middleware.Responder
}
GetFlagHandler interface for that can handle valid get flag params
type GetFlagHandlerFunc ¶
type GetFlagHandlerFunc func(GetFlagParams) middleware.Responder
GetFlagHandlerFunc turns a function with the right signature into a get flag handler
func (GetFlagHandlerFunc) Handle ¶
func (fn GetFlagHandlerFunc) Handle(params GetFlagParams) middleware.Responder
Handle executing the request and returning a response
type GetFlagOK ¶
GetFlagOK returns the flag
swagger:response getFlagOK
func NewGetFlagOK ¶
func NewGetFlagOK() *GetFlagOK
NewGetFlagOK creates GetFlagOK with default headers values
func (*GetFlagOK) SetPayload ¶
SetPayload sets the payload to the get flag o k response
func (*GetFlagOK) WithPayload ¶
WithPayload adds the payload to the get flag o k response
func (*GetFlagOK) WriteResponse ¶
func (o *GetFlagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagParams ¶
type GetFlagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag to get Required: true Minimum: 1 In: path */ FlagID int64 }
GetFlagParams contains all the bound params for the get flag operation typically these are obtained from a http.Request
swagger:parameters getFlag
func NewGetFlagParams ¶
func NewGetFlagParams() GetFlagParams
NewGetFlagParams creates a new GetFlagParams object
There are no default values defined in the spec.
func (*GetFlagParams) BindRequest ¶
func (o *GetFlagParams) 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 NewGetFlagParams() beforehand.
type GetFlagSnapshots ¶
type GetFlagSnapshots struct { Context *middleware.Context Handler GetFlagSnapshotsHandler }
GetFlagSnapshots swagger:route GET /flags/{flagID}/snapshots flag getFlagSnapshots
GetFlagSnapshots get flag snapshots API
func NewGetFlagSnapshots ¶
func NewGetFlagSnapshots(ctx *middleware.Context, handler GetFlagSnapshotsHandler) *GetFlagSnapshots
NewGetFlagSnapshots creates a new http.Handler for the get flag snapshots operation
func (*GetFlagSnapshots) ServeHTTP ¶
func (o *GetFlagSnapshots) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFlagSnapshotsDefault ¶
type GetFlagSnapshotsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetFlagSnapshotsDefault generic error response
swagger:response getFlagSnapshotsDefault
func NewGetFlagSnapshotsDefault ¶
func NewGetFlagSnapshotsDefault(code int) *GetFlagSnapshotsDefault
NewGetFlagSnapshotsDefault creates GetFlagSnapshotsDefault with default headers values
func (*GetFlagSnapshotsDefault) SetPayload ¶
func (o *GetFlagSnapshotsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get flag snapshots default response
func (*GetFlagSnapshotsDefault) SetStatusCode ¶
func (o *GetFlagSnapshotsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get flag snapshots default response
func (*GetFlagSnapshotsDefault) WithPayload ¶
func (o *GetFlagSnapshotsDefault) WithPayload(payload *models.Error) *GetFlagSnapshotsDefault
WithPayload adds the payload to the get flag snapshots default response
func (*GetFlagSnapshotsDefault) WithStatusCode ¶
func (o *GetFlagSnapshotsDefault) WithStatusCode(code int) *GetFlagSnapshotsDefault
WithStatusCode adds the status to the get flag snapshots default response
func (*GetFlagSnapshotsDefault) WriteResponse ¶
func (o *GetFlagSnapshotsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagSnapshotsHandler ¶
type GetFlagSnapshotsHandler interface {
Handle(GetFlagSnapshotsParams) middleware.Responder
}
GetFlagSnapshotsHandler interface for that can handle valid get flag snapshots params
type GetFlagSnapshotsHandlerFunc ¶
type GetFlagSnapshotsHandlerFunc func(GetFlagSnapshotsParams) middleware.Responder
GetFlagSnapshotsHandlerFunc turns a function with the right signature into a get flag snapshots handler
func (GetFlagSnapshotsHandlerFunc) Handle ¶
func (fn GetFlagSnapshotsHandlerFunc) Handle(params GetFlagSnapshotsParams) middleware.Responder
Handle executing the request and returning a response
type GetFlagSnapshotsOK ¶
type GetFlagSnapshotsOK struct { /* In: Body */ Payload []*models.FlagSnapshot `json:"body,omitempty"` }
GetFlagSnapshotsOK returns the flag snapshots
swagger:response getFlagSnapshotsOK
func NewGetFlagSnapshotsOK ¶
func NewGetFlagSnapshotsOK() *GetFlagSnapshotsOK
NewGetFlagSnapshotsOK creates GetFlagSnapshotsOK with default headers values
func (*GetFlagSnapshotsOK) SetPayload ¶
func (o *GetFlagSnapshotsOK) SetPayload(payload []*models.FlagSnapshot)
SetPayload sets the payload to the get flag snapshots o k response
func (*GetFlagSnapshotsOK) WithPayload ¶
func (o *GetFlagSnapshotsOK) WithPayload(payload []*models.FlagSnapshot) *GetFlagSnapshotsOK
WithPayload adds the payload to the get flag snapshots o k response
func (*GetFlagSnapshotsOK) WriteResponse ¶
func (o *GetFlagSnapshotsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlagSnapshotsParams ¶
type GetFlagSnapshotsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag to get Required: true Minimum: 1 In: path */ FlagID int64 }
GetFlagSnapshotsParams contains all the bound params for the get flag snapshots operation typically these are obtained from a http.Request
swagger:parameters getFlagSnapshots
func NewGetFlagSnapshotsParams ¶
func NewGetFlagSnapshotsParams() GetFlagSnapshotsParams
NewGetFlagSnapshotsParams creates a new GetFlagSnapshotsParams object
There are no default values defined in the spec.
func (*GetFlagSnapshotsParams) BindRequest ¶
func (o *GetFlagSnapshotsParams) 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 NewGetFlagSnapshotsParams() beforehand.
type GetFlagSnapshotsURL ¶
type GetFlagSnapshotsURL struct { FlagID int64 // contains filtered or unexported fields }
GetFlagSnapshotsURL generates an URL for the get flag snapshots operation
func (*GetFlagSnapshotsURL) Build ¶
func (o *GetFlagSnapshotsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFlagSnapshotsURL) BuildFull ¶
func (o *GetFlagSnapshotsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFlagSnapshotsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFlagSnapshotsURL) SetBasePath ¶
func (o *GetFlagSnapshotsURL) 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 (*GetFlagSnapshotsURL) String ¶
func (o *GetFlagSnapshotsURL) String() string
String returns the string representation of the path with query string
func (*GetFlagSnapshotsURL) StringFull ¶
func (o *GetFlagSnapshotsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFlagSnapshotsURL) WithBasePath ¶
func (o *GetFlagSnapshotsURL) WithBasePath(bp string) *GetFlagSnapshotsURL
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 GetFlagURL ¶
type GetFlagURL struct { FlagID int64 // contains filtered or unexported fields }
GetFlagURL generates an URL for the get flag operation
func (*GetFlagURL) Build ¶
func (o *GetFlagURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFlagURL) BuildFull ¶
func (o *GetFlagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFlagURL) SetBasePath ¶
func (o *GetFlagURL) 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 (*GetFlagURL) String ¶
func (o *GetFlagURL) String() string
String returns the string representation of the path with query string
func (*GetFlagURL) StringFull ¶
func (o *GetFlagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFlagURL) WithBasePath ¶
func (o *GetFlagURL) WithBasePath(bp string) *GetFlagURL
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 PutFlag ¶
type PutFlag struct { Context *middleware.Context Handler PutFlagHandler }
PutFlag swagger:route PUT /flags/{flagID} flag putFlag
PutFlag put flag API
func NewPutFlag ¶
func NewPutFlag(ctx *middleware.Context, handler PutFlagHandler) *PutFlag
NewPutFlag creates a new http.Handler for the put flag operation
type PutFlagDefault ¶
type PutFlagDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutFlagDefault generic error response
swagger:response putFlagDefault
func NewPutFlagDefault ¶
func NewPutFlagDefault(code int) *PutFlagDefault
NewPutFlagDefault creates PutFlagDefault with default headers values
func (*PutFlagDefault) SetPayload ¶
func (o *PutFlagDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put flag default response
func (*PutFlagDefault) SetStatusCode ¶
func (o *PutFlagDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put flag default response
func (*PutFlagDefault) WithPayload ¶
func (o *PutFlagDefault) WithPayload(payload *models.Error) *PutFlagDefault
WithPayload adds the payload to the put flag default response
func (*PutFlagDefault) WithStatusCode ¶
func (o *PutFlagDefault) WithStatusCode(code int) *PutFlagDefault
WithStatusCode adds the status to the put flag default response
func (*PutFlagDefault) WriteResponse ¶
func (o *PutFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutFlagHandler ¶
type PutFlagHandler interface {
Handle(PutFlagParams) middleware.Responder
}
PutFlagHandler interface for that can handle valid put flag params
type PutFlagHandlerFunc ¶
type PutFlagHandlerFunc func(PutFlagParams) middleware.Responder
PutFlagHandlerFunc turns a function with the right signature into a put flag handler
func (PutFlagHandlerFunc) Handle ¶
func (fn PutFlagHandlerFunc) Handle(params PutFlagParams) middleware.Responder
Handle executing the request and returning a response
type PutFlagOK ¶
PutFlagOK returns the flag
swagger:response putFlagOK
func NewPutFlagOK ¶
func NewPutFlagOK() *PutFlagOK
NewPutFlagOK creates PutFlagOK with default headers values
func (*PutFlagOK) SetPayload ¶
SetPayload sets the payload to the put flag o k response
func (*PutFlagOK) WithPayload ¶
WithPayload adds the payload to the put flag o k response
func (*PutFlagOK) WriteResponse ¶
func (o *PutFlagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutFlagParams ¶
type PutFlagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*update a flag Required: true In: body */ Body *models.PutFlagRequest /*numeric ID of the flag to get Required: true Minimum: 1 In: path */ FlagID int64 }
PutFlagParams contains all the bound params for the put flag operation typically these are obtained from a http.Request
swagger:parameters putFlag
func NewPutFlagParams ¶
func NewPutFlagParams() PutFlagParams
NewPutFlagParams creates a new PutFlagParams object
There are no default values defined in the spec.
func (*PutFlagParams) BindRequest ¶
func (o *PutFlagParams) 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 NewPutFlagParams() beforehand.
type PutFlagURL ¶
type PutFlagURL struct { FlagID int64 // contains filtered or unexported fields }
PutFlagURL generates an URL for the put flag operation
func (*PutFlagURL) Build ¶
func (o *PutFlagURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutFlagURL) BuildFull ¶
func (o *PutFlagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutFlagURL) SetBasePath ¶
func (o *PutFlagURL) 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 (*PutFlagURL) String ¶
func (o *PutFlagURL) String() string
String returns the string representation of the path with query string
func (*PutFlagURL) StringFull ¶
func (o *PutFlagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutFlagURL) WithBasePath ¶
func (o *PutFlagURL) WithBasePath(bp string) *PutFlagURL
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 RestoreFlag ¶
type RestoreFlag struct { Context *middleware.Context Handler RestoreFlagHandler }
RestoreFlag swagger:route PUT /flags/{flagID}/restore flag restoreFlag
RestoreFlag restore flag API
func NewRestoreFlag ¶
func NewRestoreFlag(ctx *middleware.Context, handler RestoreFlagHandler) *RestoreFlag
NewRestoreFlag creates a new http.Handler for the restore flag operation
func (*RestoreFlag) ServeHTTP ¶
func (o *RestoreFlag) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RestoreFlagDefault ¶
type RestoreFlagDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RestoreFlagDefault generic error response
swagger:response restoreFlagDefault
func NewRestoreFlagDefault ¶
func NewRestoreFlagDefault(code int) *RestoreFlagDefault
NewRestoreFlagDefault creates RestoreFlagDefault with default headers values
func (*RestoreFlagDefault) SetPayload ¶
func (o *RestoreFlagDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the restore flag default response
func (*RestoreFlagDefault) SetStatusCode ¶
func (o *RestoreFlagDefault) SetStatusCode(code int)
SetStatusCode sets the status to the restore flag default response
func (*RestoreFlagDefault) WithPayload ¶
func (o *RestoreFlagDefault) WithPayload(payload *models.Error) *RestoreFlagDefault
WithPayload adds the payload to the restore flag default response
func (*RestoreFlagDefault) WithStatusCode ¶
func (o *RestoreFlagDefault) WithStatusCode(code int) *RestoreFlagDefault
WithStatusCode adds the status to the restore flag default response
func (*RestoreFlagDefault) WriteResponse ¶
func (o *RestoreFlagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RestoreFlagHandler ¶
type RestoreFlagHandler interface {
Handle(RestoreFlagParams) middleware.Responder
}
RestoreFlagHandler interface for that can handle valid restore flag params
type RestoreFlagHandlerFunc ¶
type RestoreFlagHandlerFunc func(RestoreFlagParams) middleware.Responder
RestoreFlagHandlerFunc turns a function with the right signature into a restore flag handler
func (RestoreFlagHandlerFunc) Handle ¶
func (fn RestoreFlagHandlerFunc) Handle(params RestoreFlagParams) middleware.Responder
Handle executing the request and returning a response
type RestoreFlagOK ¶
RestoreFlagOK returns the flag
swagger:response restoreFlagOK
func NewRestoreFlagOK ¶
func NewRestoreFlagOK() *RestoreFlagOK
NewRestoreFlagOK creates RestoreFlagOK with default headers values
func (*RestoreFlagOK) SetPayload ¶
func (o *RestoreFlagOK) SetPayload(payload *models.Flag)
SetPayload sets the payload to the restore flag o k response
func (*RestoreFlagOK) WithPayload ¶
func (o *RestoreFlagOK) WithPayload(payload *models.Flag) *RestoreFlagOK
WithPayload adds the payload to the restore flag o k response
func (*RestoreFlagOK) WriteResponse ¶
func (o *RestoreFlagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RestoreFlagParams ¶
type RestoreFlagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag to get Required: true Minimum: 1 In: path */ FlagID int64 }
RestoreFlagParams contains all the bound params for the restore flag operation typically these are obtained from a http.Request
swagger:parameters restoreFlag
func NewRestoreFlagParams ¶
func NewRestoreFlagParams() RestoreFlagParams
NewRestoreFlagParams creates a new RestoreFlagParams object
There are no default values defined in the spec.
func (*RestoreFlagParams) BindRequest ¶
func (o *RestoreFlagParams) 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 NewRestoreFlagParams() beforehand.
type RestoreFlagURL ¶
type RestoreFlagURL struct { FlagID int64 // contains filtered or unexported fields }
RestoreFlagURL generates an URL for the restore flag operation
func (*RestoreFlagURL) Build ¶
func (o *RestoreFlagURL) Build() (*url.URL, error)
Build a url path and query string
func (*RestoreFlagURL) BuildFull ¶
func (o *RestoreFlagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RestoreFlagURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RestoreFlagURL) SetBasePath ¶
func (o *RestoreFlagURL) 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 (*RestoreFlagURL) String ¶
func (o *RestoreFlagURL) String() string
String returns the string representation of the path with query string
func (*RestoreFlagURL) StringFull ¶
func (o *RestoreFlagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RestoreFlagURL) WithBasePath ¶
func (o *RestoreFlagURL) WithBasePath(bp string) *RestoreFlagURL
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 SetFlagEnabled ¶
type SetFlagEnabled struct { Context *middleware.Context Handler SetFlagEnabledHandler }
SetFlagEnabled swagger:route PUT /flags/{flagID}/enabled flag setFlagEnabled
SetFlagEnabled set flag enabled API
func NewSetFlagEnabled ¶
func NewSetFlagEnabled(ctx *middleware.Context, handler SetFlagEnabledHandler) *SetFlagEnabled
NewSetFlagEnabled creates a new http.Handler for the set flag enabled operation
func (*SetFlagEnabled) ServeHTTP ¶
func (o *SetFlagEnabled) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SetFlagEnabledDefault ¶
type SetFlagEnabledDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SetFlagEnabledDefault generic error response
swagger:response setFlagEnabledDefault
func NewSetFlagEnabledDefault ¶
func NewSetFlagEnabledDefault(code int) *SetFlagEnabledDefault
NewSetFlagEnabledDefault creates SetFlagEnabledDefault with default headers values
func (*SetFlagEnabledDefault) SetPayload ¶
func (o *SetFlagEnabledDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the set flag enabled default response
func (*SetFlagEnabledDefault) SetStatusCode ¶
func (o *SetFlagEnabledDefault) SetStatusCode(code int)
SetStatusCode sets the status to the set flag enabled default response
func (*SetFlagEnabledDefault) WithPayload ¶
func (o *SetFlagEnabledDefault) WithPayload(payload *models.Error) *SetFlagEnabledDefault
WithPayload adds the payload to the set flag enabled default response
func (*SetFlagEnabledDefault) WithStatusCode ¶
func (o *SetFlagEnabledDefault) WithStatusCode(code int) *SetFlagEnabledDefault
WithStatusCode adds the status to the set flag enabled default response
func (*SetFlagEnabledDefault) WriteResponse ¶
func (o *SetFlagEnabledDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetFlagEnabledHandler ¶
type SetFlagEnabledHandler interface {
Handle(SetFlagEnabledParams) middleware.Responder
}
SetFlagEnabledHandler interface for that can handle valid set flag enabled params
type SetFlagEnabledHandlerFunc ¶
type SetFlagEnabledHandlerFunc func(SetFlagEnabledParams) middleware.Responder
SetFlagEnabledHandlerFunc turns a function with the right signature into a set flag enabled handler
func (SetFlagEnabledHandlerFunc) Handle ¶
func (fn SetFlagEnabledHandlerFunc) Handle(params SetFlagEnabledParams) middleware.Responder
Handle executing the request and returning a response
type SetFlagEnabledOK ¶
SetFlagEnabledOK returns the flag
swagger:response setFlagEnabledOK
func NewSetFlagEnabledOK ¶
func NewSetFlagEnabledOK() *SetFlagEnabledOK
NewSetFlagEnabledOK creates SetFlagEnabledOK with default headers values
func (*SetFlagEnabledOK) SetPayload ¶
func (o *SetFlagEnabledOK) SetPayload(payload *models.Flag)
SetPayload sets the payload to the set flag enabled o k response
func (*SetFlagEnabledOK) WithPayload ¶
func (o *SetFlagEnabledOK) WithPayload(payload *models.Flag) *SetFlagEnabledOK
WithPayload adds the payload to the set flag enabled o k response
func (*SetFlagEnabledOK) WriteResponse ¶
func (o *SetFlagEnabledOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetFlagEnabledParams ¶
type SetFlagEnabledParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*set flag enabled state Required: true In: body */ Body *models.SetFlagEnabledRequest /*numeric ID of the flag to get Required: true Minimum: 1 In: path */ FlagID int64 }
SetFlagEnabledParams contains all the bound params for the set flag enabled operation typically these are obtained from a http.Request
swagger:parameters setFlagEnabled
func NewSetFlagEnabledParams ¶
func NewSetFlagEnabledParams() SetFlagEnabledParams
NewSetFlagEnabledParams creates a new SetFlagEnabledParams object
There are no default values defined in the spec.
func (*SetFlagEnabledParams) BindRequest ¶
func (o *SetFlagEnabledParams) 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 NewSetFlagEnabledParams() beforehand.
type SetFlagEnabledURL ¶
type SetFlagEnabledURL struct { FlagID int64 // contains filtered or unexported fields }
SetFlagEnabledURL generates an URL for the set flag enabled operation
func (*SetFlagEnabledURL) Build ¶
func (o *SetFlagEnabledURL) Build() (*url.URL, error)
Build a url path and query string
func (*SetFlagEnabledURL) BuildFull ¶
func (o *SetFlagEnabledURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SetFlagEnabledURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SetFlagEnabledURL) SetBasePath ¶
func (o *SetFlagEnabledURL) 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 (*SetFlagEnabledURL) String ¶
func (o *SetFlagEnabledURL) String() string
String returns the string representation of the path with query string
func (*SetFlagEnabledURL) StringFull ¶
func (o *SetFlagEnabledURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SetFlagEnabledURL) WithBasePath ¶
func (o *SetFlagEnabledURL) WithBasePath(bp string) *SetFlagEnabledURL
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
Source Files ¶
- create_flag.go
- create_flag_parameters.go
- create_flag_responses.go
- create_flag_urlbuilder.go
- delete_flag.go
- delete_flag_parameters.go
- delete_flag_responses.go
- delete_flag_urlbuilder.go
- find_flags.go
- find_flags_parameters.go
- find_flags_responses.go
- find_flags_urlbuilder.go
- get_flag.go
- get_flag_entity_types.go
- get_flag_entity_types_parameters.go
- get_flag_entity_types_responses.go
- get_flag_entity_types_urlbuilder.go
- get_flag_parameters.go
- get_flag_responses.go
- get_flag_snapshots.go
- get_flag_snapshots_parameters.go
- get_flag_snapshots_responses.go
- get_flag_snapshots_urlbuilder.go
- get_flag_urlbuilder.go
- put_flag.go
- put_flag_parameters.go
- put_flag_responses.go
- put_flag_urlbuilder.go
- restore_flag.go
- restore_flag_parameters.go
- restore_flag_responses.go
- restore_flag_urlbuilder.go
- set_flag_enabled.go
- set_flag_enabled_parameters.go
- set_flag_enabled_responses.go
- set_flag_enabled_urlbuilder.go