Documentation ¶
Index ¶
- Constants
- type CreateConstraint
- type CreateConstraintDefault
- func (o *CreateConstraintDefault) SetPayload(payload *models.Error)
- func (o *CreateConstraintDefault) SetStatusCode(code int)
- func (o *CreateConstraintDefault) WithPayload(payload *models.Error) *CreateConstraintDefault
- func (o *CreateConstraintDefault) WithStatusCode(code int) *CreateConstraintDefault
- func (o *CreateConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateConstraintHandler
- type CreateConstraintHandlerFunc
- type CreateConstraintOK
- type CreateConstraintParams
- type CreateConstraintURL
- func (o *CreateConstraintURL) Build() (*url.URL, error)
- func (o *CreateConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateConstraintURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateConstraintURL) SetBasePath(bp string)
- func (o *CreateConstraintURL) String() string
- func (o *CreateConstraintURL) StringFull(scheme, host string) string
- func (o *CreateConstraintURL) WithBasePath(bp string) *CreateConstraintURL
- type DeleteConstraint
- type DeleteConstraintDefault
- func (o *DeleteConstraintDefault) SetPayload(payload *models.Error)
- func (o *DeleteConstraintDefault) SetStatusCode(code int)
- func (o *DeleteConstraintDefault) WithPayload(payload *models.Error) *DeleteConstraintDefault
- func (o *DeleteConstraintDefault) WithStatusCode(code int) *DeleteConstraintDefault
- func (o *DeleteConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteConstraintHandler
- type DeleteConstraintHandlerFunc
- type DeleteConstraintOK
- type DeleteConstraintParams
- type DeleteConstraintURL
- func (o *DeleteConstraintURL) Build() (*url.URL, error)
- func (o *DeleteConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteConstraintURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteConstraintURL) SetBasePath(bp string)
- func (o *DeleteConstraintURL) String() string
- func (o *DeleteConstraintURL) StringFull(scheme, host string) string
- func (o *DeleteConstraintURL) WithBasePath(bp string) *DeleteConstraintURL
- type FindConstraints
- type FindConstraintsDefault
- func (o *FindConstraintsDefault) SetPayload(payload *models.Error)
- func (o *FindConstraintsDefault) SetStatusCode(code int)
- func (o *FindConstraintsDefault) WithPayload(payload *models.Error) *FindConstraintsDefault
- func (o *FindConstraintsDefault) WithStatusCode(code int) *FindConstraintsDefault
- func (o *FindConstraintsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindConstraintsHandler
- type FindConstraintsHandlerFunc
- type FindConstraintsOK
- type FindConstraintsParams
- type FindConstraintsURL
- func (o *FindConstraintsURL) Build() (*url.URL, error)
- func (o *FindConstraintsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FindConstraintsURL) Must(u *url.URL, err error) *url.URL
- func (o *FindConstraintsURL) SetBasePath(bp string)
- func (o *FindConstraintsURL) String() string
- func (o *FindConstraintsURL) StringFull(scheme, host string) string
- func (o *FindConstraintsURL) WithBasePath(bp string) *FindConstraintsURL
- type PutConstraint
- type PutConstraintDefault
- func (o *PutConstraintDefault) SetPayload(payload *models.Error)
- func (o *PutConstraintDefault) SetStatusCode(code int)
- func (o *PutConstraintDefault) WithPayload(payload *models.Error) *PutConstraintDefault
- func (o *PutConstraintDefault) WithStatusCode(code int) *PutConstraintDefault
- func (o *PutConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutConstraintHandler
- type PutConstraintHandlerFunc
- type PutConstraintOK
- type PutConstraintParams
- type PutConstraintURL
- func (o *PutConstraintURL) Build() (*url.URL, error)
- func (o *PutConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutConstraintURL) Must(u *url.URL, err error) *url.URL
- func (o *PutConstraintURL) SetBasePath(bp string)
- func (o *PutConstraintURL) String() string
- func (o *PutConstraintURL) StringFull(scheme, host string) string
- func (o *PutConstraintURL) WithBasePath(bp string) *PutConstraintURL
Constants ¶
const CreateConstraintOKCode int = 200
CreateConstraintOKCode is the HTTP code returned for type CreateConstraintOK
const DeleteConstraintOKCode int = 200
DeleteConstraintOKCode is the HTTP code returned for type DeleteConstraintOK
const FindConstraintsOKCode int = 200
FindConstraintsOKCode is the HTTP code returned for type FindConstraintsOK
const PutConstraintOKCode int = 200
PutConstraintOKCode is the HTTP code returned for type PutConstraintOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateConstraint ¶
type CreateConstraint struct { Context *middleware.Context Handler CreateConstraintHandler }
CreateConstraint swagger:route POST /flags/{flagID}/segments/{segmentID}/constraints constraint createConstraint
CreateConstraint create constraint API
func NewCreateConstraint ¶
func NewCreateConstraint(ctx *middleware.Context, handler CreateConstraintHandler) *CreateConstraint
NewCreateConstraint creates a new http.Handler for the create constraint operation
func (*CreateConstraint) ServeHTTP ¶
func (o *CreateConstraint) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateConstraintDefault ¶
type CreateConstraintDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateConstraintDefault generic error response
swagger:response createConstraintDefault
func NewCreateConstraintDefault ¶
func NewCreateConstraintDefault(code int) *CreateConstraintDefault
NewCreateConstraintDefault creates CreateConstraintDefault with default headers values
func (*CreateConstraintDefault) SetPayload ¶
func (o *CreateConstraintDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create constraint default response
func (*CreateConstraintDefault) SetStatusCode ¶
func (o *CreateConstraintDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create constraint default response
func (*CreateConstraintDefault) WithPayload ¶
func (o *CreateConstraintDefault) WithPayload(payload *models.Error) *CreateConstraintDefault
WithPayload adds the payload to the create constraint default response
func (*CreateConstraintDefault) WithStatusCode ¶
func (o *CreateConstraintDefault) WithStatusCode(code int) *CreateConstraintDefault
WithStatusCode adds the status to the create constraint default response
func (*CreateConstraintDefault) WriteResponse ¶
func (o *CreateConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConstraintHandler ¶
type CreateConstraintHandler interface {
Handle(CreateConstraintParams) middleware.Responder
}
CreateConstraintHandler interface for that can handle valid create constraint params
type CreateConstraintHandlerFunc ¶
type CreateConstraintHandlerFunc func(CreateConstraintParams) middleware.Responder
CreateConstraintHandlerFunc turns a function with the right signature into a create constraint handler
func (CreateConstraintHandlerFunc) Handle ¶
func (fn CreateConstraintHandlerFunc) Handle(params CreateConstraintParams) middleware.Responder
Handle executing the request and returning a response
type CreateConstraintOK ¶
type CreateConstraintOK struct { /* In: Body */ Payload *models.Constraint `json:"body,omitempty"` }
CreateConstraintOK the constraint created
swagger:response createConstraintOK
func NewCreateConstraintOK ¶
func NewCreateConstraintOK() *CreateConstraintOK
NewCreateConstraintOK creates CreateConstraintOK with default headers values
func (*CreateConstraintOK) SetPayload ¶
func (o *CreateConstraintOK) SetPayload(payload *models.Constraint)
SetPayload sets the payload to the create constraint o k response
func (*CreateConstraintOK) WithPayload ¶
func (o *CreateConstraintOK) WithPayload(payload *models.Constraint) *CreateConstraintOK
WithPayload adds the payload to the create constraint o k response
func (*CreateConstraintOK) WriteResponse ¶
func (o *CreateConstraintOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConstraintParams ¶
type CreateConstraintParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*create a constraint Required: true In: body */ Body *models.CreateConstraintRequest /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the segment Required: true Minimum: 1 In: path */ SegmentID int64 }
CreateConstraintParams contains all the bound params for the create constraint operation typically these are obtained from a http.Request
swagger:parameters createConstraint
func NewCreateConstraintParams ¶
func NewCreateConstraintParams() CreateConstraintParams
NewCreateConstraintParams creates a new CreateConstraintParams object no default values defined in spec.
func (*CreateConstraintParams) BindRequest ¶
func (o *CreateConstraintParams) 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 NewCreateConstraintParams() beforehand.
type CreateConstraintURL ¶
type CreateConstraintURL struct { FlagID int64 SegmentID int64 // contains filtered or unexported fields }
CreateConstraintURL generates an URL for the create constraint operation
func (*CreateConstraintURL) Build ¶
func (o *CreateConstraintURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateConstraintURL) BuildFull ¶
func (o *CreateConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateConstraintURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateConstraintURL) SetBasePath ¶
func (o *CreateConstraintURL) 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 (*CreateConstraintURL) String ¶
func (o *CreateConstraintURL) String() string
String returns the string representation of the path with query string
func (*CreateConstraintURL) StringFull ¶
func (o *CreateConstraintURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateConstraintURL) WithBasePath ¶
func (o *CreateConstraintURL) WithBasePath(bp string) *CreateConstraintURL
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 DeleteConstraint ¶
type DeleteConstraint struct { Context *middleware.Context Handler DeleteConstraintHandler }
DeleteConstraint swagger:route DELETE /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} constraint deleteConstraint
DeleteConstraint delete constraint API
func NewDeleteConstraint ¶
func NewDeleteConstraint(ctx *middleware.Context, handler DeleteConstraintHandler) *DeleteConstraint
NewDeleteConstraint creates a new http.Handler for the delete constraint operation
func (*DeleteConstraint) ServeHTTP ¶
func (o *DeleteConstraint) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteConstraintDefault ¶
type DeleteConstraintDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteConstraintDefault generic error response
swagger:response deleteConstraintDefault
func NewDeleteConstraintDefault ¶
func NewDeleteConstraintDefault(code int) *DeleteConstraintDefault
NewDeleteConstraintDefault creates DeleteConstraintDefault with default headers values
func (*DeleteConstraintDefault) SetPayload ¶
func (o *DeleteConstraintDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete constraint default response
func (*DeleteConstraintDefault) SetStatusCode ¶
func (o *DeleteConstraintDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete constraint default response
func (*DeleteConstraintDefault) WithPayload ¶
func (o *DeleteConstraintDefault) WithPayload(payload *models.Error) *DeleteConstraintDefault
WithPayload adds the payload to the delete constraint default response
func (*DeleteConstraintDefault) WithStatusCode ¶
func (o *DeleteConstraintDefault) WithStatusCode(code int) *DeleteConstraintDefault
WithStatusCode adds the status to the delete constraint default response
func (*DeleteConstraintDefault) WriteResponse ¶
func (o *DeleteConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConstraintHandler ¶
type DeleteConstraintHandler interface {
Handle(DeleteConstraintParams) middleware.Responder
}
DeleteConstraintHandler interface for that can handle valid delete constraint params
type DeleteConstraintHandlerFunc ¶
type DeleteConstraintHandlerFunc func(DeleteConstraintParams) middleware.Responder
DeleteConstraintHandlerFunc turns a function with the right signature into a delete constraint handler
func (DeleteConstraintHandlerFunc) Handle ¶
func (fn DeleteConstraintHandlerFunc) Handle(params DeleteConstraintParams) middleware.Responder
Handle executing the request and returning a response
type DeleteConstraintOK ¶
type DeleteConstraintOK struct { }
DeleteConstraintOK deleted
swagger:response deleteConstraintOK
func NewDeleteConstraintOK ¶
func NewDeleteConstraintOK() *DeleteConstraintOK
NewDeleteConstraintOK creates DeleteConstraintOK with default headers values
func (*DeleteConstraintOK) WriteResponse ¶
func (o *DeleteConstraintOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConstraintParams ¶
type DeleteConstraintParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the constraint Required: true Minimum: 1 In: path */ ConstraintID int64 /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the segment Required: true Minimum: 1 In: path */ SegmentID int64 }
DeleteConstraintParams contains all the bound params for the delete constraint operation typically these are obtained from a http.Request
swagger:parameters deleteConstraint
func NewDeleteConstraintParams ¶
func NewDeleteConstraintParams() DeleteConstraintParams
NewDeleteConstraintParams creates a new DeleteConstraintParams object no default values defined in spec.
func (*DeleteConstraintParams) BindRequest ¶
func (o *DeleteConstraintParams) 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 NewDeleteConstraintParams() beforehand.
type DeleteConstraintURL ¶
type DeleteConstraintURL struct { ConstraintID int64 FlagID int64 SegmentID int64 // contains filtered or unexported fields }
DeleteConstraintURL generates an URL for the delete constraint operation
func (*DeleteConstraintURL) Build ¶
func (o *DeleteConstraintURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteConstraintURL) BuildFull ¶
func (o *DeleteConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteConstraintURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteConstraintURL) SetBasePath ¶
func (o *DeleteConstraintURL) 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 (*DeleteConstraintURL) String ¶
func (o *DeleteConstraintURL) String() string
String returns the string representation of the path with query string
func (*DeleteConstraintURL) StringFull ¶
func (o *DeleteConstraintURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteConstraintURL) WithBasePath ¶
func (o *DeleteConstraintURL) WithBasePath(bp string) *DeleteConstraintURL
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 FindConstraints ¶
type FindConstraints struct { Context *middleware.Context Handler FindConstraintsHandler }
FindConstraints swagger:route GET /flags/{flagID}/segments/{segmentID}/constraints constraint findConstraints
FindConstraints find constraints API
func NewFindConstraints ¶
func NewFindConstraints(ctx *middleware.Context, handler FindConstraintsHandler) *FindConstraints
NewFindConstraints creates a new http.Handler for the find constraints operation
func (*FindConstraints) ServeHTTP ¶
func (o *FindConstraints) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type FindConstraintsDefault ¶
type FindConstraintsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
FindConstraintsDefault generic error response
swagger:response findConstraintsDefault
func NewFindConstraintsDefault ¶
func NewFindConstraintsDefault(code int) *FindConstraintsDefault
NewFindConstraintsDefault creates FindConstraintsDefault with default headers values
func (*FindConstraintsDefault) SetPayload ¶
func (o *FindConstraintsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the find constraints default response
func (*FindConstraintsDefault) SetStatusCode ¶
func (o *FindConstraintsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the find constraints default response
func (*FindConstraintsDefault) WithPayload ¶
func (o *FindConstraintsDefault) WithPayload(payload *models.Error) *FindConstraintsDefault
WithPayload adds the payload to the find constraints default response
func (*FindConstraintsDefault) WithStatusCode ¶
func (o *FindConstraintsDefault) WithStatusCode(code int) *FindConstraintsDefault
WithStatusCode adds the status to the find constraints default response
func (*FindConstraintsDefault) WriteResponse ¶
func (o *FindConstraintsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindConstraintsHandler ¶
type FindConstraintsHandler interface {
Handle(FindConstraintsParams) middleware.Responder
}
FindConstraintsHandler interface for that can handle valid find constraints params
type FindConstraintsHandlerFunc ¶
type FindConstraintsHandlerFunc func(FindConstraintsParams) middleware.Responder
FindConstraintsHandlerFunc turns a function with the right signature into a find constraints handler
func (FindConstraintsHandlerFunc) Handle ¶
func (fn FindConstraintsHandlerFunc) Handle(params FindConstraintsParams) middleware.Responder
Handle executing the request and returning a response
type FindConstraintsOK ¶
type FindConstraintsOK struct { /* In: Body */ Payload []*models.Constraint `json:"body,omitempty"` }
FindConstraintsOK constraints under the segment
swagger:response findConstraintsOK
func NewFindConstraintsOK ¶
func NewFindConstraintsOK() *FindConstraintsOK
NewFindConstraintsOK creates FindConstraintsOK with default headers values
func (*FindConstraintsOK) SetPayload ¶
func (o *FindConstraintsOK) SetPayload(payload []*models.Constraint)
SetPayload sets the payload to the find constraints o k response
func (*FindConstraintsOK) WithPayload ¶
func (o *FindConstraintsOK) WithPayload(payload []*models.Constraint) *FindConstraintsOK
WithPayload adds the payload to the find constraints o k response
func (*FindConstraintsOK) WriteResponse ¶
func (o *FindConstraintsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindConstraintsParams ¶
type FindConstraintsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the segment Required: true Minimum: 1 In: path */ SegmentID int64 }
FindConstraintsParams contains all the bound params for the find constraints operation typically these are obtained from a http.Request
swagger:parameters findConstraints
func NewFindConstraintsParams ¶
func NewFindConstraintsParams() FindConstraintsParams
NewFindConstraintsParams creates a new FindConstraintsParams object no default values defined in spec.
func (*FindConstraintsParams) BindRequest ¶
func (o *FindConstraintsParams) 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 NewFindConstraintsParams() beforehand.
type FindConstraintsURL ¶
type FindConstraintsURL struct { FlagID int64 SegmentID int64 // contains filtered or unexported fields }
FindConstraintsURL generates an URL for the find constraints operation
func (*FindConstraintsURL) Build ¶
func (o *FindConstraintsURL) Build() (*url.URL, error)
Build a url path and query string
func (*FindConstraintsURL) BuildFull ¶
func (o *FindConstraintsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*FindConstraintsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*FindConstraintsURL) SetBasePath ¶
func (o *FindConstraintsURL) 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 (*FindConstraintsURL) String ¶
func (o *FindConstraintsURL) String() string
String returns the string representation of the path with query string
func (*FindConstraintsURL) StringFull ¶
func (o *FindConstraintsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*FindConstraintsURL) WithBasePath ¶
func (o *FindConstraintsURL) WithBasePath(bp string) *FindConstraintsURL
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 PutConstraint ¶
type PutConstraint struct { Context *middleware.Context Handler PutConstraintHandler }
PutConstraint swagger:route PUT /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} constraint putConstraint
PutConstraint put constraint API
func NewPutConstraint ¶
func NewPutConstraint(ctx *middleware.Context, handler PutConstraintHandler) *PutConstraint
NewPutConstraint creates a new http.Handler for the put constraint operation
func (*PutConstraint) ServeHTTP ¶
func (o *PutConstraint) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutConstraintDefault ¶
type PutConstraintDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutConstraintDefault generic error response
swagger:response putConstraintDefault
func NewPutConstraintDefault ¶
func NewPutConstraintDefault(code int) *PutConstraintDefault
NewPutConstraintDefault creates PutConstraintDefault with default headers values
func (*PutConstraintDefault) SetPayload ¶
func (o *PutConstraintDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put constraint default response
func (*PutConstraintDefault) SetStatusCode ¶
func (o *PutConstraintDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put constraint default response
func (*PutConstraintDefault) WithPayload ¶
func (o *PutConstraintDefault) WithPayload(payload *models.Error) *PutConstraintDefault
WithPayload adds the payload to the put constraint default response
func (*PutConstraintDefault) WithStatusCode ¶
func (o *PutConstraintDefault) WithStatusCode(code int) *PutConstraintDefault
WithStatusCode adds the status to the put constraint default response
func (*PutConstraintDefault) WriteResponse ¶
func (o *PutConstraintDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutConstraintHandler ¶
type PutConstraintHandler interface {
Handle(PutConstraintParams) middleware.Responder
}
PutConstraintHandler interface for that can handle valid put constraint params
type PutConstraintHandlerFunc ¶
type PutConstraintHandlerFunc func(PutConstraintParams) middleware.Responder
PutConstraintHandlerFunc turns a function with the right signature into a put constraint handler
func (PutConstraintHandlerFunc) Handle ¶
func (fn PutConstraintHandlerFunc) Handle(params PutConstraintParams) middleware.Responder
Handle executing the request and returning a response
type PutConstraintOK ¶
type PutConstraintOK struct { /* In: Body */ Payload *models.Constraint `json:"body,omitempty"` }
PutConstraintOK constraint just updated
swagger:response putConstraintOK
func NewPutConstraintOK ¶
func NewPutConstraintOK() *PutConstraintOK
NewPutConstraintOK creates PutConstraintOK with default headers values
func (*PutConstraintOK) SetPayload ¶
func (o *PutConstraintOK) SetPayload(payload *models.Constraint)
SetPayload sets the payload to the put constraint o k response
func (*PutConstraintOK) WithPayload ¶
func (o *PutConstraintOK) WithPayload(payload *models.Constraint) *PutConstraintOK
WithPayload adds the payload to the put constraint o k response
func (*PutConstraintOK) WriteResponse ¶
func (o *PutConstraintOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutConstraintParams ¶
type PutConstraintParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*create a constraint Required: true In: body */ Body *models.CreateConstraintRequest /*numeric ID of the constraint Required: true Minimum: 1 In: path */ ConstraintID int64 /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the segment Required: true Minimum: 1 In: path */ SegmentID int64 }
PutConstraintParams contains all the bound params for the put constraint operation typically these are obtained from a http.Request
swagger:parameters putConstraint
func NewPutConstraintParams ¶
func NewPutConstraintParams() PutConstraintParams
NewPutConstraintParams creates a new PutConstraintParams object no default values defined in spec.
func (*PutConstraintParams) BindRequest ¶
func (o *PutConstraintParams) 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 NewPutConstraintParams() beforehand.
type PutConstraintURL ¶
type PutConstraintURL struct { ConstraintID int64 FlagID int64 SegmentID int64 // contains filtered or unexported fields }
PutConstraintURL generates an URL for the put constraint operation
func (*PutConstraintURL) Build ¶
func (o *PutConstraintURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutConstraintURL) BuildFull ¶
func (o *PutConstraintURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutConstraintURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutConstraintURL) SetBasePath ¶
func (o *PutConstraintURL) 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 (*PutConstraintURL) String ¶
func (o *PutConstraintURL) String() string
String returns the string representation of the path with query string
func (*PutConstraintURL) StringFull ¶
func (o *PutConstraintURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutConstraintURL) WithBasePath ¶
func (o *PutConstraintURL) WithBasePath(bp string) *PutConstraintURL
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_constraint.go
- create_constraint_parameters.go
- create_constraint_responses.go
- create_constraint_urlbuilder.go
- delete_constraint.go
- delete_constraint_parameters.go
- delete_constraint_responses.go
- delete_constraint_urlbuilder.go
- find_constraints.go
- find_constraints_parameters.go
- find_constraints_responses.go
- find_constraints_urlbuilder.go
- put_constraint.go
- put_constraint_parameters.go
- put_constraint_responses.go
- put_constraint_urlbuilder.go