Documentation ¶
Index ¶
- Constants
- type CreateBackendSwitchingRule
- type CreateBackendSwitchingRuleAccepted
- func (o *CreateBackendSwitchingRuleAccepted) SetPayload(payload *models.BackendSwitchingRule)
- func (o *CreateBackendSwitchingRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateBackendSwitchingRuleAccepted) WithPayload(payload *models.BackendSwitchingRule) *CreateBackendSwitchingRuleAccepted
- func (o *CreateBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *CreateBackendSwitchingRuleAccepted
- func (o *CreateBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendSwitchingRuleBadRequest
- func (o *CreateBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendSwitchingRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateBackendSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleBadRequest
- func (o *CreateBackendSwitchingRuleBadRequest) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleBadRequest
- func (o *CreateBackendSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendSwitchingRuleConflict
- func (o *CreateBackendSwitchingRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendSwitchingRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateBackendSwitchingRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleConflict
- func (o *CreateBackendSwitchingRuleConflict) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleConflict
- func (o *CreateBackendSwitchingRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendSwitchingRuleCreated
- func (o *CreateBackendSwitchingRuleCreated) SetPayload(payload *models.BackendSwitchingRule)
- func (o *CreateBackendSwitchingRuleCreated) WithPayload(payload *models.BackendSwitchingRule) *CreateBackendSwitchingRuleCreated
- func (o *CreateBackendSwitchingRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendSwitchingRuleDefault
- func (o *CreateBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateBackendSwitchingRuleDefault) SetStatusCode(code int)
- func (o *CreateBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleDefault
- func (o *CreateBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleDefault
- func (o *CreateBackendSwitchingRuleDefault) WithStatusCode(code int) *CreateBackendSwitchingRuleDefault
- func (o *CreateBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendSwitchingRuleHandler
- type CreateBackendSwitchingRuleHandlerFunc
- type CreateBackendSwitchingRuleParams
- type CreateBackendSwitchingRuleURL
- func (o *CreateBackendSwitchingRuleURL) Build() (*url.URL, error)
- func (o *CreateBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateBackendSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateBackendSwitchingRuleURL) SetBasePath(bp string)
- func (o *CreateBackendSwitchingRuleURL) String() string
- func (o *CreateBackendSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *CreateBackendSwitchingRuleURL) WithBasePath(bp string) *CreateBackendSwitchingRuleURL
- type DeleteBackendSwitchingRule
- type DeleteBackendSwitchingRuleAccepted
- type DeleteBackendSwitchingRuleDefault
- func (o *DeleteBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteBackendSwitchingRuleDefault) SetStatusCode(code int)
- func (o *DeleteBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteBackendSwitchingRuleDefault
- func (o *DeleteBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *DeleteBackendSwitchingRuleDefault
- func (o *DeleteBackendSwitchingRuleDefault) WithStatusCode(code int) *DeleteBackendSwitchingRuleDefault
- func (o *DeleteBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteBackendSwitchingRuleHandler
- type DeleteBackendSwitchingRuleHandlerFunc
- type DeleteBackendSwitchingRuleNoContent
- type DeleteBackendSwitchingRuleNotFound
- func (o *DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteBackendSwitchingRuleNotFound
- func (o *DeleteBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteBackendSwitchingRuleNotFound
- func (o *DeleteBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteBackendSwitchingRuleParams
- type DeleteBackendSwitchingRuleURL
- func (o *DeleteBackendSwitchingRuleURL) Build() (*url.URL, error)
- func (o *DeleteBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteBackendSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteBackendSwitchingRuleURL) SetBasePath(bp string)
- func (o *DeleteBackendSwitchingRuleURL) String() string
- func (o *DeleteBackendSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *DeleteBackendSwitchingRuleURL) WithBasePath(bp string) *DeleteBackendSwitchingRuleURL
- type GetBackendSwitchingRule
- type GetBackendSwitchingRuleDefault
- func (o *GetBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *GetBackendSwitchingRuleDefault) SetStatusCode(code int)
- func (o *GetBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleDefault
- func (o *GetBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *GetBackendSwitchingRuleDefault
- func (o *GetBackendSwitchingRuleDefault) WithStatusCode(code int) *GetBackendSwitchingRuleDefault
- func (o *GetBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendSwitchingRuleHandler
- type GetBackendSwitchingRuleHandlerFunc
- type GetBackendSwitchingRuleNotFound
- func (o *GetBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleNotFound
- func (o *GetBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *GetBackendSwitchingRuleNotFound
- func (o *GetBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendSwitchingRuleOK
- func (o *GetBackendSwitchingRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendSwitchingRuleOK) SetPayload(payload *GetBackendSwitchingRuleOKBody)
- func (o *GetBackendSwitchingRuleOK) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleOK
- func (o *GetBackendSwitchingRuleOK) WithPayload(payload *GetBackendSwitchingRuleOKBody) *GetBackendSwitchingRuleOK
- func (o *GetBackendSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendSwitchingRuleOKBody
- type GetBackendSwitchingRuleParams
- type GetBackendSwitchingRuleURL
- func (o *GetBackendSwitchingRuleURL) Build() (*url.URL, error)
- func (o *GetBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackendSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackendSwitchingRuleURL) SetBasePath(bp string)
- func (o *GetBackendSwitchingRuleURL) String() string
- func (o *GetBackendSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *GetBackendSwitchingRuleURL) WithBasePath(bp string) *GetBackendSwitchingRuleURL
- type GetBackendSwitchingRules
- type GetBackendSwitchingRulesDefault
- func (o *GetBackendSwitchingRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendSwitchingRulesDefault) SetPayload(payload *models.Error)
- func (o *GetBackendSwitchingRulesDefault) SetStatusCode(code int)
- func (o *GetBackendSwitchingRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRulesDefault
- func (o *GetBackendSwitchingRulesDefault) WithPayload(payload *models.Error) *GetBackendSwitchingRulesDefault
- func (o *GetBackendSwitchingRulesDefault) WithStatusCode(code int) *GetBackendSwitchingRulesDefault
- func (o *GetBackendSwitchingRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendSwitchingRulesHandler
- type GetBackendSwitchingRulesHandlerFunc
- type GetBackendSwitchingRulesOK
- func (o *GetBackendSwitchingRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendSwitchingRulesOK) SetPayload(payload *GetBackendSwitchingRulesOKBody)
- func (o *GetBackendSwitchingRulesOK) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRulesOK
- func (o *GetBackendSwitchingRulesOK) WithPayload(payload *GetBackendSwitchingRulesOKBody) *GetBackendSwitchingRulesOK
- func (o *GetBackendSwitchingRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendSwitchingRulesOKBody
- type GetBackendSwitchingRulesParams
- type GetBackendSwitchingRulesURL
- func (o *GetBackendSwitchingRulesURL) Build() (*url.URL, error)
- func (o *GetBackendSwitchingRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackendSwitchingRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackendSwitchingRulesURL) SetBasePath(bp string)
- func (o *GetBackendSwitchingRulesURL) String() string
- func (o *GetBackendSwitchingRulesURL) StringFull(scheme, host string) string
- func (o *GetBackendSwitchingRulesURL) WithBasePath(bp string) *GetBackendSwitchingRulesURL
- type ReplaceBackendSwitchingRule
- type ReplaceBackendSwitchingRuleAccepted
- func (o *ReplaceBackendSwitchingRuleAccepted) SetPayload(payload *models.BackendSwitchingRule)
- func (o *ReplaceBackendSwitchingRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceBackendSwitchingRuleAccepted) WithPayload(payload *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleAccepted
- func (o *ReplaceBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *ReplaceBackendSwitchingRuleAccepted
- func (o *ReplaceBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendSwitchingRuleBadRequest
- func (o *ReplaceBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendSwitchingRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceBackendSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleBadRequest
- func (o *ReplaceBackendSwitchingRuleBadRequest) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleBadRequest
- func (o *ReplaceBackendSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendSwitchingRuleDefault
- func (o *ReplaceBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceBackendSwitchingRuleDefault) SetStatusCode(code int)
- func (o *ReplaceBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleDefault
- func (o *ReplaceBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleDefault
- func (o *ReplaceBackendSwitchingRuleDefault) WithStatusCode(code int) *ReplaceBackendSwitchingRuleDefault
- func (o *ReplaceBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendSwitchingRuleHandler
- type ReplaceBackendSwitchingRuleHandlerFunc
- type ReplaceBackendSwitchingRuleNotFound
- func (o *ReplaceBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleNotFound
- func (o *ReplaceBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleNotFound
- func (o *ReplaceBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendSwitchingRuleOK
- func (o *ReplaceBackendSwitchingRuleOK) SetPayload(payload *models.BackendSwitchingRule)
- func (o *ReplaceBackendSwitchingRuleOK) WithPayload(payload *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleOK
- func (o *ReplaceBackendSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendSwitchingRuleParams
- type ReplaceBackendSwitchingRuleURL
- func (o *ReplaceBackendSwitchingRuleURL) Build() (*url.URL, error)
- func (o *ReplaceBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceBackendSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceBackendSwitchingRuleURL) SetBasePath(bp string)
- func (o *ReplaceBackendSwitchingRuleURL) String() string
- func (o *ReplaceBackendSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceBackendSwitchingRuleURL) WithBasePath(bp string) *ReplaceBackendSwitchingRuleURL
Constants ¶
const CreateBackendSwitchingRuleAcceptedCode int = 202
CreateBackendSwitchingRuleAcceptedCode is the HTTP code returned for type CreateBackendSwitchingRuleAccepted
const CreateBackendSwitchingRuleBadRequestCode int = 400
CreateBackendSwitchingRuleBadRequestCode is the HTTP code returned for type CreateBackendSwitchingRuleBadRequest
const CreateBackendSwitchingRuleConflictCode int = 409
CreateBackendSwitchingRuleConflictCode is the HTTP code returned for type CreateBackendSwitchingRuleConflict
const CreateBackendSwitchingRuleCreatedCode int = 201
CreateBackendSwitchingRuleCreatedCode is the HTTP code returned for type CreateBackendSwitchingRuleCreated
const DeleteBackendSwitchingRuleAcceptedCode int = 202
DeleteBackendSwitchingRuleAcceptedCode is the HTTP code returned for type DeleteBackendSwitchingRuleAccepted
const DeleteBackendSwitchingRuleNoContentCode int = 204
DeleteBackendSwitchingRuleNoContentCode is the HTTP code returned for type DeleteBackendSwitchingRuleNoContent
const DeleteBackendSwitchingRuleNotFoundCode int = 404
DeleteBackendSwitchingRuleNotFoundCode is the HTTP code returned for type DeleteBackendSwitchingRuleNotFound
const GetBackendSwitchingRuleNotFoundCode int = 404
GetBackendSwitchingRuleNotFoundCode is the HTTP code returned for type GetBackendSwitchingRuleNotFound
const GetBackendSwitchingRuleOKCode int = 200
GetBackendSwitchingRuleOKCode is the HTTP code returned for type GetBackendSwitchingRuleOK
const GetBackendSwitchingRulesOKCode int = 200
GetBackendSwitchingRulesOKCode is the HTTP code returned for type GetBackendSwitchingRulesOK
const ReplaceBackendSwitchingRuleAcceptedCode int = 202
ReplaceBackendSwitchingRuleAcceptedCode is the HTTP code returned for type ReplaceBackendSwitchingRuleAccepted
const ReplaceBackendSwitchingRuleBadRequestCode int = 400
ReplaceBackendSwitchingRuleBadRequestCode is the HTTP code returned for type ReplaceBackendSwitchingRuleBadRequest
const ReplaceBackendSwitchingRuleNotFoundCode int = 404
ReplaceBackendSwitchingRuleNotFoundCode is the HTTP code returned for type ReplaceBackendSwitchingRuleNotFound
const ReplaceBackendSwitchingRuleOKCode int = 200
ReplaceBackendSwitchingRuleOKCode is the HTTP code returned for type ReplaceBackendSwitchingRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateBackendSwitchingRule ¶
type CreateBackendSwitchingRule struct { Context *middleware.Context Handler CreateBackendSwitchingRuleHandler }
CreateBackendSwitchingRule swagger:route POST /services/haproxy/configuration/backend_switching_rules BackendSwitchingRule createBackendSwitchingRule
Add a new Backend Switching Rule ¶
Adds a new Backend Switching Rule of the specified type in the specified frontend.
func NewCreateBackendSwitchingRule ¶
func NewCreateBackendSwitchingRule(ctx *middleware.Context, handler CreateBackendSwitchingRuleHandler) *CreateBackendSwitchingRule
NewCreateBackendSwitchingRule creates a new http.Handler for the create backend switching rule operation
func (*CreateBackendSwitchingRule) ServeHTTP ¶
func (o *CreateBackendSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateBackendSwitchingRuleAccepted ¶
type CreateBackendSwitchingRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.BackendSwitchingRule `json:"body,omitempty"` }
CreateBackendSwitchingRuleAccepted Configuration change accepted and reload requested
swagger:response createBackendSwitchingRuleAccepted
func NewCreateBackendSwitchingRuleAccepted ¶
func NewCreateBackendSwitchingRuleAccepted() *CreateBackendSwitchingRuleAccepted
NewCreateBackendSwitchingRuleAccepted creates CreateBackendSwitchingRuleAccepted with default headers values
func (*CreateBackendSwitchingRuleAccepted) SetPayload ¶
func (o *CreateBackendSwitchingRuleAccepted) SetPayload(payload *models.BackendSwitchingRule)
SetPayload sets the payload to the create backend switching rule accepted response
func (*CreateBackendSwitchingRuleAccepted) SetReloadID ¶
func (o *CreateBackendSwitchingRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create backend switching rule accepted response
func (*CreateBackendSwitchingRuleAccepted) WithPayload ¶
func (o *CreateBackendSwitchingRuleAccepted) WithPayload(payload *models.BackendSwitchingRule) *CreateBackendSwitchingRuleAccepted
WithPayload adds the payload to the create backend switching rule accepted response
func (*CreateBackendSwitchingRuleAccepted) WithReloadID ¶
func (o *CreateBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *CreateBackendSwitchingRuleAccepted
WithReloadID adds the reloadId to the create backend switching rule accepted response
func (*CreateBackendSwitchingRuleAccepted) WriteResponse ¶
func (o *CreateBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendSwitchingRuleBadRequest ¶
type CreateBackendSwitchingRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBackendSwitchingRuleBadRequest Bad request
swagger:response createBackendSwitchingRuleBadRequest
func NewCreateBackendSwitchingRuleBadRequest ¶
func NewCreateBackendSwitchingRuleBadRequest() *CreateBackendSwitchingRuleBadRequest
NewCreateBackendSwitchingRuleBadRequest creates CreateBackendSwitchingRuleBadRequest with default headers values
func (*CreateBackendSwitchingRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend switching rule bad request response
func (*CreateBackendSwitchingRuleBadRequest) SetPayload ¶
func (o *CreateBackendSwitchingRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend switching rule bad request response
func (*CreateBackendSwitchingRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the create backend switching rule bad request response
func (*CreateBackendSwitchingRuleBadRequest) WithPayload ¶
func (o *CreateBackendSwitchingRuleBadRequest) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleBadRequest
WithPayload adds the payload to the create backend switching rule bad request response
func (*CreateBackendSwitchingRuleBadRequest) WriteResponse ¶
func (o *CreateBackendSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendSwitchingRuleConflict ¶
type CreateBackendSwitchingRuleConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBackendSwitchingRuleConflict The specified resource already exists
swagger:response createBackendSwitchingRuleConflict
func NewCreateBackendSwitchingRuleConflict ¶
func NewCreateBackendSwitchingRuleConflict() *CreateBackendSwitchingRuleConflict
NewCreateBackendSwitchingRuleConflict creates CreateBackendSwitchingRuleConflict with default headers values
func (*CreateBackendSwitchingRuleConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend switching rule conflict response
func (*CreateBackendSwitchingRuleConflict) SetPayload ¶
func (o *CreateBackendSwitchingRuleConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend switching rule conflict response
func (*CreateBackendSwitchingRuleConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleConflict
WithConfigurationVersion adds the configurationVersion to the create backend switching rule conflict response
func (*CreateBackendSwitchingRuleConflict) WithPayload ¶
func (o *CreateBackendSwitchingRuleConflict) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleConflict
WithPayload adds the payload to the create backend switching rule conflict response
func (*CreateBackendSwitchingRuleConflict) WriteResponse ¶
func (o *CreateBackendSwitchingRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendSwitchingRuleCreated ¶
type CreateBackendSwitchingRuleCreated struct { /* In: Body */ Payload *models.BackendSwitchingRule `json:"body,omitempty"` }
CreateBackendSwitchingRuleCreated Backend Switching Rule created
swagger:response createBackendSwitchingRuleCreated
func NewCreateBackendSwitchingRuleCreated ¶
func NewCreateBackendSwitchingRuleCreated() *CreateBackendSwitchingRuleCreated
NewCreateBackendSwitchingRuleCreated creates CreateBackendSwitchingRuleCreated with default headers values
func (*CreateBackendSwitchingRuleCreated) SetPayload ¶
func (o *CreateBackendSwitchingRuleCreated) SetPayload(payload *models.BackendSwitchingRule)
SetPayload sets the payload to the create backend switching rule created response
func (*CreateBackendSwitchingRuleCreated) WithPayload ¶
func (o *CreateBackendSwitchingRuleCreated) WithPayload(payload *models.BackendSwitchingRule) *CreateBackendSwitchingRuleCreated
WithPayload adds the payload to the create backend switching rule created response
func (*CreateBackendSwitchingRuleCreated) WriteResponse ¶
func (o *CreateBackendSwitchingRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendSwitchingRuleDefault ¶
type CreateBackendSwitchingRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateBackendSwitchingRuleDefault General Error
swagger:response createBackendSwitchingRuleDefault
func NewCreateBackendSwitchingRuleDefault ¶
func NewCreateBackendSwitchingRuleDefault(code int) *CreateBackendSwitchingRuleDefault
NewCreateBackendSwitchingRuleDefault creates CreateBackendSwitchingRuleDefault with default headers values
func (*CreateBackendSwitchingRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) SetPayload ¶
func (o *CreateBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) SetStatusCode ¶
func (o *CreateBackendSwitchingRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateBackendSwitchingRuleDefault
WithConfigurationVersion adds the configurationVersion to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) WithPayload ¶
func (o *CreateBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *CreateBackendSwitchingRuleDefault
WithPayload adds the payload to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) WithStatusCode ¶
func (o *CreateBackendSwitchingRuleDefault) WithStatusCode(code int) *CreateBackendSwitchingRuleDefault
WithStatusCode adds the status to the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) WriteResponse ¶
func (o *CreateBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendSwitchingRuleHandler ¶
type CreateBackendSwitchingRuleHandler interface {
Handle(CreateBackendSwitchingRuleParams, interface{}) middleware.Responder
}
CreateBackendSwitchingRuleHandler interface for that can handle valid create backend switching rule params
type CreateBackendSwitchingRuleHandlerFunc ¶
type CreateBackendSwitchingRuleHandlerFunc func(CreateBackendSwitchingRuleParams, interface{}) middleware.Responder
CreateBackendSwitchingRuleHandlerFunc turns a function with the right signature into a create backend switching rule handler
func (CreateBackendSwitchingRuleHandlerFunc) Handle ¶
func (fn CreateBackendSwitchingRuleHandlerFunc) Handle(params CreateBackendSwitchingRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateBackendSwitchingRuleParams ¶
type CreateBackendSwitchingRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.BackendSwitchingRule /*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 /*Frontend name Required: true In: query */ Frontend string /*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 }
CreateBackendSwitchingRuleParams contains all the bound params for the create backend switching rule operation typically these are obtained from a http.Request
swagger:parameters createBackendSwitchingRule
func NewCreateBackendSwitchingRuleParams ¶
func NewCreateBackendSwitchingRuleParams() CreateBackendSwitchingRuleParams
NewCreateBackendSwitchingRuleParams creates a new CreateBackendSwitchingRuleParams object with the default values initialized.
func (*CreateBackendSwitchingRuleParams) BindRequest ¶
func (o *CreateBackendSwitchingRuleParams) 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 NewCreateBackendSwitchingRuleParams() beforehand.
type CreateBackendSwitchingRuleURL ¶
type CreateBackendSwitchingRuleURL struct { ForceReload *bool Frontend string TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateBackendSwitchingRuleURL generates an URL for the create backend switching rule operation
func (*CreateBackendSwitchingRuleURL) Build ¶
func (o *CreateBackendSwitchingRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateBackendSwitchingRuleURL) BuildFull ¶
func (o *CreateBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateBackendSwitchingRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateBackendSwitchingRuleURL) SetBasePath ¶
func (o *CreateBackendSwitchingRuleURL) 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 (*CreateBackendSwitchingRuleURL) String ¶
func (o *CreateBackendSwitchingRuleURL) String() string
String returns the string representation of the path with query string
func (*CreateBackendSwitchingRuleURL) StringFull ¶
func (o *CreateBackendSwitchingRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateBackendSwitchingRuleURL) WithBasePath ¶
func (o *CreateBackendSwitchingRuleURL) WithBasePath(bp string) *CreateBackendSwitchingRuleURL
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 DeleteBackendSwitchingRule ¶
type DeleteBackendSwitchingRule struct { Context *middleware.Context Handler DeleteBackendSwitchingRuleHandler }
DeleteBackendSwitchingRule swagger:route DELETE /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule deleteBackendSwitchingRule
Delete a Backend Switching Rule ¶
Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.
func NewDeleteBackendSwitchingRule ¶
func NewDeleteBackendSwitchingRule(ctx *middleware.Context, handler DeleteBackendSwitchingRuleHandler) *DeleteBackendSwitchingRule
NewDeleteBackendSwitchingRule creates a new http.Handler for the delete backend switching rule operation
func (*DeleteBackendSwitchingRule) ServeHTTP ¶
func (o *DeleteBackendSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteBackendSwitchingRuleAccepted ¶
type DeleteBackendSwitchingRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteBackendSwitchingRuleAccepted Configuration change accepted and reload requested
swagger:response deleteBackendSwitchingRuleAccepted
func NewDeleteBackendSwitchingRuleAccepted ¶
func NewDeleteBackendSwitchingRuleAccepted() *DeleteBackendSwitchingRuleAccepted
NewDeleteBackendSwitchingRuleAccepted creates DeleteBackendSwitchingRuleAccepted with default headers values
func (*DeleteBackendSwitchingRuleAccepted) SetReloadID ¶
func (o *DeleteBackendSwitchingRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete backend switching rule accepted response
func (*DeleteBackendSwitchingRuleAccepted) WithReloadID ¶
func (o *DeleteBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *DeleteBackendSwitchingRuleAccepted
WithReloadID adds the reloadId to the delete backend switching rule accepted response
func (*DeleteBackendSwitchingRuleAccepted) WriteResponse ¶
func (o *DeleteBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendSwitchingRuleDefault ¶
type DeleteBackendSwitchingRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteBackendSwitchingRuleDefault General Error
swagger:response deleteBackendSwitchingRuleDefault
func NewDeleteBackendSwitchingRuleDefault ¶
func NewDeleteBackendSwitchingRuleDefault(code int) *DeleteBackendSwitchingRuleDefault
NewDeleteBackendSwitchingRuleDefault creates DeleteBackendSwitchingRuleDefault with default headers values
func (*DeleteBackendSwitchingRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) SetPayload ¶
func (o *DeleteBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) SetStatusCode ¶
func (o *DeleteBackendSwitchingRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteBackendSwitchingRuleDefault
WithConfigurationVersion adds the configurationVersion to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) WithPayload ¶
func (o *DeleteBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *DeleteBackendSwitchingRuleDefault
WithPayload adds the payload to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) WithStatusCode ¶
func (o *DeleteBackendSwitchingRuleDefault) WithStatusCode(code int) *DeleteBackendSwitchingRuleDefault
WithStatusCode adds the status to the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) WriteResponse ¶
func (o *DeleteBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendSwitchingRuleHandler ¶
type DeleteBackendSwitchingRuleHandler interface {
Handle(DeleteBackendSwitchingRuleParams, interface{}) middleware.Responder
}
DeleteBackendSwitchingRuleHandler interface for that can handle valid delete backend switching rule params
type DeleteBackendSwitchingRuleHandlerFunc ¶
type DeleteBackendSwitchingRuleHandlerFunc func(DeleteBackendSwitchingRuleParams, interface{}) middleware.Responder
DeleteBackendSwitchingRuleHandlerFunc turns a function with the right signature into a delete backend switching rule handler
func (DeleteBackendSwitchingRuleHandlerFunc) Handle ¶
func (fn DeleteBackendSwitchingRuleHandlerFunc) Handle(params DeleteBackendSwitchingRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteBackendSwitchingRuleNoContent ¶
type DeleteBackendSwitchingRuleNoContent struct { }
DeleteBackendSwitchingRuleNoContent Backend Switching Rule deleted
swagger:response deleteBackendSwitchingRuleNoContent
func NewDeleteBackendSwitchingRuleNoContent ¶
func NewDeleteBackendSwitchingRuleNoContent() *DeleteBackendSwitchingRuleNoContent
NewDeleteBackendSwitchingRuleNoContent creates DeleteBackendSwitchingRuleNoContent with default headers values
func (*DeleteBackendSwitchingRuleNoContent) WriteResponse ¶
func (o *DeleteBackendSwitchingRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendSwitchingRuleNotFound ¶
type DeleteBackendSwitchingRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteBackendSwitchingRuleNotFound The specified resource was not found
swagger:response deleteBackendSwitchingRuleNotFound
func NewDeleteBackendSwitchingRuleNotFound ¶
func NewDeleteBackendSwitchingRuleNotFound() *DeleteBackendSwitchingRuleNotFound
NewDeleteBackendSwitchingRuleNotFound creates DeleteBackendSwitchingRuleNotFound with default headers values
func (*DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete backend switching rule not found response
func (*DeleteBackendSwitchingRuleNotFound) SetPayload ¶
func (o *DeleteBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete backend switching rule not found response
func (*DeleteBackendSwitchingRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteBackendSwitchingRuleNotFound
WithConfigurationVersion adds the configurationVersion to the delete backend switching rule not found response
func (*DeleteBackendSwitchingRuleNotFound) WithPayload ¶
func (o *DeleteBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteBackendSwitchingRuleNotFound
WithPayload adds the payload to the delete backend switching rule not found response
func (*DeleteBackendSwitchingRuleNotFound) WriteResponse ¶
func (o *DeleteBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendSwitchingRuleParams ¶
type DeleteBackendSwitchingRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*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 /*Frontend name Required: true In: query */ Frontend string /*Switching 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 }
DeleteBackendSwitchingRuleParams contains all the bound params for the delete backend switching rule operation typically these are obtained from a http.Request
swagger:parameters deleteBackendSwitchingRule
func NewDeleteBackendSwitchingRuleParams ¶
func NewDeleteBackendSwitchingRuleParams() DeleteBackendSwitchingRuleParams
NewDeleteBackendSwitchingRuleParams creates a new DeleteBackendSwitchingRuleParams object with the default values initialized.
func (*DeleteBackendSwitchingRuleParams) BindRequest ¶
func (o *DeleteBackendSwitchingRuleParams) 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 NewDeleteBackendSwitchingRuleParams() beforehand.
type DeleteBackendSwitchingRuleURL ¶
type DeleteBackendSwitchingRuleURL struct { ID int64 ForceReload *bool Frontend string TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteBackendSwitchingRuleURL generates an URL for the delete backend switching rule operation
func (*DeleteBackendSwitchingRuleURL) Build ¶
func (o *DeleteBackendSwitchingRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteBackendSwitchingRuleURL) BuildFull ¶
func (o *DeleteBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteBackendSwitchingRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteBackendSwitchingRuleURL) SetBasePath ¶
func (o *DeleteBackendSwitchingRuleURL) 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 (*DeleteBackendSwitchingRuleURL) String ¶
func (o *DeleteBackendSwitchingRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteBackendSwitchingRuleURL) StringFull ¶
func (o *DeleteBackendSwitchingRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteBackendSwitchingRuleURL) WithBasePath ¶
func (o *DeleteBackendSwitchingRuleURL) WithBasePath(bp string) *DeleteBackendSwitchingRuleURL
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 GetBackendSwitchingRule ¶
type GetBackendSwitchingRule struct { Context *middleware.Context Handler GetBackendSwitchingRuleHandler }
GetBackendSwitchingRule swagger:route GET /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule getBackendSwitchingRule
Return one Backend Switching Rule ¶
Returns one Backend Switching Rule configuration by it's ID in the specified frontend.
func NewGetBackendSwitchingRule ¶
func NewGetBackendSwitchingRule(ctx *middleware.Context, handler GetBackendSwitchingRuleHandler) *GetBackendSwitchingRule
NewGetBackendSwitchingRule creates a new http.Handler for the get backend switching rule operation
func (*GetBackendSwitchingRule) ServeHTTP ¶
func (o *GetBackendSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackendSwitchingRuleDefault ¶
type GetBackendSwitchingRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetBackendSwitchingRuleDefault General Error
swagger:response getBackendSwitchingRuleDefault
func NewGetBackendSwitchingRuleDefault ¶
func NewGetBackendSwitchingRuleDefault(code int) *GetBackendSwitchingRuleDefault
NewGetBackendSwitchingRuleDefault creates GetBackendSwitchingRuleDefault with default headers values
func (*GetBackendSwitchingRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) SetPayload ¶
func (o *GetBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) SetStatusCode ¶
func (o *GetBackendSwitchingRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleDefault
WithConfigurationVersion adds the configurationVersion to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) WithPayload ¶
func (o *GetBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *GetBackendSwitchingRuleDefault
WithPayload adds the payload to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) WithStatusCode ¶
func (o *GetBackendSwitchingRuleDefault) WithStatusCode(code int) *GetBackendSwitchingRuleDefault
WithStatusCode adds the status to the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) WriteResponse ¶
func (o *GetBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendSwitchingRuleHandler ¶
type GetBackendSwitchingRuleHandler interface {
Handle(GetBackendSwitchingRuleParams, interface{}) middleware.Responder
}
GetBackendSwitchingRuleHandler interface for that can handle valid get backend switching rule params
type GetBackendSwitchingRuleHandlerFunc ¶
type GetBackendSwitchingRuleHandlerFunc func(GetBackendSwitchingRuleParams, interface{}) middleware.Responder
GetBackendSwitchingRuleHandlerFunc turns a function with the right signature into a get backend switching rule handler
func (GetBackendSwitchingRuleHandlerFunc) Handle ¶
func (fn GetBackendSwitchingRuleHandlerFunc) Handle(params GetBackendSwitchingRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetBackendSwitchingRuleNotFound ¶
type GetBackendSwitchingRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBackendSwitchingRuleNotFound The specified resource was not found
swagger:response getBackendSwitchingRuleNotFound
func NewGetBackendSwitchingRuleNotFound ¶
func NewGetBackendSwitchingRuleNotFound() *GetBackendSwitchingRuleNotFound
NewGetBackendSwitchingRuleNotFound creates GetBackendSwitchingRuleNotFound with default headers values
func (*GetBackendSwitchingRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend switching rule not found response
func (*GetBackendSwitchingRuleNotFound) SetPayload ¶
func (o *GetBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backend switching rule not found response
func (*GetBackendSwitchingRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleNotFound
WithConfigurationVersion adds the configurationVersion to the get backend switching rule not found response
func (*GetBackendSwitchingRuleNotFound) WithPayload ¶
func (o *GetBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *GetBackendSwitchingRuleNotFound
WithPayload adds the payload to the get backend switching rule not found response
func (*GetBackendSwitchingRuleNotFound) WriteResponse ¶
func (o *GetBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendSwitchingRuleOK ¶
type GetBackendSwitchingRuleOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetBackendSwitchingRuleOKBody `json:"body,omitempty"` }
GetBackendSwitchingRuleOK Successful operation
swagger:response getBackendSwitchingRuleOK
func NewGetBackendSwitchingRuleOK ¶
func NewGetBackendSwitchingRuleOK() *GetBackendSwitchingRuleOK
NewGetBackendSwitchingRuleOK creates GetBackendSwitchingRuleOK with default headers values
func (*GetBackendSwitchingRuleOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend switching rule o k response
func (*GetBackendSwitchingRuleOK) SetPayload ¶
func (o *GetBackendSwitchingRuleOK) SetPayload(payload *GetBackendSwitchingRuleOKBody)
SetPayload sets the payload to the get backend switching rule o k response
func (*GetBackendSwitchingRuleOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRuleOK) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRuleOK
WithConfigurationVersion adds the configurationVersion to the get backend switching rule o k response
func (*GetBackendSwitchingRuleOK) WithPayload ¶
func (o *GetBackendSwitchingRuleOK) WithPayload(payload *GetBackendSwitchingRuleOKBody) *GetBackendSwitchingRuleOK
WithPayload adds the payload to the get backend switching rule o k response
func (*GetBackendSwitchingRuleOK) WriteResponse ¶
func (o *GetBackendSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendSwitchingRuleOKBody ¶
type GetBackendSwitchingRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.BackendSwitchingRule `json:"data,omitempty"` }
GetBackendSwitchingRuleOKBody get backend switching rule o k body swagger:model GetBackendSwitchingRuleOKBody
func (*GetBackendSwitchingRuleOKBody) MarshalBinary ¶
func (o *GetBackendSwitchingRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendSwitchingRuleOKBody) UnmarshalBinary ¶
func (o *GetBackendSwitchingRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendSwitchingRuleParams ¶
type GetBackendSwitchingRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Frontend name Required: true In: query */ Frontend string /*Switching 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 }
GetBackendSwitchingRuleParams contains all the bound params for the get backend switching rule operation typically these are obtained from a http.Request
swagger:parameters getBackendSwitchingRule
func NewGetBackendSwitchingRuleParams ¶
func NewGetBackendSwitchingRuleParams() GetBackendSwitchingRuleParams
NewGetBackendSwitchingRuleParams creates a new GetBackendSwitchingRuleParams object no default values defined in spec.
func (*GetBackendSwitchingRuleParams) BindRequest ¶
func (o *GetBackendSwitchingRuleParams) 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 NewGetBackendSwitchingRuleParams() beforehand.
type GetBackendSwitchingRuleURL ¶
type GetBackendSwitchingRuleURL struct { ID int64 Frontend string TransactionID *string // contains filtered or unexported fields }
GetBackendSwitchingRuleURL generates an URL for the get backend switching rule operation
func (*GetBackendSwitchingRuleURL) Build ¶
func (o *GetBackendSwitchingRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackendSwitchingRuleURL) BuildFull ¶
func (o *GetBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackendSwitchingRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackendSwitchingRuleURL) SetBasePath ¶
func (o *GetBackendSwitchingRuleURL) 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 (*GetBackendSwitchingRuleURL) String ¶
func (o *GetBackendSwitchingRuleURL) String() string
String returns the string representation of the path with query string
func (*GetBackendSwitchingRuleURL) StringFull ¶
func (o *GetBackendSwitchingRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackendSwitchingRuleURL) WithBasePath ¶
func (o *GetBackendSwitchingRuleURL) WithBasePath(bp string) *GetBackendSwitchingRuleURL
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 GetBackendSwitchingRules ¶
type GetBackendSwitchingRules struct { Context *middleware.Context Handler GetBackendSwitchingRulesHandler }
GetBackendSwitchingRules swagger:route GET /services/haproxy/configuration/backend_switching_rules BackendSwitchingRule getBackendSwitchingRules
Return an array of all Backend Switching Rules ¶
Returns all Backend Switching Rules that are configured in specified frontend.
func NewGetBackendSwitchingRules ¶
func NewGetBackendSwitchingRules(ctx *middleware.Context, handler GetBackendSwitchingRulesHandler) *GetBackendSwitchingRules
NewGetBackendSwitchingRules creates a new http.Handler for the get backend switching rules operation
func (*GetBackendSwitchingRules) ServeHTTP ¶
func (o *GetBackendSwitchingRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackendSwitchingRulesDefault ¶
type GetBackendSwitchingRulesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetBackendSwitchingRulesDefault General Error
swagger:response getBackendSwitchingRulesDefault
func NewGetBackendSwitchingRulesDefault ¶
func NewGetBackendSwitchingRulesDefault(code int) *GetBackendSwitchingRulesDefault
NewGetBackendSwitchingRulesDefault creates GetBackendSwitchingRulesDefault with default headers values
func (*GetBackendSwitchingRulesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRulesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) SetPayload ¶
func (o *GetBackendSwitchingRulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) SetStatusCode ¶
func (o *GetBackendSwitchingRulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRulesDefault
WithConfigurationVersion adds the configurationVersion to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) WithPayload ¶
func (o *GetBackendSwitchingRulesDefault) WithPayload(payload *models.Error) *GetBackendSwitchingRulesDefault
WithPayload adds the payload to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) WithStatusCode ¶
func (o *GetBackendSwitchingRulesDefault) WithStatusCode(code int) *GetBackendSwitchingRulesDefault
WithStatusCode adds the status to the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) WriteResponse ¶
func (o *GetBackendSwitchingRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendSwitchingRulesHandler ¶
type GetBackendSwitchingRulesHandler interface {
Handle(GetBackendSwitchingRulesParams, interface{}) middleware.Responder
}
GetBackendSwitchingRulesHandler interface for that can handle valid get backend switching rules params
type GetBackendSwitchingRulesHandlerFunc ¶
type GetBackendSwitchingRulesHandlerFunc func(GetBackendSwitchingRulesParams, interface{}) middleware.Responder
GetBackendSwitchingRulesHandlerFunc turns a function with the right signature into a get backend switching rules handler
func (GetBackendSwitchingRulesHandlerFunc) Handle ¶
func (fn GetBackendSwitchingRulesHandlerFunc) Handle(params GetBackendSwitchingRulesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetBackendSwitchingRulesOK ¶
type GetBackendSwitchingRulesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetBackendSwitchingRulesOKBody `json:"body,omitempty"` }
GetBackendSwitchingRulesOK Successful operation
swagger:response getBackendSwitchingRulesOK
func NewGetBackendSwitchingRulesOK ¶
func NewGetBackendSwitchingRulesOK() *GetBackendSwitchingRulesOK
NewGetBackendSwitchingRulesOK creates GetBackendSwitchingRulesOK with default headers values
func (*GetBackendSwitchingRulesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRulesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend switching rules o k response
func (*GetBackendSwitchingRulesOK) SetPayload ¶
func (o *GetBackendSwitchingRulesOK) SetPayload(payload *GetBackendSwitchingRulesOKBody)
SetPayload sets the payload to the get backend switching rules o k response
func (*GetBackendSwitchingRulesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendSwitchingRulesOK) WithConfigurationVersion(configurationVersion int64) *GetBackendSwitchingRulesOK
WithConfigurationVersion adds the configurationVersion to the get backend switching rules o k response
func (*GetBackendSwitchingRulesOK) WithPayload ¶
func (o *GetBackendSwitchingRulesOK) WithPayload(payload *GetBackendSwitchingRulesOKBody) *GetBackendSwitchingRulesOK
WithPayload adds the payload to the get backend switching rules o k response
func (*GetBackendSwitchingRulesOK) WriteResponse ¶
func (o *GetBackendSwitchingRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendSwitchingRulesOKBody ¶
type GetBackendSwitchingRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.BackendSwitchingRules `json:"data"` }
GetBackendSwitchingRulesOKBody get backend switching rules o k body swagger:model GetBackendSwitchingRulesOKBody
func (*GetBackendSwitchingRulesOKBody) MarshalBinary ¶
func (o *GetBackendSwitchingRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendSwitchingRulesOKBody) UnmarshalBinary ¶
func (o *GetBackendSwitchingRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendSwitchingRulesParams ¶
type GetBackendSwitchingRulesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Frontend name Required: true In: query */ Frontend string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetBackendSwitchingRulesParams contains all the bound params for the get backend switching rules operation typically these are obtained from a http.Request
swagger:parameters getBackendSwitchingRules
func NewGetBackendSwitchingRulesParams ¶
func NewGetBackendSwitchingRulesParams() GetBackendSwitchingRulesParams
NewGetBackendSwitchingRulesParams creates a new GetBackendSwitchingRulesParams object no default values defined in spec.
func (*GetBackendSwitchingRulesParams) BindRequest ¶
func (o *GetBackendSwitchingRulesParams) 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 NewGetBackendSwitchingRulesParams() beforehand.
type GetBackendSwitchingRulesURL ¶
type GetBackendSwitchingRulesURL struct { Frontend string TransactionID *string // contains filtered or unexported fields }
GetBackendSwitchingRulesURL generates an URL for the get backend switching rules operation
func (*GetBackendSwitchingRulesURL) Build ¶
func (o *GetBackendSwitchingRulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackendSwitchingRulesURL) BuildFull ¶
func (o *GetBackendSwitchingRulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackendSwitchingRulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackendSwitchingRulesURL) SetBasePath ¶
func (o *GetBackendSwitchingRulesURL) 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 (*GetBackendSwitchingRulesURL) String ¶
func (o *GetBackendSwitchingRulesURL) String() string
String returns the string representation of the path with query string
func (*GetBackendSwitchingRulesURL) StringFull ¶
func (o *GetBackendSwitchingRulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackendSwitchingRulesURL) WithBasePath ¶
func (o *GetBackendSwitchingRulesURL) WithBasePath(bp string) *GetBackendSwitchingRulesURL
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 ReplaceBackendSwitchingRule ¶
type ReplaceBackendSwitchingRule struct { Context *middleware.Context Handler ReplaceBackendSwitchingRuleHandler }
ReplaceBackendSwitchingRule swagger:route PUT /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule replaceBackendSwitchingRule
Replace a Backend Switching Rule ¶
Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.
func NewReplaceBackendSwitchingRule ¶
func NewReplaceBackendSwitchingRule(ctx *middleware.Context, handler ReplaceBackendSwitchingRuleHandler) *ReplaceBackendSwitchingRule
NewReplaceBackendSwitchingRule creates a new http.Handler for the replace backend switching rule operation
func (*ReplaceBackendSwitchingRule) ServeHTTP ¶
func (o *ReplaceBackendSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceBackendSwitchingRuleAccepted ¶
type ReplaceBackendSwitchingRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.BackendSwitchingRule `json:"body,omitempty"` }
ReplaceBackendSwitchingRuleAccepted Configuration change accepted and reload requested
swagger:response replaceBackendSwitchingRuleAccepted
func NewReplaceBackendSwitchingRuleAccepted ¶
func NewReplaceBackendSwitchingRuleAccepted() *ReplaceBackendSwitchingRuleAccepted
NewReplaceBackendSwitchingRuleAccepted creates ReplaceBackendSwitchingRuleAccepted with default headers values
func (*ReplaceBackendSwitchingRuleAccepted) SetPayload ¶
func (o *ReplaceBackendSwitchingRuleAccepted) SetPayload(payload *models.BackendSwitchingRule)
SetPayload sets the payload to the replace backend switching rule accepted response
func (*ReplaceBackendSwitchingRuleAccepted) SetReloadID ¶
func (o *ReplaceBackendSwitchingRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace backend switching rule accepted response
func (*ReplaceBackendSwitchingRuleAccepted) WithPayload ¶
func (o *ReplaceBackendSwitchingRuleAccepted) WithPayload(payload *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleAccepted
WithPayload adds the payload to the replace backend switching rule accepted response
func (*ReplaceBackendSwitchingRuleAccepted) WithReloadID ¶
func (o *ReplaceBackendSwitchingRuleAccepted) WithReloadID(reloadID string) *ReplaceBackendSwitchingRuleAccepted
WithReloadID adds the reloadId to the replace backend switching rule accepted response
func (*ReplaceBackendSwitchingRuleAccepted) WriteResponse ¶
func (o *ReplaceBackendSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendSwitchingRuleBadRequest ¶
type ReplaceBackendSwitchingRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceBackendSwitchingRuleBadRequest Bad request
swagger:response replaceBackendSwitchingRuleBadRequest
func NewReplaceBackendSwitchingRuleBadRequest ¶
func NewReplaceBackendSwitchingRuleBadRequest() *ReplaceBackendSwitchingRuleBadRequest
NewReplaceBackendSwitchingRuleBadRequest creates ReplaceBackendSwitchingRuleBadRequest with default headers values
func (*ReplaceBackendSwitchingRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend switching rule bad request response
func (*ReplaceBackendSwitchingRuleBadRequest) SetPayload ¶
func (o *ReplaceBackendSwitchingRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend switching rule bad request response
func (*ReplaceBackendSwitchingRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the replace backend switching rule bad request response
func (*ReplaceBackendSwitchingRuleBadRequest) WithPayload ¶
func (o *ReplaceBackendSwitchingRuleBadRequest) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleBadRequest
WithPayload adds the payload to the replace backend switching rule bad request response
func (*ReplaceBackendSwitchingRuleBadRequest) WriteResponse ¶
func (o *ReplaceBackendSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendSwitchingRuleDefault ¶
type ReplaceBackendSwitchingRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceBackendSwitchingRuleDefault General Error
swagger:response replaceBackendSwitchingRuleDefault
func NewReplaceBackendSwitchingRuleDefault ¶
func NewReplaceBackendSwitchingRuleDefault(code int) *ReplaceBackendSwitchingRuleDefault
NewReplaceBackendSwitchingRuleDefault creates ReplaceBackendSwitchingRuleDefault with default headers values
func (*ReplaceBackendSwitchingRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) SetPayload ¶
func (o *ReplaceBackendSwitchingRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) SetStatusCode ¶
func (o *ReplaceBackendSwitchingRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleDefault
WithConfigurationVersion adds the configurationVersion to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) WithPayload ¶
func (o *ReplaceBackendSwitchingRuleDefault) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleDefault
WithPayload adds the payload to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) WithStatusCode ¶
func (o *ReplaceBackendSwitchingRuleDefault) WithStatusCode(code int) *ReplaceBackendSwitchingRuleDefault
WithStatusCode adds the status to the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) WriteResponse ¶
func (o *ReplaceBackendSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendSwitchingRuleHandler ¶
type ReplaceBackendSwitchingRuleHandler interface {
Handle(ReplaceBackendSwitchingRuleParams, interface{}) middleware.Responder
}
ReplaceBackendSwitchingRuleHandler interface for that can handle valid replace backend switching rule params
type ReplaceBackendSwitchingRuleHandlerFunc ¶
type ReplaceBackendSwitchingRuleHandlerFunc func(ReplaceBackendSwitchingRuleParams, interface{}) middleware.Responder
ReplaceBackendSwitchingRuleHandlerFunc turns a function with the right signature into a replace backend switching rule handler
func (ReplaceBackendSwitchingRuleHandlerFunc) Handle ¶
func (fn ReplaceBackendSwitchingRuleHandlerFunc) Handle(params ReplaceBackendSwitchingRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceBackendSwitchingRuleNotFound ¶
type ReplaceBackendSwitchingRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceBackendSwitchingRuleNotFound The specified resource was not found
swagger:response replaceBackendSwitchingRuleNotFound
func NewReplaceBackendSwitchingRuleNotFound ¶
func NewReplaceBackendSwitchingRuleNotFound() *ReplaceBackendSwitchingRuleNotFound
NewReplaceBackendSwitchingRuleNotFound creates ReplaceBackendSwitchingRuleNotFound with default headers values
func (*ReplaceBackendSwitchingRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend switching rule not found response
func (*ReplaceBackendSwitchingRuleNotFound) SetPayload ¶
func (o *ReplaceBackendSwitchingRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend switching rule not found response
func (*ReplaceBackendSwitchingRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendSwitchingRuleNotFound
WithConfigurationVersion adds the configurationVersion to the replace backend switching rule not found response
func (*ReplaceBackendSwitchingRuleNotFound) WithPayload ¶
func (o *ReplaceBackendSwitchingRuleNotFound) WithPayload(payload *models.Error) *ReplaceBackendSwitchingRuleNotFound
WithPayload adds the payload to the replace backend switching rule not found response
func (*ReplaceBackendSwitchingRuleNotFound) WriteResponse ¶
func (o *ReplaceBackendSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendSwitchingRuleOK ¶
type ReplaceBackendSwitchingRuleOK struct { /* In: Body */ Payload *models.BackendSwitchingRule `json:"body,omitempty"` }
ReplaceBackendSwitchingRuleOK Backend Switching Rule replaced
swagger:response replaceBackendSwitchingRuleOK
func NewReplaceBackendSwitchingRuleOK ¶
func NewReplaceBackendSwitchingRuleOK() *ReplaceBackendSwitchingRuleOK
NewReplaceBackendSwitchingRuleOK creates ReplaceBackendSwitchingRuleOK with default headers values
func (*ReplaceBackendSwitchingRuleOK) SetPayload ¶
func (o *ReplaceBackendSwitchingRuleOK) SetPayload(payload *models.BackendSwitchingRule)
SetPayload sets the payload to the replace backend switching rule o k response
func (*ReplaceBackendSwitchingRuleOK) WithPayload ¶
func (o *ReplaceBackendSwitchingRuleOK) WithPayload(payload *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleOK
WithPayload adds the payload to the replace backend switching rule o k response
func (*ReplaceBackendSwitchingRuleOK) WriteResponse ¶
func (o *ReplaceBackendSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendSwitchingRuleParams ¶
type ReplaceBackendSwitchingRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.BackendSwitchingRule /*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 /*Frontend name Required: true In: query */ Frontend string /*Switching 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 }
ReplaceBackendSwitchingRuleParams contains all the bound params for the replace backend switching rule operation typically these are obtained from a http.Request
swagger:parameters replaceBackendSwitchingRule
func NewReplaceBackendSwitchingRuleParams ¶
func NewReplaceBackendSwitchingRuleParams() ReplaceBackendSwitchingRuleParams
NewReplaceBackendSwitchingRuleParams creates a new ReplaceBackendSwitchingRuleParams object with the default values initialized.
func (*ReplaceBackendSwitchingRuleParams) BindRequest ¶
func (o *ReplaceBackendSwitchingRuleParams) 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 NewReplaceBackendSwitchingRuleParams() beforehand.
type ReplaceBackendSwitchingRuleURL ¶
type ReplaceBackendSwitchingRuleURL struct { ID int64 ForceReload *bool Frontend string TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceBackendSwitchingRuleURL generates an URL for the replace backend switching rule operation
func (*ReplaceBackendSwitchingRuleURL) Build ¶
func (o *ReplaceBackendSwitchingRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceBackendSwitchingRuleURL) BuildFull ¶
func (o *ReplaceBackendSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceBackendSwitchingRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceBackendSwitchingRuleURL) SetBasePath ¶
func (o *ReplaceBackendSwitchingRuleURL) 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 (*ReplaceBackendSwitchingRuleURL) String ¶
func (o *ReplaceBackendSwitchingRuleURL) String() string
String returns the string representation of the path with query string
func (*ReplaceBackendSwitchingRuleURL) StringFull ¶
func (o *ReplaceBackendSwitchingRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceBackendSwitchingRuleURL) WithBasePath ¶
func (o *ReplaceBackendSwitchingRuleURL) WithBasePath(bp string) *ReplaceBackendSwitchingRuleURL
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_backend_switching_rule.go
- create_backend_switching_rule_parameters.go
- create_backend_switching_rule_responses.go
- create_backend_switching_rule_urlbuilder.go
- delete_backend_switching_rule.go
- delete_backend_switching_rule_parameters.go
- delete_backend_switching_rule_responses.go
- delete_backend_switching_rule_urlbuilder.go
- get_backend_switching_rule.go
- get_backend_switching_rule_parameters.go
- get_backend_switching_rule_responses.go
- get_backend_switching_rule_urlbuilder.go
- get_backend_switching_rules.go
- get_backend_switching_rules_parameters.go
- get_backend_switching_rules_responses.go
- get_backend_switching_rules_urlbuilder.go
- replace_backend_switching_rule.go
- replace_backend_switching_rule_parameters.go
- replace_backend_switching_rule_responses.go
- replace_backend_switching_rule_urlbuilder.go