Documentation
¶
Index ¶
- Constants
- type CreateStickRule
- type CreateStickRuleAccepted
- func (o *CreateStickRuleAccepted) SetPayload(payload *models.StickRule)
- func (o *CreateStickRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateStickRuleAccepted) WithPayload(payload *models.StickRule) *CreateStickRuleAccepted
- func (o *CreateStickRuleAccepted) WithReloadID(reloadID string) *CreateStickRuleAccepted
- func (o *CreateStickRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateStickRuleBadRequest
- func (o *CreateStickRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateStickRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateStickRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleBadRequest
- func (o *CreateStickRuleBadRequest) WithPayload(payload *models.Error) *CreateStickRuleBadRequest
- func (o *CreateStickRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateStickRuleConflict
- func (o *CreateStickRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateStickRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateStickRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleConflict
- func (o *CreateStickRuleConflict) WithPayload(payload *models.Error) *CreateStickRuleConflict
- func (o *CreateStickRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateStickRuleCreated
- type CreateStickRuleDefault
- func (o *CreateStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateStickRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateStickRuleDefault) SetStatusCode(code int)
- func (o *CreateStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleDefault
- func (o *CreateStickRuleDefault) WithPayload(payload *models.Error) *CreateStickRuleDefault
- func (o *CreateStickRuleDefault) WithStatusCode(code int) *CreateStickRuleDefault
- func (o *CreateStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateStickRuleHandler
- type CreateStickRuleHandlerFunc
- type CreateStickRuleParams
- type CreateStickRuleURL
- func (o *CreateStickRuleURL) Build() (*url.URL, error)
- func (o *CreateStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateStickRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateStickRuleURL) SetBasePath(bp string)
- func (o *CreateStickRuleURL) String() string
- func (o *CreateStickRuleURL) StringFull(scheme, host string) string
- func (o *CreateStickRuleURL) WithBasePath(bp string) *CreateStickRuleURL
- type DeleteStickRule
- type DeleteStickRuleAccepted
- type DeleteStickRuleDefault
- func (o *DeleteStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteStickRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteStickRuleDefault) SetStatusCode(code int)
- func (o *DeleteStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteStickRuleDefault
- func (o *DeleteStickRuleDefault) WithPayload(payload *models.Error) *DeleteStickRuleDefault
- func (o *DeleteStickRuleDefault) WithStatusCode(code int) *DeleteStickRuleDefault
- func (o *DeleteStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteStickRuleHandler
- type DeleteStickRuleHandlerFunc
- type DeleteStickRuleNoContent
- type DeleteStickRuleNotFound
- func (o *DeleteStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteStickRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteStickRuleNotFound
- func (o *DeleteStickRuleNotFound) WithPayload(payload *models.Error) *DeleteStickRuleNotFound
- func (o *DeleteStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteStickRuleParams
- type DeleteStickRuleURL
- func (o *DeleteStickRuleURL) Build() (*url.URL, error)
- func (o *DeleteStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteStickRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteStickRuleURL) SetBasePath(bp string)
- func (o *DeleteStickRuleURL) String() string
- func (o *DeleteStickRuleURL) StringFull(scheme, host string) string
- func (o *DeleteStickRuleURL) WithBasePath(bp string) *DeleteStickRuleURL
- type GetStickRule
- type GetStickRuleDefault
- func (o *GetStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStickRuleDefault) SetPayload(payload *models.Error)
- func (o *GetStickRuleDefault) SetStatusCode(code int)
- func (o *GetStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetStickRuleDefault
- func (o *GetStickRuleDefault) WithPayload(payload *models.Error) *GetStickRuleDefault
- func (o *GetStickRuleDefault) WithStatusCode(code int) *GetStickRuleDefault
- func (o *GetStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStickRuleHandler
- type GetStickRuleHandlerFunc
- type GetStickRuleNotFound
- func (o *GetStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStickRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetStickRuleNotFound
- func (o *GetStickRuleNotFound) WithPayload(payload *models.Error) *GetStickRuleNotFound
- func (o *GetStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStickRuleOK
- func (o *GetStickRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStickRuleOK) SetPayload(payload *GetStickRuleOKBody)
- func (o *GetStickRuleOK) WithConfigurationVersion(configurationVersion int64) *GetStickRuleOK
- func (o *GetStickRuleOK) WithPayload(payload *GetStickRuleOKBody) *GetStickRuleOK
- func (o *GetStickRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStickRuleOKBody
- type GetStickRuleParams
- type GetStickRuleURL
- func (o *GetStickRuleURL) Build() (*url.URL, error)
- func (o *GetStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStickRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStickRuleURL) SetBasePath(bp string)
- func (o *GetStickRuleURL) String() string
- func (o *GetStickRuleURL) StringFull(scheme, host string) string
- func (o *GetStickRuleURL) WithBasePath(bp string) *GetStickRuleURL
- type GetStickRules
- type GetStickRulesDefault
- func (o *GetStickRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStickRulesDefault) SetPayload(payload *models.Error)
- func (o *GetStickRulesDefault) SetStatusCode(code int)
- func (o *GetStickRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetStickRulesDefault
- func (o *GetStickRulesDefault) WithPayload(payload *models.Error) *GetStickRulesDefault
- func (o *GetStickRulesDefault) WithStatusCode(code int) *GetStickRulesDefault
- func (o *GetStickRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStickRulesHandler
- type GetStickRulesHandlerFunc
- type GetStickRulesOK
- func (o *GetStickRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStickRulesOK) SetPayload(payload *GetStickRulesOKBody)
- func (o *GetStickRulesOK) WithConfigurationVersion(configurationVersion int64) *GetStickRulesOK
- func (o *GetStickRulesOK) WithPayload(payload *GetStickRulesOKBody) *GetStickRulesOK
- func (o *GetStickRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStickRulesOKBody
- type GetStickRulesParams
- type GetStickRulesURL
- func (o *GetStickRulesURL) Build() (*url.URL, error)
- func (o *GetStickRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStickRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStickRulesURL) SetBasePath(bp string)
- func (o *GetStickRulesURL) String() string
- func (o *GetStickRulesURL) StringFull(scheme, host string) string
- func (o *GetStickRulesURL) WithBasePath(bp string) *GetStickRulesURL
- type ReplaceStickRule
- type ReplaceStickRuleAccepted
- func (o *ReplaceStickRuleAccepted) SetPayload(payload *models.StickRule)
- func (o *ReplaceStickRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceStickRuleAccepted) WithPayload(payload *models.StickRule) *ReplaceStickRuleAccepted
- func (o *ReplaceStickRuleAccepted) WithReloadID(reloadID string) *ReplaceStickRuleAccepted
- func (o *ReplaceStickRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceStickRuleBadRequest
- func (o *ReplaceStickRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceStickRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceStickRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleBadRequest
- func (o *ReplaceStickRuleBadRequest) WithPayload(payload *models.Error) *ReplaceStickRuleBadRequest
- func (o *ReplaceStickRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceStickRuleDefault
- func (o *ReplaceStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceStickRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceStickRuleDefault) SetStatusCode(code int)
- func (o *ReplaceStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleDefault
- func (o *ReplaceStickRuleDefault) WithPayload(payload *models.Error) *ReplaceStickRuleDefault
- func (o *ReplaceStickRuleDefault) WithStatusCode(code int) *ReplaceStickRuleDefault
- func (o *ReplaceStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceStickRuleHandler
- type ReplaceStickRuleHandlerFunc
- type ReplaceStickRuleNotFound
- func (o *ReplaceStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceStickRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleNotFound
- func (o *ReplaceStickRuleNotFound) WithPayload(payload *models.Error) *ReplaceStickRuleNotFound
- func (o *ReplaceStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceStickRuleOK
- type ReplaceStickRuleParams
- type ReplaceStickRuleURL
- func (o *ReplaceStickRuleURL) Build() (*url.URL, error)
- func (o *ReplaceStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceStickRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceStickRuleURL) SetBasePath(bp string)
- func (o *ReplaceStickRuleURL) String() string
- func (o *ReplaceStickRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceStickRuleURL) WithBasePath(bp string) *ReplaceStickRuleURL
Constants ¶
const CreateStickRuleAcceptedCode int = 202
CreateStickRuleAcceptedCode is the HTTP code returned for type CreateStickRuleAccepted
const CreateStickRuleBadRequestCode int = 400
CreateStickRuleBadRequestCode is the HTTP code returned for type CreateStickRuleBadRequest
const CreateStickRuleConflictCode int = 409
CreateStickRuleConflictCode is the HTTP code returned for type CreateStickRuleConflict
const CreateStickRuleCreatedCode int = 201
CreateStickRuleCreatedCode is the HTTP code returned for type CreateStickRuleCreated
const DeleteStickRuleAcceptedCode int = 202
DeleteStickRuleAcceptedCode is the HTTP code returned for type DeleteStickRuleAccepted
const DeleteStickRuleNoContentCode int = 204
DeleteStickRuleNoContentCode is the HTTP code returned for type DeleteStickRuleNoContent
const DeleteStickRuleNotFoundCode int = 404
DeleteStickRuleNotFoundCode is the HTTP code returned for type DeleteStickRuleNotFound
const GetStickRuleNotFoundCode int = 404
GetStickRuleNotFoundCode is the HTTP code returned for type GetStickRuleNotFound
const GetStickRuleOKCode int = 200
GetStickRuleOKCode is the HTTP code returned for type GetStickRuleOK
const GetStickRulesOKCode int = 200
GetStickRulesOKCode is the HTTP code returned for type GetStickRulesOK
const ReplaceStickRuleAcceptedCode int = 202
ReplaceStickRuleAcceptedCode is the HTTP code returned for type ReplaceStickRuleAccepted
const ReplaceStickRuleBadRequestCode int = 400
ReplaceStickRuleBadRequestCode is the HTTP code returned for type ReplaceStickRuleBadRequest
const ReplaceStickRuleNotFoundCode int = 404
ReplaceStickRuleNotFoundCode is the HTTP code returned for type ReplaceStickRuleNotFound
const ReplaceStickRuleOKCode int = 200
ReplaceStickRuleOKCode is the HTTP code returned for type ReplaceStickRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateStickRule ¶
type CreateStickRule struct { Context *middleware.Context Handler CreateStickRuleHandler }
CreateStickRule swagger:route POST /services/haproxy/configuration/stick_rules StickRule createStickRule
Add a new Stick Rule ¶
Adds a new Stick Rule of the specified type in the specified backend.
func NewCreateStickRule ¶
func NewCreateStickRule(ctx *middleware.Context, handler CreateStickRuleHandler) *CreateStickRule
NewCreateStickRule creates a new http.Handler for the create stick rule operation
func (*CreateStickRule) ServeHTTP ¶
func (o *CreateStickRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateStickRuleAccepted ¶
type CreateStickRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.StickRule `json:"body,omitempty"` }
CreateStickRuleAccepted Configuration change accepted and reload requested
swagger:response createStickRuleAccepted
func NewCreateStickRuleAccepted ¶
func NewCreateStickRuleAccepted() *CreateStickRuleAccepted
NewCreateStickRuleAccepted creates CreateStickRuleAccepted with default headers values
func (*CreateStickRuleAccepted) SetPayload ¶
func (o *CreateStickRuleAccepted) SetPayload(payload *models.StickRule)
SetPayload sets the payload to the create stick rule accepted response
func (*CreateStickRuleAccepted) SetReloadID ¶
func (o *CreateStickRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create stick rule accepted response
func (*CreateStickRuleAccepted) WithPayload ¶
func (o *CreateStickRuleAccepted) WithPayload(payload *models.StickRule) *CreateStickRuleAccepted
WithPayload adds the payload to the create stick rule accepted response
func (*CreateStickRuleAccepted) WithReloadID ¶
func (o *CreateStickRuleAccepted) WithReloadID(reloadID string) *CreateStickRuleAccepted
WithReloadID adds the reloadId to the create stick rule accepted response
func (*CreateStickRuleAccepted) WriteResponse ¶
func (o *CreateStickRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateStickRuleBadRequest ¶
type CreateStickRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateStickRuleBadRequest Bad request
swagger:response createStickRuleBadRequest
func NewCreateStickRuleBadRequest ¶
func NewCreateStickRuleBadRequest() *CreateStickRuleBadRequest
NewCreateStickRuleBadRequest creates CreateStickRuleBadRequest with default headers values
func (*CreateStickRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create stick rule bad request response
func (*CreateStickRuleBadRequest) SetPayload ¶
func (o *CreateStickRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create stick rule bad request response
func (*CreateStickRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the create stick rule bad request response
func (*CreateStickRuleBadRequest) WithPayload ¶
func (o *CreateStickRuleBadRequest) WithPayload(payload *models.Error) *CreateStickRuleBadRequest
WithPayload adds the payload to the create stick rule bad request response
func (*CreateStickRuleBadRequest) WriteResponse ¶
func (o *CreateStickRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateStickRuleConflict ¶
type CreateStickRuleConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateStickRuleConflict The specified resource already exists
swagger:response createStickRuleConflict
func NewCreateStickRuleConflict ¶
func NewCreateStickRuleConflict() *CreateStickRuleConflict
NewCreateStickRuleConflict creates CreateStickRuleConflict with default headers values
func (*CreateStickRuleConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create stick rule conflict response
func (*CreateStickRuleConflict) SetPayload ¶
func (o *CreateStickRuleConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create stick rule conflict response
func (*CreateStickRuleConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleConflict
WithConfigurationVersion adds the configurationVersion to the create stick rule conflict response
func (*CreateStickRuleConflict) WithPayload ¶
func (o *CreateStickRuleConflict) WithPayload(payload *models.Error) *CreateStickRuleConflict
WithPayload adds the payload to the create stick rule conflict response
func (*CreateStickRuleConflict) WriteResponse ¶
func (o *CreateStickRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateStickRuleCreated ¶
type CreateStickRuleCreated struct { /* In: Body */ Payload *models.StickRule `json:"body,omitempty"` }
CreateStickRuleCreated Stick Rule created
swagger:response createStickRuleCreated
func NewCreateStickRuleCreated ¶
func NewCreateStickRuleCreated() *CreateStickRuleCreated
NewCreateStickRuleCreated creates CreateStickRuleCreated with default headers values
func (*CreateStickRuleCreated) SetPayload ¶
func (o *CreateStickRuleCreated) SetPayload(payload *models.StickRule)
SetPayload sets the payload to the create stick rule created response
func (*CreateStickRuleCreated) WithPayload ¶
func (o *CreateStickRuleCreated) WithPayload(payload *models.StickRule) *CreateStickRuleCreated
WithPayload adds the payload to the create stick rule created response
func (*CreateStickRuleCreated) WriteResponse ¶
func (o *CreateStickRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateStickRuleDefault ¶
type CreateStickRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateStickRuleDefault General Error
swagger:response createStickRuleDefault
func NewCreateStickRuleDefault ¶
func NewCreateStickRuleDefault(code int) *CreateStickRuleDefault
NewCreateStickRuleDefault creates CreateStickRuleDefault with default headers values
func (*CreateStickRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create stick rule default response
func (*CreateStickRuleDefault) SetPayload ¶
func (o *CreateStickRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create stick rule default response
func (*CreateStickRuleDefault) SetStatusCode ¶
func (o *CreateStickRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create stick rule default response
func (*CreateStickRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateStickRuleDefault
WithConfigurationVersion adds the configurationVersion to the create stick rule default response
func (*CreateStickRuleDefault) WithPayload ¶
func (o *CreateStickRuleDefault) WithPayload(payload *models.Error) *CreateStickRuleDefault
WithPayload adds the payload to the create stick rule default response
func (*CreateStickRuleDefault) WithStatusCode ¶
func (o *CreateStickRuleDefault) WithStatusCode(code int) *CreateStickRuleDefault
WithStatusCode adds the status to the create stick rule default response
func (*CreateStickRuleDefault) WriteResponse ¶
func (o *CreateStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateStickRuleHandler ¶
type CreateStickRuleHandler interface {
Handle(CreateStickRuleParams, interface{}) middleware.Responder
}
CreateStickRuleHandler interface for that can handle valid create stick rule params
type CreateStickRuleHandlerFunc ¶
type CreateStickRuleHandlerFunc func(CreateStickRuleParams, interface{}) middleware.Responder
CreateStickRuleHandlerFunc turns a function with the right signature into a create stick rule handler
func (CreateStickRuleHandlerFunc) Handle ¶
func (fn CreateStickRuleHandlerFunc) Handle(params CreateStickRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateStickRuleParams ¶
type CreateStickRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.StickRule /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
CreateStickRuleParams contains all the bound params for the create stick rule operation typically these are obtained from a http.Request
swagger:parameters createStickRule
func NewCreateStickRuleParams ¶
func NewCreateStickRuleParams() CreateStickRuleParams
NewCreateStickRuleParams creates a new CreateStickRuleParams object with the default values initialized.
func (*CreateStickRuleParams) BindRequest ¶
func (o *CreateStickRuleParams) 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 NewCreateStickRuleParams() beforehand.
type CreateStickRuleURL ¶
type CreateStickRuleURL struct { Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateStickRuleURL generates an URL for the create stick rule operation
func (*CreateStickRuleURL) Build ¶
func (o *CreateStickRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateStickRuleURL) BuildFull ¶
func (o *CreateStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateStickRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateStickRuleURL) SetBasePath ¶
func (o *CreateStickRuleURL) 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 (*CreateStickRuleURL) String ¶
func (o *CreateStickRuleURL) String() string
String returns the string representation of the path with query string
func (*CreateStickRuleURL) StringFull ¶
func (o *CreateStickRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateStickRuleURL) WithBasePath ¶
func (o *CreateStickRuleURL) WithBasePath(bp string) *CreateStickRuleURL
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 DeleteStickRule ¶
type DeleteStickRule struct { Context *middleware.Context Handler DeleteStickRuleHandler }
DeleteStickRule swagger:route DELETE /services/haproxy/configuration/stick_rules/{id} StickRule deleteStickRule
Delete a Stick Rule ¶
Deletes a Stick Rule configuration by it's ID from the specified backend.
func NewDeleteStickRule ¶
func NewDeleteStickRule(ctx *middleware.Context, handler DeleteStickRuleHandler) *DeleteStickRule
NewDeleteStickRule creates a new http.Handler for the delete stick rule operation
func (*DeleteStickRule) ServeHTTP ¶
func (o *DeleteStickRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteStickRuleAccepted ¶
type DeleteStickRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteStickRuleAccepted Configuration change accepted and reload requested
swagger:response deleteStickRuleAccepted
func NewDeleteStickRuleAccepted ¶
func NewDeleteStickRuleAccepted() *DeleteStickRuleAccepted
NewDeleteStickRuleAccepted creates DeleteStickRuleAccepted with default headers values
func (*DeleteStickRuleAccepted) SetReloadID ¶
func (o *DeleteStickRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete stick rule accepted response
func (*DeleteStickRuleAccepted) WithReloadID ¶
func (o *DeleteStickRuleAccepted) WithReloadID(reloadID string) *DeleteStickRuleAccepted
WithReloadID adds the reloadId to the delete stick rule accepted response
func (*DeleteStickRuleAccepted) WriteResponse ¶
func (o *DeleteStickRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStickRuleDefault ¶
type DeleteStickRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteStickRuleDefault General Error
swagger:response deleteStickRuleDefault
func NewDeleteStickRuleDefault ¶
func NewDeleteStickRuleDefault(code int) *DeleteStickRuleDefault
NewDeleteStickRuleDefault creates DeleteStickRuleDefault with default headers values
func (*DeleteStickRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete stick rule default response
func (*DeleteStickRuleDefault) SetPayload ¶
func (o *DeleteStickRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete stick rule default response
func (*DeleteStickRuleDefault) SetStatusCode ¶
func (o *DeleteStickRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete stick rule default response
func (*DeleteStickRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteStickRuleDefault
WithConfigurationVersion adds the configurationVersion to the delete stick rule default response
func (*DeleteStickRuleDefault) WithPayload ¶
func (o *DeleteStickRuleDefault) WithPayload(payload *models.Error) *DeleteStickRuleDefault
WithPayload adds the payload to the delete stick rule default response
func (*DeleteStickRuleDefault) WithStatusCode ¶
func (o *DeleteStickRuleDefault) WithStatusCode(code int) *DeleteStickRuleDefault
WithStatusCode adds the status to the delete stick rule default response
func (*DeleteStickRuleDefault) WriteResponse ¶
func (o *DeleteStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStickRuleHandler ¶
type DeleteStickRuleHandler interface {
Handle(DeleteStickRuleParams, interface{}) middleware.Responder
}
DeleteStickRuleHandler interface for that can handle valid delete stick rule params
type DeleteStickRuleHandlerFunc ¶
type DeleteStickRuleHandlerFunc func(DeleteStickRuleParams, interface{}) middleware.Responder
DeleteStickRuleHandlerFunc turns a function with the right signature into a delete stick rule handler
func (DeleteStickRuleHandlerFunc) Handle ¶
func (fn DeleteStickRuleHandlerFunc) Handle(params DeleteStickRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteStickRuleNoContent ¶
type DeleteStickRuleNoContent struct { }
DeleteStickRuleNoContent Stick Rule deleted
swagger:response deleteStickRuleNoContent
func NewDeleteStickRuleNoContent ¶
func NewDeleteStickRuleNoContent() *DeleteStickRuleNoContent
NewDeleteStickRuleNoContent creates DeleteStickRuleNoContent with default headers values
func (*DeleteStickRuleNoContent) WriteResponse ¶
func (o *DeleteStickRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStickRuleNotFound ¶
type DeleteStickRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteStickRuleNotFound The specified resource was not found
swagger:response deleteStickRuleNotFound
func NewDeleteStickRuleNotFound ¶
func NewDeleteStickRuleNotFound() *DeleteStickRuleNotFound
NewDeleteStickRuleNotFound creates DeleteStickRuleNotFound with default headers values
func (*DeleteStickRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete stick rule not found response
func (*DeleteStickRuleNotFound) SetPayload ¶
func (o *DeleteStickRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete stick rule not found response
func (*DeleteStickRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteStickRuleNotFound
WithConfigurationVersion adds the configurationVersion to the delete stick rule not found response
func (*DeleteStickRuleNotFound) WithPayload ¶
func (o *DeleteStickRuleNotFound) WithPayload(payload *models.Error) *DeleteStickRuleNotFound
WithPayload adds the payload to the delete stick rule not found response
func (*DeleteStickRuleNotFound) WriteResponse ¶
func (o *DeleteStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStickRuleParams ¶
type DeleteStickRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: query */ Backend string /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*Stick Rule ID Required: true In: path */ ID int64 /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
DeleteStickRuleParams contains all the bound params for the delete stick rule operation typically these are obtained from a http.Request
swagger:parameters deleteStickRule
func NewDeleteStickRuleParams ¶
func NewDeleteStickRuleParams() DeleteStickRuleParams
NewDeleteStickRuleParams creates a new DeleteStickRuleParams object with the default values initialized.
func (*DeleteStickRuleParams) BindRequest ¶
func (o *DeleteStickRuleParams) 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 NewDeleteStickRuleParams() beforehand.
type DeleteStickRuleURL ¶
type DeleteStickRuleURL struct { ID int64 Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteStickRuleURL generates an URL for the delete stick rule operation
func (*DeleteStickRuleURL) Build ¶
func (o *DeleteStickRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteStickRuleURL) BuildFull ¶
func (o *DeleteStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteStickRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteStickRuleURL) SetBasePath ¶
func (o *DeleteStickRuleURL) 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 (*DeleteStickRuleURL) String ¶
func (o *DeleteStickRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteStickRuleURL) StringFull ¶
func (o *DeleteStickRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteStickRuleURL) WithBasePath ¶
func (o *DeleteStickRuleURL) WithBasePath(bp string) *DeleteStickRuleURL
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 GetStickRule ¶
type GetStickRule struct { Context *middleware.Context Handler GetStickRuleHandler }
GetStickRule swagger:route GET /services/haproxy/configuration/stick_rules/{id} StickRule getStickRule
Return one Stick Rule ¶
Returns one Stick Rule configuration by it's ID in the specified backend.
func NewGetStickRule ¶
func NewGetStickRule(ctx *middleware.Context, handler GetStickRuleHandler) *GetStickRule
NewGetStickRule creates a new http.Handler for the get stick rule operation
func (*GetStickRule) ServeHTTP ¶
func (o *GetStickRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStickRuleDefault ¶
type GetStickRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetStickRuleDefault General Error
swagger:response getStickRuleDefault
func NewGetStickRuleDefault ¶
func NewGetStickRuleDefault(code int) *GetStickRuleDefault
NewGetStickRuleDefault creates GetStickRuleDefault with default headers values
func (*GetStickRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stick rule default response
func (*GetStickRuleDefault) SetPayload ¶
func (o *GetStickRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get stick rule default response
func (*GetStickRuleDefault) SetStatusCode ¶
func (o *GetStickRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get stick rule default response
func (*GetStickRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetStickRuleDefault
WithConfigurationVersion adds the configurationVersion to the get stick rule default response
func (*GetStickRuleDefault) WithPayload ¶
func (o *GetStickRuleDefault) WithPayload(payload *models.Error) *GetStickRuleDefault
WithPayload adds the payload to the get stick rule default response
func (*GetStickRuleDefault) WithStatusCode ¶
func (o *GetStickRuleDefault) WithStatusCode(code int) *GetStickRuleDefault
WithStatusCode adds the status to the get stick rule default response
func (*GetStickRuleDefault) WriteResponse ¶
func (o *GetStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStickRuleHandler ¶
type GetStickRuleHandler interface {
Handle(GetStickRuleParams, interface{}) middleware.Responder
}
GetStickRuleHandler interface for that can handle valid get stick rule params
type GetStickRuleHandlerFunc ¶
type GetStickRuleHandlerFunc func(GetStickRuleParams, interface{}) middleware.Responder
GetStickRuleHandlerFunc turns a function with the right signature into a get stick rule handler
func (GetStickRuleHandlerFunc) Handle ¶
func (fn GetStickRuleHandlerFunc) Handle(params GetStickRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetStickRuleNotFound ¶
type GetStickRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetStickRuleNotFound The specified resource was not found
swagger:response getStickRuleNotFound
func NewGetStickRuleNotFound ¶
func NewGetStickRuleNotFound() *GetStickRuleNotFound
NewGetStickRuleNotFound creates GetStickRuleNotFound with default headers values
func (*GetStickRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stick rule not found response
func (*GetStickRuleNotFound) SetPayload ¶
func (o *GetStickRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get stick rule not found response
func (*GetStickRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetStickRuleNotFound
WithConfigurationVersion adds the configurationVersion to the get stick rule not found response
func (*GetStickRuleNotFound) WithPayload ¶
func (o *GetStickRuleNotFound) WithPayload(payload *models.Error) *GetStickRuleNotFound
WithPayload adds the payload to the get stick rule not found response
func (*GetStickRuleNotFound) WriteResponse ¶
func (o *GetStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStickRuleOK ¶
type GetStickRuleOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetStickRuleOKBody `json:"body,omitempty"` }
GetStickRuleOK Successful operation
swagger:response getStickRuleOK
func NewGetStickRuleOK ¶
func NewGetStickRuleOK() *GetStickRuleOK
NewGetStickRuleOK creates GetStickRuleOK with default headers values
func (*GetStickRuleOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stick rule o k response
func (*GetStickRuleOK) SetPayload ¶
func (o *GetStickRuleOK) SetPayload(payload *GetStickRuleOKBody)
SetPayload sets the payload to the get stick rule o k response
func (*GetStickRuleOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRuleOK) WithConfigurationVersion(configurationVersion int64) *GetStickRuleOK
WithConfigurationVersion adds the configurationVersion to the get stick rule o k response
func (*GetStickRuleOK) WithPayload ¶
func (o *GetStickRuleOK) WithPayload(payload *GetStickRuleOKBody) *GetStickRuleOK
WithPayload adds the payload to the get stick rule o k response
func (*GetStickRuleOK) WriteResponse ¶
func (o *GetStickRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStickRuleOKBody ¶
type GetStickRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.StickRule `json:"data,omitempty"` }
GetStickRuleOKBody get stick rule o k body swagger:model GetStickRuleOKBody
func (*GetStickRuleOKBody) MarshalBinary ¶
func (o *GetStickRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStickRuleOKBody) UnmarshalBinary ¶
func (o *GetStickRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStickRuleParams ¶
type GetStickRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: query */ Backend string /*Stick Rule ID Required: true In: path */ ID int64 /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetStickRuleParams contains all the bound params for the get stick rule operation typically these are obtained from a http.Request
swagger:parameters getStickRule
func NewGetStickRuleParams ¶
func NewGetStickRuleParams() GetStickRuleParams
NewGetStickRuleParams creates a new GetStickRuleParams object no default values defined in spec.
func (*GetStickRuleParams) BindRequest ¶
func (o *GetStickRuleParams) 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 NewGetStickRuleParams() beforehand.
type GetStickRuleURL ¶
type GetStickRuleURL struct { ID int64 Backend string TransactionID *string // contains filtered or unexported fields }
GetStickRuleURL generates an URL for the get stick rule operation
func (*GetStickRuleURL) Build ¶
func (o *GetStickRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStickRuleURL) BuildFull ¶
func (o *GetStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStickRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStickRuleURL) SetBasePath ¶
func (o *GetStickRuleURL) 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 (*GetStickRuleURL) String ¶
func (o *GetStickRuleURL) String() string
String returns the string representation of the path with query string
func (*GetStickRuleURL) StringFull ¶
func (o *GetStickRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStickRuleURL) WithBasePath ¶
func (o *GetStickRuleURL) WithBasePath(bp string) *GetStickRuleURL
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 GetStickRules ¶
type GetStickRules struct { Context *middleware.Context Handler GetStickRulesHandler }
GetStickRules swagger:route GET /services/haproxy/configuration/stick_rules StickRule getStickRules
Return an array of all Stick Rules ¶
Returns all Stick Rules that are configured in specified backend.
func NewGetStickRules ¶
func NewGetStickRules(ctx *middleware.Context, handler GetStickRulesHandler) *GetStickRules
NewGetStickRules creates a new http.Handler for the get stick rules operation
func (*GetStickRules) ServeHTTP ¶
func (o *GetStickRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStickRulesDefault ¶
type GetStickRulesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetStickRulesDefault General Error
swagger:response getStickRulesDefault
func NewGetStickRulesDefault ¶
func NewGetStickRulesDefault(code int) *GetStickRulesDefault
NewGetStickRulesDefault creates GetStickRulesDefault with default headers values
func (*GetStickRulesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRulesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stick rules default response
func (*GetStickRulesDefault) SetPayload ¶
func (o *GetStickRulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get stick rules default response
func (*GetStickRulesDefault) SetStatusCode ¶
func (o *GetStickRulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get stick rules default response
func (*GetStickRulesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetStickRulesDefault
WithConfigurationVersion adds the configurationVersion to the get stick rules default response
func (*GetStickRulesDefault) WithPayload ¶
func (o *GetStickRulesDefault) WithPayload(payload *models.Error) *GetStickRulesDefault
WithPayload adds the payload to the get stick rules default response
func (*GetStickRulesDefault) WithStatusCode ¶
func (o *GetStickRulesDefault) WithStatusCode(code int) *GetStickRulesDefault
WithStatusCode adds the status to the get stick rules default response
func (*GetStickRulesDefault) WriteResponse ¶
func (o *GetStickRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStickRulesHandler ¶
type GetStickRulesHandler interface {
Handle(GetStickRulesParams, interface{}) middleware.Responder
}
GetStickRulesHandler interface for that can handle valid get stick rules params
type GetStickRulesHandlerFunc ¶
type GetStickRulesHandlerFunc func(GetStickRulesParams, interface{}) middleware.Responder
GetStickRulesHandlerFunc turns a function with the right signature into a get stick rules handler
func (GetStickRulesHandlerFunc) Handle ¶
func (fn GetStickRulesHandlerFunc) Handle(params GetStickRulesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetStickRulesOK ¶
type GetStickRulesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetStickRulesOKBody `json:"body,omitempty"` }
GetStickRulesOK Successful operation
swagger:response getStickRulesOK
func NewGetStickRulesOK ¶
func NewGetStickRulesOK() *GetStickRulesOK
NewGetStickRulesOK creates GetStickRulesOK with default headers values
func (*GetStickRulesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRulesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stick rules o k response
func (*GetStickRulesOK) SetPayload ¶
func (o *GetStickRulesOK) SetPayload(payload *GetStickRulesOKBody)
SetPayload sets the payload to the get stick rules o k response
func (*GetStickRulesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStickRulesOK) WithConfigurationVersion(configurationVersion int64) *GetStickRulesOK
WithConfigurationVersion adds the configurationVersion to the get stick rules o k response
func (*GetStickRulesOK) WithPayload ¶
func (o *GetStickRulesOK) WithPayload(payload *GetStickRulesOKBody) *GetStickRulesOK
WithPayload adds the payload to the get stick rules o k response
func (*GetStickRulesOK) WriteResponse ¶
func (o *GetStickRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStickRulesOKBody ¶
type GetStickRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.StickRules `json:"data"` }
GetStickRulesOKBody get stick rules o k body swagger:model GetStickRulesOKBody
func (*GetStickRulesOKBody) MarshalBinary ¶
func (o *GetStickRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStickRulesOKBody) UnmarshalBinary ¶
func (o *GetStickRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStickRulesParams ¶
type GetStickRulesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: query */ Backend string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetStickRulesParams contains all the bound params for the get stick rules operation typically these are obtained from a http.Request
swagger:parameters getStickRules
func NewGetStickRulesParams ¶
func NewGetStickRulesParams() GetStickRulesParams
NewGetStickRulesParams creates a new GetStickRulesParams object no default values defined in spec.
func (*GetStickRulesParams) BindRequest ¶
func (o *GetStickRulesParams) 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 NewGetStickRulesParams() beforehand.
type GetStickRulesURL ¶
type GetStickRulesURL struct { Backend string TransactionID *string // contains filtered or unexported fields }
GetStickRulesURL generates an URL for the get stick rules operation
func (*GetStickRulesURL) Build ¶
func (o *GetStickRulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStickRulesURL) BuildFull ¶
func (o *GetStickRulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStickRulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStickRulesURL) SetBasePath ¶
func (o *GetStickRulesURL) 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 (*GetStickRulesURL) String ¶
func (o *GetStickRulesURL) String() string
String returns the string representation of the path with query string
func (*GetStickRulesURL) StringFull ¶
func (o *GetStickRulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStickRulesURL) WithBasePath ¶
func (o *GetStickRulesURL) WithBasePath(bp string) *GetStickRulesURL
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 ReplaceStickRule ¶
type ReplaceStickRule struct { Context *middleware.Context Handler ReplaceStickRuleHandler }
ReplaceStickRule swagger:route PUT /services/haproxy/configuration/stick_rules/{id} StickRule replaceStickRule
Replace a Stick Rule ¶
Replaces a Stick Rule configuration by it's ID in the specified backend.
func NewReplaceStickRule ¶
func NewReplaceStickRule(ctx *middleware.Context, handler ReplaceStickRuleHandler) *ReplaceStickRule
NewReplaceStickRule creates a new http.Handler for the replace stick rule operation
func (*ReplaceStickRule) ServeHTTP ¶
func (o *ReplaceStickRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceStickRuleAccepted ¶
type ReplaceStickRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.StickRule `json:"body,omitempty"` }
ReplaceStickRuleAccepted Configuration change accepted and reload requested
swagger:response replaceStickRuleAccepted
func NewReplaceStickRuleAccepted ¶
func NewReplaceStickRuleAccepted() *ReplaceStickRuleAccepted
NewReplaceStickRuleAccepted creates ReplaceStickRuleAccepted with default headers values
func (*ReplaceStickRuleAccepted) SetPayload ¶
func (o *ReplaceStickRuleAccepted) SetPayload(payload *models.StickRule)
SetPayload sets the payload to the replace stick rule accepted response
func (*ReplaceStickRuleAccepted) SetReloadID ¶
func (o *ReplaceStickRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace stick rule accepted response
func (*ReplaceStickRuleAccepted) WithPayload ¶
func (o *ReplaceStickRuleAccepted) WithPayload(payload *models.StickRule) *ReplaceStickRuleAccepted
WithPayload adds the payload to the replace stick rule accepted response
func (*ReplaceStickRuleAccepted) WithReloadID ¶
func (o *ReplaceStickRuleAccepted) WithReloadID(reloadID string) *ReplaceStickRuleAccepted
WithReloadID adds the reloadId to the replace stick rule accepted response
func (*ReplaceStickRuleAccepted) WriteResponse ¶
func (o *ReplaceStickRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceStickRuleBadRequest ¶
type ReplaceStickRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceStickRuleBadRequest Bad request
swagger:response replaceStickRuleBadRequest
func NewReplaceStickRuleBadRequest ¶
func NewReplaceStickRuleBadRequest() *ReplaceStickRuleBadRequest
NewReplaceStickRuleBadRequest creates ReplaceStickRuleBadRequest with default headers values
func (*ReplaceStickRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace stick rule bad request response
func (*ReplaceStickRuleBadRequest) SetPayload ¶
func (o *ReplaceStickRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace stick rule bad request response
func (*ReplaceStickRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the replace stick rule bad request response
func (*ReplaceStickRuleBadRequest) WithPayload ¶
func (o *ReplaceStickRuleBadRequest) WithPayload(payload *models.Error) *ReplaceStickRuleBadRequest
WithPayload adds the payload to the replace stick rule bad request response
func (*ReplaceStickRuleBadRequest) WriteResponse ¶
func (o *ReplaceStickRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceStickRuleDefault ¶
type ReplaceStickRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceStickRuleDefault General Error
swagger:response replaceStickRuleDefault
func NewReplaceStickRuleDefault ¶
func NewReplaceStickRuleDefault(code int) *ReplaceStickRuleDefault
NewReplaceStickRuleDefault creates ReplaceStickRuleDefault with default headers values
func (*ReplaceStickRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace stick rule default response
func (*ReplaceStickRuleDefault) SetPayload ¶
func (o *ReplaceStickRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace stick rule default response
func (*ReplaceStickRuleDefault) SetStatusCode ¶
func (o *ReplaceStickRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace stick rule default response
func (*ReplaceStickRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleDefault
WithConfigurationVersion adds the configurationVersion to the replace stick rule default response
func (*ReplaceStickRuleDefault) WithPayload ¶
func (o *ReplaceStickRuleDefault) WithPayload(payload *models.Error) *ReplaceStickRuleDefault
WithPayload adds the payload to the replace stick rule default response
func (*ReplaceStickRuleDefault) WithStatusCode ¶
func (o *ReplaceStickRuleDefault) WithStatusCode(code int) *ReplaceStickRuleDefault
WithStatusCode adds the status to the replace stick rule default response
func (*ReplaceStickRuleDefault) WriteResponse ¶
func (o *ReplaceStickRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceStickRuleHandler ¶
type ReplaceStickRuleHandler interface {
Handle(ReplaceStickRuleParams, interface{}) middleware.Responder
}
ReplaceStickRuleHandler interface for that can handle valid replace stick rule params
type ReplaceStickRuleHandlerFunc ¶
type ReplaceStickRuleHandlerFunc func(ReplaceStickRuleParams, interface{}) middleware.Responder
ReplaceStickRuleHandlerFunc turns a function with the right signature into a replace stick rule handler
func (ReplaceStickRuleHandlerFunc) Handle ¶
func (fn ReplaceStickRuleHandlerFunc) Handle(params ReplaceStickRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceStickRuleNotFound ¶
type ReplaceStickRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceStickRuleNotFound The specified resource was not found
swagger:response replaceStickRuleNotFound
func NewReplaceStickRuleNotFound ¶
func NewReplaceStickRuleNotFound() *ReplaceStickRuleNotFound
NewReplaceStickRuleNotFound creates ReplaceStickRuleNotFound with default headers values
func (*ReplaceStickRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace stick rule not found response
func (*ReplaceStickRuleNotFound) SetPayload ¶
func (o *ReplaceStickRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace stick rule not found response
func (*ReplaceStickRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceStickRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceStickRuleNotFound
WithConfigurationVersion adds the configurationVersion to the replace stick rule not found response
func (*ReplaceStickRuleNotFound) WithPayload ¶
func (o *ReplaceStickRuleNotFound) WithPayload(payload *models.Error) *ReplaceStickRuleNotFound
WithPayload adds the payload to the replace stick rule not found response
func (*ReplaceStickRuleNotFound) WriteResponse ¶
func (o *ReplaceStickRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceStickRuleOK ¶
ReplaceStickRuleOK Stick Rule replaced
swagger:response replaceStickRuleOK
func NewReplaceStickRuleOK ¶
func NewReplaceStickRuleOK() *ReplaceStickRuleOK
NewReplaceStickRuleOK creates ReplaceStickRuleOK with default headers values
func (*ReplaceStickRuleOK) SetPayload ¶
func (o *ReplaceStickRuleOK) SetPayload(payload *models.StickRule)
SetPayload sets the payload to the replace stick rule o k response
func (*ReplaceStickRuleOK) WithPayload ¶
func (o *ReplaceStickRuleOK) WithPayload(payload *models.StickRule) *ReplaceStickRuleOK
WithPayload adds the payload to the replace stick rule o k response
func (*ReplaceStickRuleOK) WriteResponse ¶
func (o *ReplaceStickRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceStickRuleParams ¶
type ReplaceStickRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.StickRule /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*Stick Rule ID Required: true In: path */ ID int64 /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
ReplaceStickRuleParams contains all the bound params for the replace stick rule operation typically these are obtained from a http.Request
swagger:parameters replaceStickRule
func NewReplaceStickRuleParams ¶
func NewReplaceStickRuleParams() ReplaceStickRuleParams
NewReplaceStickRuleParams creates a new ReplaceStickRuleParams object with the default values initialized.
func (*ReplaceStickRuleParams) BindRequest ¶
func (o *ReplaceStickRuleParams) 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 NewReplaceStickRuleParams() beforehand.
type ReplaceStickRuleURL ¶
type ReplaceStickRuleURL struct { ID int64 Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceStickRuleURL generates an URL for the replace stick rule operation
func (*ReplaceStickRuleURL) Build ¶
func (o *ReplaceStickRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceStickRuleURL) BuildFull ¶
func (o *ReplaceStickRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceStickRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceStickRuleURL) SetBasePath ¶
func (o *ReplaceStickRuleURL) 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 (*ReplaceStickRuleURL) String ¶
func (o *ReplaceStickRuleURL) String() string
String returns the string representation of the path with query string
func (*ReplaceStickRuleURL) StringFull ¶
func (o *ReplaceStickRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceStickRuleURL) WithBasePath ¶
func (o *ReplaceStickRuleURL) WithBasePath(bp string) *ReplaceStickRuleURL
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_stick_rule.go
- create_stick_rule_parameters.go
- create_stick_rule_responses.go
- create_stick_rule_urlbuilder.go
- delete_stick_rule.go
- delete_stick_rule_parameters.go
- delete_stick_rule_responses.go
- delete_stick_rule_urlbuilder.go
- get_stick_rule.go
- get_stick_rule_parameters.go
- get_stick_rule_responses.go
- get_stick_rule_urlbuilder.go
- get_stick_rules.go
- get_stick_rules_parameters.go
- get_stick_rules_responses.go
- get_stick_rules_urlbuilder.go
- replace_stick_rule.go
- replace_stick_rule_parameters.go
- replace_stick_rule_responses.go
- replace_stick_rule_urlbuilder.go