Documentation ¶
Index ¶
- Constants
- type CreateTCPResponseRule
- type CreateTCPResponseRuleAccepted
- func (o *CreateTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)
- func (o *CreateTCPResponseRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateTCPResponseRuleAccepted) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleAccepted
- func (o *CreateTCPResponseRuleAccepted) WithReloadID(reloadID string) *CreateTCPResponseRuleAccepted
- func (o *CreateTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPResponseRuleBadRequest
- func (o *CreateTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPResponseRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleBadRequest
- func (o *CreateTCPResponseRuleBadRequest) WithPayload(payload *models.Error) *CreateTCPResponseRuleBadRequest
- func (o *CreateTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPResponseRuleConflict
- func (o *CreateTCPResponseRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPResponseRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateTCPResponseRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleConflict
- func (o *CreateTCPResponseRuleConflict) WithPayload(payload *models.Error) *CreateTCPResponseRuleConflict
- func (o *CreateTCPResponseRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPResponseRuleCreated
- func (o *CreateTCPResponseRuleCreated) SetPayload(payload *models.TCPResponseRule)
- func (o *CreateTCPResponseRuleCreated) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleCreated
- func (o *CreateTCPResponseRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPResponseRuleDefault
- func (o *CreateTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateTCPResponseRuleDefault) SetStatusCode(code int)
- func (o *CreateTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleDefault
- func (o *CreateTCPResponseRuleDefault) WithPayload(payload *models.Error) *CreateTCPResponseRuleDefault
- func (o *CreateTCPResponseRuleDefault) WithStatusCode(code int) *CreateTCPResponseRuleDefault
- func (o *CreateTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPResponseRuleHandler
- type CreateTCPResponseRuleHandlerFunc
- type CreateTCPResponseRuleParams
- type CreateTCPResponseRuleURL
- func (o *CreateTCPResponseRuleURL) Build() (*url.URL, error)
- func (o *CreateTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateTCPResponseRuleURL) SetBasePath(bp string)
- func (o *CreateTCPResponseRuleURL) String() string
- func (o *CreateTCPResponseRuleURL) StringFull(scheme, host string) string
- func (o *CreateTCPResponseRuleURL) WithBasePath(bp string) *CreateTCPResponseRuleURL
- type DeleteTCPResponseRule
- type DeleteTCPResponseRuleAccepted
- type DeleteTCPResponseRuleDefault
- func (o *DeleteTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteTCPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteTCPResponseRuleDefault) SetStatusCode(code int)
- func (o *DeleteTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleDefault
- func (o *DeleteTCPResponseRuleDefault) WithPayload(payload *models.Error) *DeleteTCPResponseRuleDefault
- func (o *DeleteTCPResponseRuleDefault) WithStatusCode(code int) *DeleteTCPResponseRuleDefault
- func (o *DeleteTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTCPResponseRuleHandler
- type DeleteTCPResponseRuleHandlerFunc
- type DeleteTCPResponseRuleNoContent
- type DeleteTCPResponseRuleNotFound
- func (o *DeleteTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteTCPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleNotFound
- func (o *DeleteTCPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteTCPResponseRuleNotFound
- func (o *DeleteTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTCPResponseRuleParams
- type DeleteTCPResponseRuleURL
- func (o *DeleteTCPResponseRuleURL) Build() (*url.URL, error)
- func (o *DeleteTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTCPResponseRuleURL) SetBasePath(bp string)
- func (o *DeleteTCPResponseRuleURL) String() string
- func (o *DeleteTCPResponseRuleURL) StringFull(scheme, host string) string
- func (o *DeleteTCPResponseRuleURL) WithBasePath(bp string) *DeleteTCPResponseRuleURL
- type GetTCPResponseRule
- type GetTCPResponseRuleDefault
- func (o *GetTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *GetTCPResponseRuleDefault) SetStatusCode(code int)
- func (o *GetTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleDefault
- func (o *GetTCPResponseRuleDefault) WithPayload(payload *models.Error) *GetTCPResponseRuleDefault
- func (o *GetTCPResponseRuleDefault) WithStatusCode(code int) *GetTCPResponseRuleDefault
- func (o *GetTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPResponseRuleHandler
- type GetTCPResponseRuleHandlerFunc
- type GetTCPResponseRuleNotFound
- func (o *GetTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleNotFound
- func (o *GetTCPResponseRuleNotFound) WithPayload(payload *models.Error) *GetTCPResponseRuleNotFound
- func (o *GetTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPResponseRuleOK
- func (o *GetTCPResponseRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPResponseRuleOK) SetPayload(payload *GetTCPResponseRuleOKBody)
- func (o *GetTCPResponseRuleOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleOK
- func (o *GetTCPResponseRuleOK) WithPayload(payload *GetTCPResponseRuleOKBody) *GetTCPResponseRuleOK
- func (o *GetTCPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPResponseRuleOKBody
- type GetTCPResponseRuleParams
- type GetTCPResponseRuleURL
- func (o *GetTCPResponseRuleURL) Build() (*url.URL, error)
- func (o *GetTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTCPResponseRuleURL) SetBasePath(bp string)
- func (o *GetTCPResponseRuleURL) String() string
- func (o *GetTCPResponseRuleURL) StringFull(scheme, host string) string
- func (o *GetTCPResponseRuleURL) WithBasePath(bp string) *GetTCPResponseRuleURL
- type GetTCPResponseRules
- type GetTCPResponseRulesDefault
- func (o *GetTCPResponseRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPResponseRulesDefault) SetPayload(payload *models.Error)
- func (o *GetTCPResponseRulesDefault) SetStatusCode(code int)
- func (o *GetTCPResponseRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesDefault
- func (o *GetTCPResponseRulesDefault) WithPayload(payload *models.Error) *GetTCPResponseRulesDefault
- func (o *GetTCPResponseRulesDefault) WithStatusCode(code int) *GetTCPResponseRulesDefault
- func (o *GetTCPResponseRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPResponseRulesHandler
- type GetTCPResponseRulesHandlerFunc
- type GetTCPResponseRulesOK
- func (o *GetTCPResponseRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPResponseRulesOK) SetPayload(payload *GetTCPResponseRulesOKBody)
- func (o *GetTCPResponseRulesOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesOK
- func (o *GetTCPResponseRulesOK) WithPayload(payload *GetTCPResponseRulesOKBody) *GetTCPResponseRulesOK
- func (o *GetTCPResponseRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPResponseRulesOKBody
- type GetTCPResponseRulesParams
- type GetTCPResponseRulesURL
- func (o *GetTCPResponseRulesURL) Build() (*url.URL, error)
- func (o *GetTCPResponseRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTCPResponseRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTCPResponseRulesURL) SetBasePath(bp string)
- func (o *GetTCPResponseRulesURL) String() string
- func (o *GetTCPResponseRulesURL) StringFull(scheme, host string) string
- func (o *GetTCPResponseRulesURL) WithBasePath(bp string) *GetTCPResponseRulesURL
- type ReplaceTCPResponseRule
- type ReplaceTCPResponseRuleAccepted
- func (o *ReplaceTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)
- func (o *ReplaceTCPResponseRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceTCPResponseRuleAccepted) WithPayload(payload *models.TCPResponseRule) *ReplaceTCPResponseRuleAccepted
- func (o *ReplaceTCPResponseRuleAccepted) WithReloadID(reloadID string) *ReplaceTCPResponseRuleAccepted
- func (o *ReplaceTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPResponseRuleBadRequest
- func (o *ReplaceTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPResponseRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleBadRequest
- func (o *ReplaceTCPResponseRuleBadRequest) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleBadRequest
- func (o *ReplaceTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPResponseRuleDefault
- func (o *ReplaceTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceTCPResponseRuleDefault) SetStatusCode(code int)
- func (o *ReplaceTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleDefault
- func (o *ReplaceTCPResponseRuleDefault) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleDefault
- func (o *ReplaceTCPResponseRuleDefault) WithStatusCode(code int) *ReplaceTCPResponseRuleDefault
- func (o *ReplaceTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPResponseRuleHandler
- type ReplaceTCPResponseRuleHandlerFunc
- type ReplaceTCPResponseRuleNotFound
- func (o *ReplaceTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleNotFound
- func (o *ReplaceTCPResponseRuleNotFound) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleNotFound
- func (o *ReplaceTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPResponseRuleOK
- type ReplaceTCPResponseRuleParams
- type ReplaceTCPResponseRuleURL
- func (o *ReplaceTCPResponseRuleURL) Build() (*url.URL, error)
- func (o *ReplaceTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceTCPResponseRuleURL) SetBasePath(bp string)
- func (o *ReplaceTCPResponseRuleURL) String() string
- func (o *ReplaceTCPResponseRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceTCPResponseRuleURL) WithBasePath(bp string) *ReplaceTCPResponseRuleURL
Constants ¶
const CreateTCPResponseRuleAcceptedCode int = 202
CreateTCPResponseRuleAcceptedCode is the HTTP code returned for type CreateTCPResponseRuleAccepted
const CreateTCPResponseRuleBadRequestCode int = 400
CreateTCPResponseRuleBadRequestCode is the HTTP code returned for type CreateTCPResponseRuleBadRequest
const CreateTCPResponseRuleConflictCode int = 409
CreateTCPResponseRuleConflictCode is the HTTP code returned for type CreateTCPResponseRuleConflict
const CreateTCPResponseRuleCreatedCode int = 201
CreateTCPResponseRuleCreatedCode is the HTTP code returned for type CreateTCPResponseRuleCreated
const DeleteTCPResponseRuleAcceptedCode int = 202
DeleteTCPResponseRuleAcceptedCode is the HTTP code returned for type DeleteTCPResponseRuleAccepted
const DeleteTCPResponseRuleNoContentCode int = 204
DeleteTCPResponseRuleNoContentCode is the HTTP code returned for type DeleteTCPResponseRuleNoContent
const DeleteTCPResponseRuleNotFoundCode int = 404
DeleteTCPResponseRuleNotFoundCode is the HTTP code returned for type DeleteTCPResponseRuleNotFound
const GetTCPResponseRuleNotFoundCode int = 404
GetTCPResponseRuleNotFoundCode is the HTTP code returned for type GetTCPResponseRuleNotFound
const GetTCPResponseRuleOKCode int = 200
GetTCPResponseRuleOKCode is the HTTP code returned for type GetTCPResponseRuleOK
const GetTCPResponseRulesOKCode int = 200
GetTCPResponseRulesOKCode is the HTTP code returned for type GetTCPResponseRulesOK
const ReplaceTCPResponseRuleAcceptedCode int = 202
ReplaceTCPResponseRuleAcceptedCode is the HTTP code returned for type ReplaceTCPResponseRuleAccepted
const ReplaceTCPResponseRuleBadRequestCode int = 400
ReplaceTCPResponseRuleBadRequestCode is the HTTP code returned for type ReplaceTCPResponseRuleBadRequest
const ReplaceTCPResponseRuleNotFoundCode int = 404
ReplaceTCPResponseRuleNotFoundCode is the HTTP code returned for type ReplaceTCPResponseRuleNotFound
const ReplaceTCPResponseRuleOKCode int = 200
ReplaceTCPResponseRuleOKCode is the HTTP code returned for type ReplaceTCPResponseRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTCPResponseRule ¶
type CreateTCPResponseRule struct { Context *middleware.Context Handler CreateTCPResponseRuleHandler }
CreateTCPResponseRule swagger:route POST /services/haproxy/configuration/tcp_response_rules TCPResponseRule createTcpResponseRule
Add a new TCP Response Rule ¶
Adds a new TCP Response Rule of the specified type in the specified backend.
func NewCreateTCPResponseRule ¶
func NewCreateTCPResponseRule(ctx *middleware.Context, handler CreateTCPResponseRuleHandler) *CreateTCPResponseRule
NewCreateTCPResponseRule creates a new http.Handler for the create TCP response rule operation
func (*CreateTCPResponseRule) ServeHTTP ¶
func (o *CreateTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateTCPResponseRuleAccepted ¶
type CreateTCPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.TCPResponseRule `json:"body,omitempty"` }
CreateTCPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response createTcpResponseRuleAccepted
func NewCreateTCPResponseRuleAccepted ¶
func NewCreateTCPResponseRuleAccepted() *CreateTCPResponseRuleAccepted
NewCreateTCPResponseRuleAccepted creates CreateTCPResponseRuleAccepted with default headers values
func (*CreateTCPResponseRuleAccepted) SetPayload ¶
func (o *CreateTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)
SetPayload sets the payload to the create Tcp response rule accepted response
func (*CreateTCPResponseRuleAccepted) SetReloadID ¶
func (o *CreateTCPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create Tcp response rule accepted response
func (*CreateTCPResponseRuleAccepted) WithPayload ¶
func (o *CreateTCPResponseRuleAccepted) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleAccepted
WithPayload adds the payload to the create Tcp response rule accepted response
func (*CreateTCPResponseRuleAccepted) WithReloadID ¶
func (o *CreateTCPResponseRuleAccepted) WithReloadID(reloadID string) *CreateTCPResponseRuleAccepted
WithReloadID adds the reloadId to the create Tcp response rule accepted response
func (*CreateTCPResponseRuleAccepted) WriteResponse ¶
func (o *CreateTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTCPResponseRuleBadRequest ¶
type CreateTCPResponseRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateTCPResponseRuleBadRequest Bad request
swagger:response createTcpResponseRuleBadRequest
func NewCreateTCPResponseRuleBadRequest ¶
func NewCreateTCPResponseRuleBadRequest() *CreateTCPResponseRuleBadRequest
NewCreateTCPResponseRuleBadRequest creates CreateTCPResponseRuleBadRequest with default headers values
func (*CreateTCPResponseRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Tcp response rule bad request response
func (*CreateTCPResponseRuleBadRequest) SetPayload ¶
func (o *CreateTCPResponseRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Tcp response rule bad request response
func (*CreateTCPResponseRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the create Tcp response rule bad request response
func (*CreateTCPResponseRuleBadRequest) WithPayload ¶
func (o *CreateTCPResponseRuleBadRequest) WithPayload(payload *models.Error) *CreateTCPResponseRuleBadRequest
WithPayload adds the payload to the create Tcp response rule bad request response
func (*CreateTCPResponseRuleBadRequest) WriteResponse ¶
func (o *CreateTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTCPResponseRuleConflict ¶
type CreateTCPResponseRuleConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateTCPResponseRuleConflict The specified resource already exists
swagger:response createTcpResponseRuleConflict
func NewCreateTCPResponseRuleConflict ¶
func NewCreateTCPResponseRuleConflict() *CreateTCPResponseRuleConflict
NewCreateTCPResponseRuleConflict creates CreateTCPResponseRuleConflict with default headers values
func (*CreateTCPResponseRuleConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Tcp response rule conflict response
func (*CreateTCPResponseRuleConflict) SetPayload ¶
func (o *CreateTCPResponseRuleConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Tcp response rule conflict response
func (*CreateTCPResponseRuleConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleConflict
WithConfigurationVersion adds the configurationVersion to the create Tcp response rule conflict response
func (*CreateTCPResponseRuleConflict) WithPayload ¶
func (o *CreateTCPResponseRuleConflict) WithPayload(payload *models.Error) *CreateTCPResponseRuleConflict
WithPayload adds the payload to the create Tcp response rule conflict response
func (*CreateTCPResponseRuleConflict) WriteResponse ¶
func (o *CreateTCPResponseRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTCPResponseRuleCreated ¶
type CreateTCPResponseRuleCreated struct { /* In: Body */ Payload *models.TCPResponseRule `json:"body,omitempty"` }
CreateTCPResponseRuleCreated TCP Response Rule created
swagger:response createTcpResponseRuleCreated
func NewCreateTCPResponseRuleCreated ¶
func NewCreateTCPResponseRuleCreated() *CreateTCPResponseRuleCreated
NewCreateTCPResponseRuleCreated creates CreateTCPResponseRuleCreated with default headers values
func (*CreateTCPResponseRuleCreated) SetPayload ¶
func (o *CreateTCPResponseRuleCreated) SetPayload(payload *models.TCPResponseRule)
SetPayload sets the payload to the create Tcp response rule created response
func (*CreateTCPResponseRuleCreated) WithPayload ¶
func (o *CreateTCPResponseRuleCreated) WithPayload(payload *models.TCPResponseRule) *CreateTCPResponseRuleCreated
WithPayload adds the payload to the create Tcp response rule created response
func (*CreateTCPResponseRuleCreated) WriteResponse ¶
func (o *CreateTCPResponseRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTCPResponseRuleDefault ¶
type CreateTCPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateTCPResponseRuleDefault General Error
swagger:response createTcpResponseRuleDefault
func NewCreateTCPResponseRuleDefault ¶
func NewCreateTCPResponseRuleDefault(code int) *CreateTCPResponseRuleDefault
NewCreateTCPResponseRuleDefault creates CreateTCPResponseRuleDefault with default headers values
func (*CreateTCPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) SetPayload ¶
func (o *CreateTCPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) SetStatusCode ¶
func (o *CreateTCPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) WithPayload ¶
func (o *CreateTCPResponseRuleDefault) WithPayload(payload *models.Error) *CreateTCPResponseRuleDefault
WithPayload adds the payload to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) WithStatusCode ¶
func (o *CreateTCPResponseRuleDefault) WithStatusCode(code int) *CreateTCPResponseRuleDefault
WithStatusCode adds the status to the create TCP response rule default response
func (*CreateTCPResponseRuleDefault) WriteResponse ¶
func (o *CreateTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTCPResponseRuleHandler ¶
type CreateTCPResponseRuleHandler interface {
Handle(CreateTCPResponseRuleParams, interface{}) middleware.Responder
}
CreateTCPResponseRuleHandler interface for that can handle valid create TCP response rule params
type CreateTCPResponseRuleHandlerFunc ¶
type CreateTCPResponseRuleHandlerFunc func(CreateTCPResponseRuleParams, interface{}) middleware.Responder
CreateTCPResponseRuleHandlerFunc turns a function with the right signature into a create TCP response rule handler
func (CreateTCPResponseRuleHandlerFunc) Handle ¶
func (fn CreateTCPResponseRuleHandlerFunc) Handle(params CreateTCPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateTCPResponseRuleParams ¶
type CreateTCPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.TCPResponseRule /*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 }
CreateTCPResponseRuleParams contains all the bound params for the create TCP response rule operation typically these are obtained from a http.Request
swagger:parameters createTCPResponseRule
func NewCreateTCPResponseRuleParams ¶
func NewCreateTCPResponseRuleParams() CreateTCPResponseRuleParams
NewCreateTCPResponseRuleParams creates a new CreateTCPResponseRuleParams object with the default values initialized.
func (*CreateTCPResponseRuleParams) BindRequest ¶
func (o *CreateTCPResponseRuleParams) 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 NewCreateTCPResponseRuleParams() beforehand.
type CreateTCPResponseRuleURL ¶
type CreateTCPResponseRuleURL struct { Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateTCPResponseRuleURL generates an URL for the create TCP response rule operation
func (*CreateTCPResponseRuleURL) Build ¶
func (o *CreateTCPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateTCPResponseRuleURL) BuildFull ¶
func (o *CreateTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateTCPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateTCPResponseRuleURL) SetBasePath ¶
func (o *CreateTCPResponseRuleURL) 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 (*CreateTCPResponseRuleURL) String ¶
func (o *CreateTCPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*CreateTCPResponseRuleURL) StringFull ¶
func (o *CreateTCPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateTCPResponseRuleURL) WithBasePath ¶
func (o *CreateTCPResponseRuleURL) WithBasePath(bp string) *CreateTCPResponseRuleURL
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 DeleteTCPResponseRule ¶
type DeleteTCPResponseRule struct { Context *middleware.Context Handler DeleteTCPResponseRuleHandler }
DeleteTCPResponseRule swagger:route DELETE /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule deleteTcpResponseRule
Delete a TCP Response Rule ¶
Deletes a TCP Response Rule configuration by it's ID from the specified backend.
func NewDeleteTCPResponseRule ¶
func NewDeleteTCPResponseRule(ctx *middleware.Context, handler DeleteTCPResponseRuleHandler) *DeleteTCPResponseRule
NewDeleteTCPResponseRule creates a new http.Handler for the delete TCP response rule operation
func (*DeleteTCPResponseRule) ServeHTTP ¶
func (o *DeleteTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTCPResponseRuleAccepted ¶
type DeleteTCPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteTCPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response deleteTcpResponseRuleAccepted
func NewDeleteTCPResponseRuleAccepted ¶
func NewDeleteTCPResponseRuleAccepted() *DeleteTCPResponseRuleAccepted
NewDeleteTCPResponseRuleAccepted creates DeleteTCPResponseRuleAccepted with default headers values
func (*DeleteTCPResponseRuleAccepted) SetReloadID ¶
func (o *DeleteTCPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete Tcp response rule accepted response
func (*DeleteTCPResponseRuleAccepted) WithReloadID ¶
func (o *DeleteTCPResponseRuleAccepted) WithReloadID(reloadID string) *DeleteTCPResponseRuleAccepted
WithReloadID adds the reloadId to the delete Tcp response rule accepted response
func (*DeleteTCPResponseRuleAccepted) WriteResponse ¶
func (o *DeleteTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTCPResponseRuleDefault ¶
type DeleteTCPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteTCPResponseRuleDefault General Error
swagger:response deleteTcpResponseRuleDefault
func NewDeleteTCPResponseRuleDefault ¶
func NewDeleteTCPResponseRuleDefault(code int) *DeleteTCPResponseRuleDefault
NewDeleteTCPResponseRuleDefault creates DeleteTCPResponseRuleDefault with default headers values
func (*DeleteTCPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) SetPayload ¶
func (o *DeleteTCPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) SetStatusCode ¶
func (o *DeleteTCPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) WithPayload ¶
func (o *DeleteTCPResponseRuleDefault) WithPayload(payload *models.Error) *DeleteTCPResponseRuleDefault
WithPayload adds the payload to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) WithStatusCode ¶
func (o *DeleteTCPResponseRuleDefault) WithStatusCode(code int) *DeleteTCPResponseRuleDefault
WithStatusCode adds the status to the delete TCP response rule default response
func (*DeleteTCPResponseRuleDefault) WriteResponse ¶
func (o *DeleteTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTCPResponseRuleHandler ¶
type DeleteTCPResponseRuleHandler interface {
Handle(DeleteTCPResponseRuleParams, interface{}) middleware.Responder
}
DeleteTCPResponseRuleHandler interface for that can handle valid delete TCP response rule params
type DeleteTCPResponseRuleHandlerFunc ¶
type DeleteTCPResponseRuleHandlerFunc func(DeleteTCPResponseRuleParams, interface{}) middleware.Responder
DeleteTCPResponseRuleHandlerFunc turns a function with the right signature into a delete TCP response rule handler
func (DeleteTCPResponseRuleHandlerFunc) Handle ¶
func (fn DeleteTCPResponseRuleHandlerFunc) Handle(params DeleteTCPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteTCPResponseRuleNoContent ¶
type DeleteTCPResponseRuleNoContent struct { }
DeleteTCPResponseRuleNoContent TCP Response Rule deleted
swagger:response deleteTcpResponseRuleNoContent
func NewDeleteTCPResponseRuleNoContent ¶
func NewDeleteTCPResponseRuleNoContent() *DeleteTCPResponseRuleNoContent
NewDeleteTCPResponseRuleNoContent creates DeleteTCPResponseRuleNoContent with default headers values
func (*DeleteTCPResponseRuleNoContent) WriteResponse ¶
func (o *DeleteTCPResponseRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTCPResponseRuleNotFound ¶
type DeleteTCPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteTCPResponseRuleNotFound The specified resource was not found
swagger:response deleteTcpResponseRuleNotFound
func NewDeleteTCPResponseRuleNotFound ¶
func NewDeleteTCPResponseRuleNotFound() *DeleteTCPResponseRuleNotFound
NewDeleteTCPResponseRuleNotFound creates DeleteTCPResponseRuleNotFound with default headers values
func (*DeleteTCPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete Tcp response rule not found response
func (*DeleteTCPResponseRuleNotFound) SetPayload ¶
func (o *DeleteTCPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete Tcp response rule not found response
func (*DeleteTCPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the delete Tcp response rule not found response
func (*DeleteTCPResponseRuleNotFound) WithPayload ¶
func (o *DeleteTCPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteTCPResponseRuleNotFound
WithPayload adds the payload to the delete Tcp response rule not found response
func (*DeleteTCPResponseRuleNotFound) WriteResponse ¶
func (o *DeleteTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTCPResponseRuleParams ¶
type DeleteTCPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent 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 /*TCP Response 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 }
DeleteTCPResponseRuleParams contains all the bound params for the delete TCP response rule operation typically these are obtained from a http.Request
swagger:parameters deleteTCPResponseRule
func NewDeleteTCPResponseRuleParams ¶
func NewDeleteTCPResponseRuleParams() DeleteTCPResponseRuleParams
NewDeleteTCPResponseRuleParams creates a new DeleteTCPResponseRuleParams object with the default values initialized.
func (*DeleteTCPResponseRuleParams) BindRequest ¶
func (o *DeleteTCPResponseRuleParams) 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 NewDeleteTCPResponseRuleParams() beforehand.
type DeleteTCPResponseRuleURL ¶
type DeleteTCPResponseRuleURL struct { ID int64 Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteTCPResponseRuleURL generates an URL for the delete TCP response rule operation
func (*DeleteTCPResponseRuleURL) Build ¶
func (o *DeleteTCPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTCPResponseRuleURL) BuildFull ¶
func (o *DeleteTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTCPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTCPResponseRuleURL) SetBasePath ¶
func (o *DeleteTCPResponseRuleURL) 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 (*DeleteTCPResponseRuleURL) String ¶
func (o *DeleteTCPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteTCPResponseRuleURL) StringFull ¶
func (o *DeleteTCPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTCPResponseRuleURL) WithBasePath ¶
func (o *DeleteTCPResponseRuleURL) WithBasePath(bp string) *DeleteTCPResponseRuleURL
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 GetTCPResponseRule ¶
type GetTCPResponseRule struct { Context *middleware.Context Handler GetTCPResponseRuleHandler }
GetTCPResponseRule swagger:route GET /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule getTcpResponseRule
Return one TCP Response Rule ¶
Returns one TCP Response Rule configuration by it's ID in the specified backend.
func NewGetTCPResponseRule ¶
func NewGetTCPResponseRule(ctx *middleware.Context, handler GetTCPResponseRuleHandler) *GetTCPResponseRule
NewGetTCPResponseRule creates a new http.Handler for the get TCP response rule operation
func (*GetTCPResponseRule) ServeHTTP ¶
func (o *GetTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTCPResponseRuleDefault ¶
type GetTCPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetTCPResponseRuleDefault General Error
swagger:response getTcpResponseRuleDefault
func NewGetTCPResponseRuleDefault ¶
func NewGetTCPResponseRuleDefault(code int) *GetTCPResponseRuleDefault
NewGetTCPResponseRuleDefault creates GetTCPResponseRuleDefault with default headers values
func (*GetTCPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) SetPayload ¶
func (o *GetTCPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) SetStatusCode ¶
func (o *GetTCPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) WithPayload ¶
func (o *GetTCPResponseRuleDefault) WithPayload(payload *models.Error) *GetTCPResponseRuleDefault
WithPayload adds the payload to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) WithStatusCode ¶
func (o *GetTCPResponseRuleDefault) WithStatusCode(code int) *GetTCPResponseRuleDefault
WithStatusCode adds the status to the get TCP response rule default response
func (*GetTCPResponseRuleDefault) WriteResponse ¶
func (o *GetTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTCPResponseRuleHandler ¶
type GetTCPResponseRuleHandler interface {
Handle(GetTCPResponseRuleParams, interface{}) middleware.Responder
}
GetTCPResponseRuleHandler interface for that can handle valid get TCP response rule params
type GetTCPResponseRuleHandlerFunc ¶
type GetTCPResponseRuleHandlerFunc func(GetTCPResponseRuleParams, interface{}) middleware.Responder
GetTCPResponseRuleHandlerFunc turns a function with the right signature into a get TCP response rule handler
func (GetTCPResponseRuleHandlerFunc) Handle ¶
func (fn GetTCPResponseRuleHandlerFunc) Handle(params GetTCPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetTCPResponseRuleNotFound ¶
type GetTCPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetTCPResponseRuleNotFound The specified resource was not found
swagger:response getTcpResponseRuleNotFound
func NewGetTCPResponseRuleNotFound ¶
func NewGetTCPResponseRuleNotFound() *GetTCPResponseRuleNotFound
NewGetTCPResponseRuleNotFound creates GetTCPResponseRuleNotFound with default headers values
func (*GetTCPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Tcp response rule not found response
func (*GetTCPResponseRuleNotFound) SetPayload ¶
func (o *GetTCPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Tcp response rule not found response
func (*GetTCPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the get Tcp response rule not found response
func (*GetTCPResponseRuleNotFound) WithPayload ¶
func (o *GetTCPResponseRuleNotFound) WithPayload(payload *models.Error) *GetTCPResponseRuleNotFound
WithPayload adds the payload to the get Tcp response rule not found response
func (*GetTCPResponseRuleNotFound) WriteResponse ¶
func (o *GetTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTCPResponseRuleOK ¶
type GetTCPResponseRuleOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetTCPResponseRuleOKBody `json:"body,omitempty"` }
GetTCPResponseRuleOK Successful operation
swagger:response getTcpResponseRuleOK
func NewGetTCPResponseRuleOK ¶
func NewGetTCPResponseRuleOK() *GetTCPResponseRuleOK
NewGetTCPResponseRuleOK creates GetTCPResponseRuleOK with default headers values
func (*GetTCPResponseRuleOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Tcp response rule o k response
func (*GetTCPResponseRuleOK) SetPayload ¶
func (o *GetTCPResponseRuleOK) SetPayload(payload *GetTCPResponseRuleOKBody)
SetPayload sets the payload to the get Tcp response rule o k response
func (*GetTCPResponseRuleOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRuleOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleOK
WithConfigurationVersion adds the configurationVersion to the get Tcp response rule o k response
func (*GetTCPResponseRuleOK) WithPayload ¶
func (o *GetTCPResponseRuleOK) WithPayload(payload *GetTCPResponseRuleOKBody) *GetTCPResponseRuleOK
WithPayload adds the payload to the get Tcp response rule o k response
func (*GetTCPResponseRuleOK) WriteResponse ¶
func (o *GetTCPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTCPResponseRuleOKBody ¶
type GetTCPResponseRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.TCPResponseRule `json:"data,omitempty"` }
GetTCPResponseRuleOKBody get TCP response rule o k body swagger:model GetTCPResponseRuleOKBody
func (*GetTCPResponseRuleOKBody) MarshalBinary ¶
func (o *GetTCPResponseRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetTCPResponseRuleOKBody) UnmarshalBinary ¶
func (o *GetTCPResponseRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetTCPResponseRuleParams ¶
type GetTCPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /*TCP Response 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 }
GetTCPResponseRuleParams contains all the bound params for the get TCP response rule operation typically these are obtained from a http.Request
swagger:parameters getTCPResponseRule
func NewGetTCPResponseRuleParams ¶
func NewGetTCPResponseRuleParams() GetTCPResponseRuleParams
NewGetTCPResponseRuleParams creates a new GetTCPResponseRuleParams object no default values defined in spec.
func (*GetTCPResponseRuleParams) BindRequest ¶
func (o *GetTCPResponseRuleParams) 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 NewGetTCPResponseRuleParams() beforehand.
type GetTCPResponseRuleURL ¶
type GetTCPResponseRuleURL struct { ID int64 Backend string TransactionID *string // contains filtered or unexported fields }
GetTCPResponseRuleURL generates an URL for the get TCP response rule operation
func (*GetTCPResponseRuleURL) Build ¶
func (o *GetTCPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTCPResponseRuleURL) BuildFull ¶
func (o *GetTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTCPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTCPResponseRuleURL) SetBasePath ¶
func (o *GetTCPResponseRuleURL) 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 (*GetTCPResponseRuleURL) String ¶
func (o *GetTCPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*GetTCPResponseRuleURL) StringFull ¶
func (o *GetTCPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTCPResponseRuleURL) WithBasePath ¶
func (o *GetTCPResponseRuleURL) WithBasePath(bp string) *GetTCPResponseRuleURL
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 GetTCPResponseRules ¶
type GetTCPResponseRules struct { Context *middleware.Context Handler GetTCPResponseRulesHandler }
GetTCPResponseRules swagger:route GET /services/haproxy/configuration/tcp_response_rules TCPResponseRule getTcpResponseRules
Return an array of all TCP Response Rules ¶
Returns all TCP Response Rules that are configured in specified backend.
func NewGetTCPResponseRules ¶
func NewGetTCPResponseRules(ctx *middleware.Context, handler GetTCPResponseRulesHandler) *GetTCPResponseRules
NewGetTCPResponseRules creates a new http.Handler for the get TCP response rules operation
func (*GetTCPResponseRules) ServeHTTP ¶
func (o *GetTCPResponseRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTCPResponseRulesDefault ¶
type GetTCPResponseRulesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetTCPResponseRulesDefault General Error
swagger:response getTcpResponseRulesDefault
func NewGetTCPResponseRulesDefault ¶
func NewGetTCPResponseRulesDefault(code int) *GetTCPResponseRulesDefault
NewGetTCPResponseRulesDefault creates GetTCPResponseRulesDefault with default headers values
func (*GetTCPResponseRulesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRulesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) SetPayload ¶
func (o *GetTCPResponseRulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) SetStatusCode ¶
func (o *GetTCPResponseRulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesDefault
WithConfigurationVersion adds the configurationVersion to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) WithPayload ¶
func (o *GetTCPResponseRulesDefault) WithPayload(payload *models.Error) *GetTCPResponseRulesDefault
WithPayload adds the payload to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) WithStatusCode ¶
func (o *GetTCPResponseRulesDefault) WithStatusCode(code int) *GetTCPResponseRulesDefault
WithStatusCode adds the status to the get TCP response rules default response
func (*GetTCPResponseRulesDefault) WriteResponse ¶
func (o *GetTCPResponseRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTCPResponseRulesHandler ¶
type GetTCPResponseRulesHandler interface {
Handle(GetTCPResponseRulesParams, interface{}) middleware.Responder
}
GetTCPResponseRulesHandler interface for that can handle valid get TCP response rules params
type GetTCPResponseRulesHandlerFunc ¶
type GetTCPResponseRulesHandlerFunc func(GetTCPResponseRulesParams, interface{}) middleware.Responder
GetTCPResponseRulesHandlerFunc turns a function with the right signature into a get TCP response rules handler
func (GetTCPResponseRulesHandlerFunc) Handle ¶
func (fn GetTCPResponseRulesHandlerFunc) Handle(params GetTCPResponseRulesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetTCPResponseRulesOK ¶
type GetTCPResponseRulesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetTCPResponseRulesOKBody `json:"body,omitempty"` }
GetTCPResponseRulesOK Successful operation
swagger:response getTcpResponseRulesOK
func NewGetTCPResponseRulesOK ¶
func NewGetTCPResponseRulesOK() *GetTCPResponseRulesOK
NewGetTCPResponseRulesOK creates GetTCPResponseRulesOK with default headers values
func (*GetTCPResponseRulesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRulesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Tcp response rules o k response
func (*GetTCPResponseRulesOK) SetPayload ¶
func (o *GetTCPResponseRulesOK) SetPayload(payload *GetTCPResponseRulesOKBody)
SetPayload sets the payload to the get Tcp response rules o k response
func (*GetTCPResponseRulesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetTCPResponseRulesOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesOK
WithConfigurationVersion adds the configurationVersion to the get Tcp response rules o k response
func (*GetTCPResponseRulesOK) WithPayload ¶
func (o *GetTCPResponseRulesOK) WithPayload(payload *GetTCPResponseRulesOKBody) *GetTCPResponseRulesOK
WithPayload adds the payload to the get Tcp response rules o k response
func (*GetTCPResponseRulesOK) WriteResponse ¶
func (o *GetTCPResponseRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTCPResponseRulesOKBody ¶
type GetTCPResponseRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.TCPResponseRules `json:"data"` }
GetTCPResponseRulesOKBody get TCP response rules o k body swagger:model GetTCPResponseRulesOKBody
func (*GetTCPResponseRulesOKBody) MarshalBinary ¶
func (o *GetTCPResponseRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetTCPResponseRulesOKBody) UnmarshalBinary ¶
func (o *GetTCPResponseRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetTCPResponseRulesParams ¶
type GetTCPResponseRulesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent 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 }
GetTCPResponseRulesParams contains all the bound params for the get TCP response rules operation typically these are obtained from a http.Request
swagger:parameters getTCPResponseRules
func NewGetTCPResponseRulesParams ¶
func NewGetTCPResponseRulesParams() GetTCPResponseRulesParams
NewGetTCPResponseRulesParams creates a new GetTCPResponseRulesParams object no default values defined in spec.
func (*GetTCPResponseRulesParams) BindRequest ¶
func (o *GetTCPResponseRulesParams) 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 NewGetTCPResponseRulesParams() beforehand.
type GetTCPResponseRulesURL ¶
type GetTCPResponseRulesURL struct { Backend string TransactionID *string // contains filtered or unexported fields }
GetTCPResponseRulesURL generates an URL for the get TCP response rules operation
func (*GetTCPResponseRulesURL) Build ¶
func (o *GetTCPResponseRulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTCPResponseRulesURL) BuildFull ¶
func (o *GetTCPResponseRulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTCPResponseRulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTCPResponseRulesURL) SetBasePath ¶
func (o *GetTCPResponseRulesURL) 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 (*GetTCPResponseRulesURL) String ¶
func (o *GetTCPResponseRulesURL) String() string
String returns the string representation of the path with query string
func (*GetTCPResponseRulesURL) StringFull ¶
func (o *GetTCPResponseRulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTCPResponseRulesURL) WithBasePath ¶
func (o *GetTCPResponseRulesURL) WithBasePath(bp string) *GetTCPResponseRulesURL
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 ReplaceTCPResponseRule ¶
type ReplaceTCPResponseRule struct { Context *middleware.Context Handler ReplaceTCPResponseRuleHandler }
ReplaceTCPResponseRule swagger:route PUT /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule replaceTcpResponseRule
Replace a TCP Response Rule ¶
Replaces a TCP Response Rule configuration by it's ID in the specified backend.
func NewReplaceTCPResponseRule ¶
func NewReplaceTCPResponseRule(ctx *middleware.Context, handler ReplaceTCPResponseRuleHandler) *ReplaceTCPResponseRule
NewReplaceTCPResponseRule creates a new http.Handler for the replace TCP response rule operation
func (*ReplaceTCPResponseRule) ServeHTTP ¶
func (o *ReplaceTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceTCPResponseRuleAccepted ¶
type ReplaceTCPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.TCPResponseRule `json:"body,omitempty"` }
ReplaceTCPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response replaceTcpResponseRuleAccepted
func NewReplaceTCPResponseRuleAccepted ¶
func NewReplaceTCPResponseRuleAccepted() *ReplaceTCPResponseRuleAccepted
NewReplaceTCPResponseRuleAccepted creates ReplaceTCPResponseRuleAccepted with default headers values
func (*ReplaceTCPResponseRuleAccepted) SetPayload ¶
func (o *ReplaceTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)
SetPayload sets the payload to the replace Tcp response rule accepted response
func (*ReplaceTCPResponseRuleAccepted) SetReloadID ¶
func (o *ReplaceTCPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace Tcp response rule accepted response
func (*ReplaceTCPResponseRuleAccepted) WithPayload ¶
func (o *ReplaceTCPResponseRuleAccepted) WithPayload(payload *models.TCPResponseRule) *ReplaceTCPResponseRuleAccepted
WithPayload adds the payload to the replace Tcp response rule accepted response
func (*ReplaceTCPResponseRuleAccepted) WithReloadID ¶
func (o *ReplaceTCPResponseRuleAccepted) WithReloadID(reloadID string) *ReplaceTCPResponseRuleAccepted
WithReloadID adds the reloadId to the replace Tcp response rule accepted response
func (*ReplaceTCPResponseRuleAccepted) WriteResponse ¶
func (o *ReplaceTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceTCPResponseRuleBadRequest ¶
type ReplaceTCPResponseRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceTCPResponseRuleBadRequest Bad request
swagger:response replaceTcpResponseRuleBadRequest
func NewReplaceTCPResponseRuleBadRequest ¶
func NewReplaceTCPResponseRuleBadRequest() *ReplaceTCPResponseRuleBadRequest
NewReplaceTCPResponseRuleBadRequest creates ReplaceTCPResponseRuleBadRequest with default headers values
func (*ReplaceTCPResponseRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Tcp response rule bad request response
func (*ReplaceTCPResponseRuleBadRequest) SetPayload ¶
func (o *ReplaceTCPResponseRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Tcp response rule bad request response
func (*ReplaceTCPResponseRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the replace Tcp response rule bad request response
func (*ReplaceTCPResponseRuleBadRequest) WithPayload ¶
func (o *ReplaceTCPResponseRuleBadRequest) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleBadRequest
WithPayload adds the payload to the replace Tcp response rule bad request response
func (*ReplaceTCPResponseRuleBadRequest) WriteResponse ¶
func (o *ReplaceTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceTCPResponseRuleDefault ¶
type ReplaceTCPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceTCPResponseRuleDefault General Error
swagger:response replaceTcpResponseRuleDefault
func NewReplaceTCPResponseRuleDefault ¶
func NewReplaceTCPResponseRuleDefault(code int) *ReplaceTCPResponseRuleDefault
NewReplaceTCPResponseRuleDefault creates ReplaceTCPResponseRuleDefault with default headers values
func (*ReplaceTCPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) SetPayload ¶
func (o *ReplaceTCPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) SetStatusCode ¶
func (o *ReplaceTCPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) WithPayload ¶
func (o *ReplaceTCPResponseRuleDefault) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleDefault
WithPayload adds the payload to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) WithStatusCode ¶
func (o *ReplaceTCPResponseRuleDefault) WithStatusCode(code int) *ReplaceTCPResponseRuleDefault
WithStatusCode adds the status to the replace TCP response rule default response
func (*ReplaceTCPResponseRuleDefault) WriteResponse ¶
func (o *ReplaceTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceTCPResponseRuleHandler ¶
type ReplaceTCPResponseRuleHandler interface {
Handle(ReplaceTCPResponseRuleParams, interface{}) middleware.Responder
}
ReplaceTCPResponseRuleHandler interface for that can handle valid replace TCP response rule params
type ReplaceTCPResponseRuleHandlerFunc ¶
type ReplaceTCPResponseRuleHandlerFunc func(ReplaceTCPResponseRuleParams, interface{}) middleware.Responder
ReplaceTCPResponseRuleHandlerFunc turns a function with the right signature into a replace TCP response rule handler
func (ReplaceTCPResponseRuleHandlerFunc) Handle ¶
func (fn ReplaceTCPResponseRuleHandlerFunc) Handle(params ReplaceTCPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceTCPResponseRuleNotFound ¶
type ReplaceTCPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceTCPResponseRuleNotFound The specified resource was not found
swagger:response replaceTcpResponseRuleNotFound
func NewReplaceTCPResponseRuleNotFound ¶
func NewReplaceTCPResponseRuleNotFound() *ReplaceTCPResponseRuleNotFound
NewReplaceTCPResponseRuleNotFound creates ReplaceTCPResponseRuleNotFound with default headers values
func (*ReplaceTCPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Tcp response rule not found response
func (*ReplaceTCPResponseRuleNotFound) SetPayload ¶
func (o *ReplaceTCPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Tcp response rule not found response
func (*ReplaceTCPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the replace Tcp response rule not found response
func (*ReplaceTCPResponseRuleNotFound) WithPayload ¶
func (o *ReplaceTCPResponseRuleNotFound) WithPayload(payload *models.Error) *ReplaceTCPResponseRuleNotFound
WithPayload adds the payload to the replace Tcp response rule not found response
func (*ReplaceTCPResponseRuleNotFound) WriteResponse ¶
func (o *ReplaceTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceTCPResponseRuleOK ¶
type ReplaceTCPResponseRuleOK struct { /* In: Body */ Payload *models.TCPResponseRule `json:"body,omitempty"` }
ReplaceTCPResponseRuleOK TCP Response Rule replaced
swagger:response replaceTcpResponseRuleOK
func NewReplaceTCPResponseRuleOK ¶
func NewReplaceTCPResponseRuleOK() *ReplaceTCPResponseRuleOK
NewReplaceTCPResponseRuleOK creates ReplaceTCPResponseRuleOK with default headers values
func (*ReplaceTCPResponseRuleOK) SetPayload ¶
func (o *ReplaceTCPResponseRuleOK) SetPayload(payload *models.TCPResponseRule)
SetPayload sets the payload to the replace Tcp response rule o k response
func (*ReplaceTCPResponseRuleOK) WithPayload ¶
func (o *ReplaceTCPResponseRuleOK) WithPayload(payload *models.TCPResponseRule) *ReplaceTCPResponseRuleOK
WithPayload adds the payload to the replace Tcp response rule o k response
func (*ReplaceTCPResponseRuleOK) WriteResponse ¶
func (o *ReplaceTCPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceTCPResponseRuleParams ¶
type ReplaceTCPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.TCPResponseRule /*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 /*TCP Response 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 }
ReplaceTCPResponseRuleParams contains all the bound params for the replace TCP response rule operation typically these are obtained from a http.Request
swagger:parameters replaceTCPResponseRule
func NewReplaceTCPResponseRuleParams ¶
func NewReplaceTCPResponseRuleParams() ReplaceTCPResponseRuleParams
NewReplaceTCPResponseRuleParams creates a new ReplaceTCPResponseRuleParams object with the default values initialized.
func (*ReplaceTCPResponseRuleParams) BindRequest ¶
func (o *ReplaceTCPResponseRuleParams) 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 NewReplaceTCPResponseRuleParams() beforehand.
type ReplaceTCPResponseRuleURL ¶
type ReplaceTCPResponseRuleURL struct { ID int64 Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceTCPResponseRuleURL generates an URL for the replace TCP response rule operation
func (*ReplaceTCPResponseRuleURL) Build ¶
func (o *ReplaceTCPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceTCPResponseRuleURL) BuildFull ¶
func (o *ReplaceTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceTCPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceTCPResponseRuleURL) SetBasePath ¶
func (o *ReplaceTCPResponseRuleURL) 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 (*ReplaceTCPResponseRuleURL) String ¶
func (o *ReplaceTCPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*ReplaceTCPResponseRuleURL) StringFull ¶
func (o *ReplaceTCPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceTCPResponseRuleURL) WithBasePath ¶
func (o *ReplaceTCPResponseRuleURL) WithBasePath(bp string) *ReplaceTCPResponseRuleURL
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_tcp_response_rule.go
- create_tcp_response_rule_parameters.go
- create_tcp_response_rule_responses.go
- create_tcp_response_rule_urlbuilder.go
- delete_tcp_response_rule.go
- delete_tcp_response_rule_parameters.go
- delete_tcp_response_rule_responses.go
- delete_tcp_response_rule_urlbuilder.go
- get_tcp_response_rule.go
- get_tcp_response_rule_parameters.go
- get_tcp_response_rule_responses.go
- get_tcp_response_rule_urlbuilder.go
- get_tcp_response_rules.go
- get_tcp_response_rules_parameters.go
- get_tcp_response_rules_responses.go
- get_tcp_response_rules_urlbuilder.go
- replace_tcp_response_rule.go
- replace_tcp_response_rule_parameters.go
- replace_tcp_response_rule_responses.go
- replace_tcp_response_rule_urlbuilder.go