Documentation
¶
Index ¶
- Constants
- type CreateBackend
- type CreateBackendAccepted
- func (o *CreateBackendAccepted) SetPayload(payload *models.Backend)
- func (o *CreateBackendAccepted) SetReloadID(reloadID string)
- func (o *CreateBackendAccepted) WithPayload(payload *models.Backend) *CreateBackendAccepted
- func (o *CreateBackendAccepted) WithReloadID(reloadID string) *CreateBackendAccepted
- func (o *CreateBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendBadRequest
- func (o *CreateBackendBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendBadRequest) SetPayload(payload *models.Error)
- func (o *CreateBackendBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateBackendBadRequest
- func (o *CreateBackendBadRequest) WithPayload(payload *models.Error) *CreateBackendBadRequest
- func (o *CreateBackendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendConflict
- func (o *CreateBackendConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendConflict) SetPayload(payload *models.Error)
- func (o *CreateBackendConflict) WithConfigurationVersion(configurationVersion int64) *CreateBackendConflict
- func (o *CreateBackendConflict) WithPayload(payload *models.Error) *CreateBackendConflict
- func (o *CreateBackendConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendCreated
- type CreateBackendDefault
- func (o *CreateBackendDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateBackendDefault) SetPayload(payload *models.Error)
- func (o *CreateBackendDefault) SetStatusCode(code int)
- func (o *CreateBackendDefault) WithConfigurationVersion(configurationVersion int64) *CreateBackendDefault
- func (o *CreateBackendDefault) WithPayload(payload *models.Error) *CreateBackendDefault
- func (o *CreateBackendDefault) WithStatusCode(code int) *CreateBackendDefault
- func (o *CreateBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBackendHandler
- type CreateBackendHandlerFunc
- type CreateBackendParams
- type CreateBackendURL
- func (o *CreateBackendURL) Build() (*url.URL, error)
- func (o *CreateBackendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateBackendURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateBackendURL) SetBasePath(bp string)
- func (o *CreateBackendURL) String() string
- func (o *CreateBackendURL) StringFull(scheme, host string) string
- func (o *CreateBackendURL) WithBasePath(bp string) *CreateBackendURL
- type DeleteBackend
- type DeleteBackendAccepted
- type DeleteBackendDefault
- func (o *DeleteBackendDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteBackendDefault) SetPayload(payload *models.Error)
- func (o *DeleteBackendDefault) SetStatusCode(code int)
- func (o *DeleteBackendDefault) WithConfigurationVersion(configurationVersion int64) *DeleteBackendDefault
- func (o *DeleteBackendDefault) WithPayload(payload *models.Error) *DeleteBackendDefault
- func (o *DeleteBackendDefault) WithStatusCode(code int) *DeleteBackendDefault
- func (o *DeleteBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteBackendHandler
- type DeleteBackendHandlerFunc
- type DeleteBackendNoContent
- type DeleteBackendNotFound
- func (o *DeleteBackendNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteBackendNotFound) SetPayload(payload *models.Error)
- func (o *DeleteBackendNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteBackendNotFound
- func (o *DeleteBackendNotFound) WithPayload(payload *models.Error) *DeleteBackendNotFound
- func (o *DeleteBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteBackendParams
- type DeleteBackendURL
- func (o *DeleteBackendURL) Build() (*url.URL, error)
- func (o *DeleteBackendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteBackendURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteBackendURL) SetBasePath(bp string)
- func (o *DeleteBackendURL) String() string
- func (o *DeleteBackendURL) StringFull(scheme, host string) string
- func (o *DeleteBackendURL) WithBasePath(bp string) *DeleteBackendURL
- type GetBackend
- type GetBackendDefault
- func (o *GetBackendDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendDefault) SetPayload(payload *models.Error)
- func (o *GetBackendDefault) SetStatusCode(code int)
- func (o *GetBackendDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendDefault
- func (o *GetBackendDefault) WithPayload(payload *models.Error) *GetBackendDefault
- func (o *GetBackendDefault) WithStatusCode(code int) *GetBackendDefault
- func (o *GetBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendHandler
- type GetBackendHandlerFunc
- type GetBackendNotFound
- func (o *GetBackendNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendNotFound) SetPayload(payload *models.Error)
- func (o *GetBackendNotFound) WithConfigurationVersion(configurationVersion int64) *GetBackendNotFound
- func (o *GetBackendNotFound) WithPayload(payload *models.Error) *GetBackendNotFound
- func (o *GetBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendOK
- func (o *GetBackendOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendOK) SetPayload(payload *GetBackendOKBody)
- func (o *GetBackendOK) WithConfigurationVersion(configurationVersion int64) *GetBackendOK
- func (o *GetBackendOK) WithPayload(payload *GetBackendOKBody) *GetBackendOK
- func (o *GetBackendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendOKBody
- type GetBackendParams
- type GetBackendURL
- func (o *GetBackendURL) Build() (*url.URL, error)
- func (o *GetBackendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackendURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackendURL) SetBasePath(bp string)
- func (o *GetBackendURL) String() string
- func (o *GetBackendURL) StringFull(scheme, host string) string
- func (o *GetBackendURL) WithBasePath(bp string) *GetBackendURL
- type GetBackends
- type GetBackendsDefault
- func (o *GetBackendsDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendsDefault) SetPayload(payload *models.Error)
- func (o *GetBackendsDefault) SetStatusCode(code int)
- func (o *GetBackendsDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendsDefault
- func (o *GetBackendsDefault) WithPayload(payload *models.Error) *GetBackendsDefault
- func (o *GetBackendsDefault) WithStatusCode(code int) *GetBackendsDefault
- func (o *GetBackendsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendsHandler
- type GetBackendsHandlerFunc
- type GetBackendsOK
- func (o *GetBackendsOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetBackendsOK) SetPayload(payload *GetBackendsOKBody)
- func (o *GetBackendsOK) WithConfigurationVersion(configurationVersion int64) *GetBackendsOK
- func (o *GetBackendsOK) WithPayload(payload *GetBackendsOKBody) *GetBackendsOK
- func (o *GetBackendsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBackendsOKBody
- type GetBackendsParams
- type GetBackendsURL
- func (o *GetBackendsURL) Build() (*url.URL, error)
- func (o *GetBackendsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackendsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackendsURL) SetBasePath(bp string)
- func (o *GetBackendsURL) String() string
- func (o *GetBackendsURL) StringFull(scheme, host string) string
- func (o *GetBackendsURL) WithBasePath(bp string) *GetBackendsURL
- type ReplaceBackend
- type ReplaceBackendAccepted
- func (o *ReplaceBackendAccepted) SetPayload(payload *models.Backend)
- func (o *ReplaceBackendAccepted) SetReloadID(reloadID string)
- func (o *ReplaceBackendAccepted) WithPayload(payload *models.Backend) *ReplaceBackendAccepted
- func (o *ReplaceBackendAccepted) WithReloadID(reloadID string) *ReplaceBackendAccepted
- func (o *ReplaceBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendBadRequest
- func (o *ReplaceBackendBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceBackendBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendBadRequest
- func (o *ReplaceBackendBadRequest) WithPayload(payload *models.Error) *ReplaceBackendBadRequest
- func (o *ReplaceBackendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendDefault
- func (o *ReplaceBackendDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendDefault) SetPayload(payload *models.Error)
- func (o *ReplaceBackendDefault) SetStatusCode(code int)
- func (o *ReplaceBackendDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendDefault
- func (o *ReplaceBackendDefault) WithPayload(payload *models.Error) *ReplaceBackendDefault
- func (o *ReplaceBackendDefault) WithStatusCode(code int) *ReplaceBackendDefault
- func (o *ReplaceBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendHandler
- type ReplaceBackendHandlerFunc
- type ReplaceBackendNotFound
- func (o *ReplaceBackendNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceBackendNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceBackendNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendNotFound
- func (o *ReplaceBackendNotFound) WithPayload(payload *models.Error) *ReplaceBackendNotFound
- func (o *ReplaceBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceBackendOK
- type ReplaceBackendParams
- type ReplaceBackendURL
- func (o *ReplaceBackendURL) Build() (*url.URL, error)
- func (o *ReplaceBackendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceBackendURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceBackendURL) SetBasePath(bp string)
- func (o *ReplaceBackendURL) String() string
- func (o *ReplaceBackendURL) StringFull(scheme, host string) string
- func (o *ReplaceBackendURL) WithBasePath(bp string) *ReplaceBackendURL
Constants ¶
const CreateBackendAcceptedCode int = 202
CreateBackendAcceptedCode is the HTTP code returned for type CreateBackendAccepted
const CreateBackendBadRequestCode int = 400
CreateBackendBadRequestCode is the HTTP code returned for type CreateBackendBadRequest
const CreateBackendConflictCode int = 409
CreateBackendConflictCode is the HTTP code returned for type CreateBackendConflict
const CreateBackendCreatedCode int = 201
CreateBackendCreatedCode is the HTTP code returned for type CreateBackendCreated
const DeleteBackendAcceptedCode int = 202
DeleteBackendAcceptedCode is the HTTP code returned for type DeleteBackendAccepted
const DeleteBackendNoContentCode int = 204
DeleteBackendNoContentCode is the HTTP code returned for type DeleteBackendNoContent
const DeleteBackendNotFoundCode int = 404
DeleteBackendNotFoundCode is the HTTP code returned for type DeleteBackendNotFound
const GetBackendNotFoundCode int = 404
GetBackendNotFoundCode is the HTTP code returned for type GetBackendNotFound
const GetBackendOKCode int = 200
GetBackendOKCode is the HTTP code returned for type GetBackendOK
const GetBackendsOKCode int = 200
GetBackendsOKCode is the HTTP code returned for type GetBackendsOK
const ReplaceBackendAcceptedCode int = 202
ReplaceBackendAcceptedCode is the HTTP code returned for type ReplaceBackendAccepted
const ReplaceBackendBadRequestCode int = 400
ReplaceBackendBadRequestCode is the HTTP code returned for type ReplaceBackendBadRequest
const ReplaceBackendNotFoundCode int = 404
ReplaceBackendNotFoundCode is the HTTP code returned for type ReplaceBackendNotFound
const ReplaceBackendOKCode int = 200
ReplaceBackendOKCode is the HTTP code returned for type ReplaceBackendOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateBackend ¶
type CreateBackend struct { Context *middleware.Context Handler CreateBackendHandler }
CreateBackend swagger:route POST /services/haproxy/configuration/backends Backend createBackend
Add a backend ¶
Adds a new backend to the configuration file.
func NewCreateBackend ¶
func NewCreateBackend(ctx *middleware.Context, handler CreateBackendHandler) *CreateBackend
NewCreateBackend creates a new http.Handler for the create backend operation
func (*CreateBackend) ServeHTTP ¶
func (o *CreateBackend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateBackendAccepted ¶
type CreateBackendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Backend `json:"body,omitempty"` }
CreateBackendAccepted Configuration change accepted and reload requested
swagger:response createBackendAccepted
func NewCreateBackendAccepted ¶
func NewCreateBackendAccepted() *CreateBackendAccepted
NewCreateBackendAccepted creates CreateBackendAccepted with default headers values
func (*CreateBackendAccepted) SetPayload ¶
func (o *CreateBackendAccepted) SetPayload(payload *models.Backend)
SetPayload sets the payload to the create backend accepted response
func (*CreateBackendAccepted) SetReloadID ¶
func (o *CreateBackendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create backend accepted response
func (*CreateBackendAccepted) WithPayload ¶
func (o *CreateBackendAccepted) WithPayload(payload *models.Backend) *CreateBackendAccepted
WithPayload adds the payload to the create backend accepted response
func (*CreateBackendAccepted) WithReloadID ¶
func (o *CreateBackendAccepted) WithReloadID(reloadID string) *CreateBackendAccepted
WithReloadID adds the reloadId to the create backend accepted response
func (*CreateBackendAccepted) WriteResponse ¶
func (o *CreateBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendBadRequest ¶
type CreateBackendBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBackendBadRequest Bad request
swagger:response createBackendBadRequest
func NewCreateBackendBadRequest ¶
func NewCreateBackendBadRequest() *CreateBackendBadRequest
NewCreateBackendBadRequest creates CreateBackendBadRequest with default headers values
func (*CreateBackendBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend bad request response
func (*CreateBackendBadRequest) SetPayload ¶
func (o *CreateBackendBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend bad request response
func (*CreateBackendBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateBackendBadRequest
WithConfigurationVersion adds the configurationVersion to the create backend bad request response
func (*CreateBackendBadRequest) WithPayload ¶
func (o *CreateBackendBadRequest) WithPayload(payload *models.Error) *CreateBackendBadRequest
WithPayload adds the payload to the create backend bad request response
func (*CreateBackendBadRequest) WriteResponse ¶
func (o *CreateBackendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendConflict ¶
type CreateBackendConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBackendConflict The specified resource already exists
swagger:response createBackendConflict
func NewCreateBackendConflict ¶
func NewCreateBackendConflict() *CreateBackendConflict
NewCreateBackendConflict creates CreateBackendConflict with default headers values
func (*CreateBackendConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend conflict response
func (*CreateBackendConflict) SetPayload ¶
func (o *CreateBackendConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend conflict response
func (*CreateBackendConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendConflict) WithConfigurationVersion(configurationVersion int64) *CreateBackendConflict
WithConfigurationVersion adds the configurationVersion to the create backend conflict response
func (*CreateBackendConflict) WithPayload ¶
func (o *CreateBackendConflict) WithPayload(payload *models.Error) *CreateBackendConflict
WithPayload adds the payload to the create backend conflict response
func (*CreateBackendConflict) WriteResponse ¶
func (o *CreateBackendConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendCreated ¶
CreateBackendCreated Backend created
swagger:response createBackendCreated
func NewCreateBackendCreated ¶
func NewCreateBackendCreated() *CreateBackendCreated
NewCreateBackendCreated creates CreateBackendCreated with default headers values
func (*CreateBackendCreated) SetPayload ¶
func (o *CreateBackendCreated) SetPayload(payload *models.Backend)
SetPayload sets the payload to the create backend created response
func (*CreateBackendCreated) WithPayload ¶
func (o *CreateBackendCreated) WithPayload(payload *models.Backend) *CreateBackendCreated
WithPayload adds the payload to the create backend created response
func (*CreateBackendCreated) WriteResponse ¶
func (o *CreateBackendCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendDefault ¶
type CreateBackendDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateBackendDefault General Error
swagger:response createBackendDefault
func NewCreateBackendDefault ¶
func NewCreateBackendDefault(code int) *CreateBackendDefault
NewCreateBackendDefault creates CreateBackendDefault with default headers values
func (*CreateBackendDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create backend default response
func (*CreateBackendDefault) SetPayload ¶
func (o *CreateBackendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create backend default response
func (*CreateBackendDefault) SetStatusCode ¶
func (o *CreateBackendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create backend default response
func (*CreateBackendDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateBackendDefault) WithConfigurationVersion(configurationVersion int64) *CreateBackendDefault
WithConfigurationVersion adds the configurationVersion to the create backend default response
func (*CreateBackendDefault) WithPayload ¶
func (o *CreateBackendDefault) WithPayload(payload *models.Error) *CreateBackendDefault
WithPayload adds the payload to the create backend default response
func (*CreateBackendDefault) WithStatusCode ¶
func (o *CreateBackendDefault) WithStatusCode(code int) *CreateBackendDefault
WithStatusCode adds the status to the create backend default response
func (*CreateBackendDefault) WriteResponse ¶
func (o *CreateBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBackendHandler ¶
type CreateBackendHandler interface {
Handle(CreateBackendParams, interface{}) middleware.Responder
}
CreateBackendHandler interface for that can handle valid create backend params
type CreateBackendHandlerFunc ¶
type CreateBackendHandlerFunc func(CreateBackendParams, interface{}) middleware.Responder
CreateBackendHandlerFunc turns a function with the right signature into a create backend handler
func (CreateBackendHandlerFunc) Handle ¶
func (fn CreateBackendHandlerFunc) Handle(params CreateBackendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateBackendParams ¶
type CreateBackendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Backend /*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 }
CreateBackendParams contains all the bound params for the create backend operation typically these are obtained from a http.Request
swagger:parameters createBackend
func NewCreateBackendParams ¶
func NewCreateBackendParams() CreateBackendParams
NewCreateBackendParams creates a new CreateBackendParams object with the default values initialized.
func (*CreateBackendParams) BindRequest ¶
func (o *CreateBackendParams) 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 NewCreateBackendParams() beforehand.
type CreateBackendURL ¶
type CreateBackendURL struct { ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateBackendURL generates an URL for the create backend operation
func (*CreateBackendURL) Build ¶
func (o *CreateBackendURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateBackendURL) BuildFull ¶
func (o *CreateBackendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateBackendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateBackendURL) SetBasePath ¶
func (o *CreateBackendURL) 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 (*CreateBackendURL) String ¶
func (o *CreateBackendURL) String() string
String returns the string representation of the path with query string
func (*CreateBackendURL) StringFull ¶
func (o *CreateBackendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateBackendURL) WithBasePath ¶
func (o *CreateBackendURL) WithBasePath(bp string) *CreateBackendURL
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 DeleteBackend ¶
type DeleteBackend struct { Context *middleware.Context Handler DeleteBackendHandler }
DeleteBackend swagger:route DELETE /services/haproxy/configuration/backends/{name} Backend deleteBackend
Delete a backend ¶
Deletes a frontend from the configuration by it's name.
func NewDeleteBackend ¶
func NewDeleteBackend(ctx *middleware.Context, handler DeleteBackendHandler) *DeleteBackend
NewDeleteBackend creates a new http.Handler for the delete backend operation
func (*DeleteBackend) ServeHTTP ¶
func (o *DeleteBackend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteBackendAccepted ¶
type DeleteBackendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteBackendAccepted Configuration change accepted and reload requested
swagger:response deleteBackendAccepted
func NewDeleteBackendAccepted ¶
func NewDeleteBackendAccepted() *DeleteBackendAccepted
NewDeleteBackendAccepted creates DeleteBackendAccepted with default headers values
func (*DeleteBackendAccepted) SetReloadID ¶
func (o *DeleteBackendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete backend accepted response
func (*DeleteBackendAccepted) WithReloadID ¶
func (o *DeleteBackendAccepted) WithReloadID(reloadID string) *DeleteBackendAccepted
WithReloadID adds the reloadId to the delete backend accepted response
func (*DeleteBackendAccepted) WriteResponse ¶
func (o *DeleteBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendDefault ¶
type DeleteBackendDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteBackendDefault General Error
swagger:response deleteBackendDefault
func NewDeleteBackendDefault ¶
func NewDeleteBackendDefault(code int) *DeleteBackendDefault
NewDeleteBackendDefault creates DeleteBackendDefault with default headers values
func (*DeleteBackendDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete backend default response
func (*DeleteBackendDefault) SetPayload ¶
func (o *DeleteBackendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete backend default response
func (*DeleteBackendDefault) SetStatusCode ¶
func (o *DeleteBackendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete backend default response
func (*DeleteBackendDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendDefault) WithConfigurationVersion(configurationVersion int64) *DeleteBackendDefault
WithConfigurationVersion adds the configurationVersion to the delete backend default response
func (*DeleteBackendDefault) WithPayload ¶
func (o *DeleteBackendDefault) WithPayload(payload *models.Error) *DeleteBackendDefault
WithPayload adds the payload to the delete backend default response
func (*DeleteBackendDefault) WithStatusCode ¶
func (o *DeleteBackendDefault) WithStatusCode(code int) *DeleteBackendDefault
WithStatusCode adds the status to the delete backend default response
func (*DeleteBackendDefault) WriteResponse ¶
func (o *DeleteBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendHandler ¶
type DeleteBackendHandler interface {
Handle(DeleteBackendParams, interface{}) middleware.Responder
}
DeleteBackendHandler interface for that can handle valid delete backend params
type DeleteBackendHandlerFunc ¶
type DeleteBackendHandlerFunc func(DeleteBackendParams, interface{}) middleware.Responder
DeleteBackendHandlerFunc turns a function with the right signature into a delete backend handler
func (DeleteBackendHandlerFunc) Handle ¶
func (fn DeleteBackendHandlerFunc) Handle(params DeleteBackendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteBackendNoContent ¶
type DeleteBackendNoContent struct { }
DeleteBackendNoContent Backend deleted
swagger:response deleteBackendNoContent
func NewDeleteBackendNoContent ¶
func NewDeleteBackendNoContent() *DeleteBackendNoContent
NewDeleteBackendNoContent creates DeleteBackendNoContent with default headers values
func (*DeleteBackendNoContent) WriteResponse ¶
func (o *DeleteBackendNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendNotFound ¶
type DeleteBackendNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteBackendNotFound The specified resource was not found
swagger:response deleteBackendNotFound
func NewDeleteBackendNotFound ¶
func NewDeleteBackendNotFound() *DeleteBackendNotFound
NewDeleteBackendNotFound creates DeleteBackendNotFound with default headers values
func (*DeleteBackendNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete backend not found response
func (*DeleteBackendNotFound) SetPayload ¶
func (o *DeleteBackendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete backend not found response
func (*DeleteBackendNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteBackendNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteBackendNotFound
WithConfigurationVersion adds the configurationVersion to the delete backend not found response
func (*DeleteBackendNotFound) WithPayload ¶
func (o *DeleteBackendNotFound) WithPayload(payload *models.Error) *DeleteBackendNotFound
WithPayload adds the payload to the delete backend not found response
func (*DeleteBackendNotFound) WriteResponse ¶
func (o *DeleteBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBackendParams ¶
type DeleteBackendParams 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 /*Backend name Required: true In: path */ Name 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 }
DeleteBackendParams contains all the bound params for the delete backend operation typically these are obtained from a http.Request
swagger:parameters deleteBackend
func NewDeleteBackendParams ¶
func NewDeleteBackendParams() DeleteBackendParams
NewDeleteBackendParams creates a new DeleteBackendParams object with the default values initialized.
func (*DeleteBackendParams) BindRequest ¶
func (o *DeleteBackendParams) 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 NewDeleteBackendParams() beforehand.
type DeleteBackendURL ¶
type DeleteBackendURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteBackendURL generates an URL for the delete backend operation
func (*DeleteBackendURL) Build ¶
func (o *DeleteBackendURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteBackendURL) BuildFull ¶
func (o *DeleteBackendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteBackendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteBackendURL) SetBasePath ¶
func (o *DeleteBackendURL) 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 (*DeleteBackendURL) String ¶
func (o *DeleteBackendURL) String() string
String returns the string representation of the path with query string
func (*DeleteBackendURL) StringFull ¶
func (o *DeleteBackendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteBackendURL) WithBasePath ¶
func (o *DeleteBackendURL) WithBasePath(bp string) *DeleteBackendURL
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 GetBackend ¶
type GetBackend struct { Context *middleware.Context Handler GetBackendHandler }
GetBackend swagger:route GET /services/haproxy/configuration/backends/{name} Backend getBackend
Return a backend ¶
Returns one backend configuration by it's name.
func NewGetBackend ¶
func NewGetBackend(ctx *middleware.Context, handler GetBackendHandler) *GetBackend
NewGetBackend creates a new http.Handler for the get backend operation
func (*GetBackend) ServeHTTP ¶
func (o *GetBackend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackendDefault ¶
type GetBackendDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetBackendDefault General Error
swagger:response getBackendDefault
func NewGetBackendDefault ¶
func NewGetBackendDefault(code int) *GetBackendDefault
NewGetBackendDefault creates GetBackendDefault with default headers values
func (*GetBackendDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend default response
func (*GetBackendDefault) SetPayload ¶
func (o *GetBackendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backend default response
func (*GetBackendDefault) SetStatusCode ¶
func (o *GetBackendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get backend default response
func (*GetBackendDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendDefault
WithConfigurationVersion adds the configurationVersion to the get backend default response
func (*GetBackendDefault) WithPayload ¶
func (o *GetBackendDefault) WithPayload(payload *models.Error) *GetBackendDefault
WithPayload adds the payload to the get backend default response
func (*GetBackendDefault) WithStatusCode ¶
func (o *GetBackendDefault) WithStatusCode(code int) *GetBackendDefault
WithStatusCode adds the status to the get backend default response
func (*GetBackendDefault) WriteResponse ¶
func (o *GetBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendHandler ¶
type GetBackendHandler interface {
Handle(GetBackendParams, interface{}) middleware.Responder
}
GetBackendHandler interface for that can handle valid get backend params
type GetBackendHandlerFunc ¶
type GetBackendHandlerFunc func(GetBackendParams, interface{}) middleware.Responder
GetBackendHandlerFunc turns a function with the right signature into a get backend handler
func (GetBackendHandlerFunc) Handle ¶
func (fn GetBackendHandlerFunc) Handle(params GetBackendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetBackendNotFound ¶
type GetBackendNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBackendNotFound The specified resource was not found
swagger:response getBackendNotFound
func NewGetBackendNotFound ¶
func NewGetBackendNotFound() *GetBackendNotFound
NewGetBackendNotFound creates GetBackendNotFound with default headers values
func (*GetBackendNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend not found response
func (*GetBackendNotFound) SetPayload ¶
func (o *GetBackendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backend not found response
func (*GetBackendNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendNotFound) WithConfigurationVersion(configurationVersion int64) *GetBackendNotFound
WithConfigurationVersion adds the configurationVersion to the get backend not found response
func (*GetBackendNotFound) WithPayload ¶
func (o *GetBackendNotFound) WithPayload(payload *models.Error) *GetBackendNotFound
WithPayload adds the payload to the get backend not found response
func (*GetBackendNotFound) WriteResponse ¶
func (o *GetBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendOK ¶
type GetBackendOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetBackendOKBody `json:"body,omitempty"` }
GetBackendOK Successful operation
swagger:response getBackendOK
func NewGetBackendOK ¶
func NewGetBackendOK() *GetBackendOK
NewGetBackendOK creates GetBackendOK with default headers values
func (*GetBackendOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backend o k response
func (*GetBackendOK) SetPayload ¶
func (o *GetBackendOK) SetPayload(payload *GetBackendOKBody)
SetPayload sets the payload to the get backend o k response
func (*GetBackendOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendOK) WithConfigurationVersion(configurationVersion int64) *GetBackendOK
WithConfigurationVersion adds the configurationVersion to the get backend o k response
func (*GetBackendOK) WithPayload ¶
func (o *GetBackendOK) WithPayload(payload *GetBackendOKBody) *GetBackendOK
WithPayload adds the payload to the get backend o k response
func (*GetBackendOK) WriteResponse ¶
func (o *GetBackendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendOKBody ¶
type GetBackendOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Backend `json:"data,omitempty"` }
GetBackendOKBody get backend o k body swagger:model GetBackendOKBody
func (*GetBackendOKBody) MarshalBinary ¶
func (o *GetBackendOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendOKBody) UnmarshalBinary ¶
func (o *GetBackendOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendParams ¶
type GetBackendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backend name Required: true In: path */ Name string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetBackendParams contains all the bound params for the get backend operation typically these are obtained from a http.Request
swagger:parameters getBackend
func NewGetBackendParams ¶
func NewGetBackendParams() GetBackendParams
NewGetBackendParams creates a new GetBackendParams object no default values defined in spec.
func (*GetBackendParams) BindRequest ¶
func (o *GetBackendParams) 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 NewGetBackendParams() beforehand.
type GetBackendURL ¶
type GetBackendURL struct { Name string TransactionID *string // contains filtered or unexported fields }
GetBackendURL generates an URL for the get backend operation
func (*GetBackendURL) Build ¶
func (o *GetBackendURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackendURL) BuildFull ¶
func (o *GetBackendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackendURL) SetBasePath ¶
func (o *GetBackendURL) 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 (*GetBackendURL) String ¶
func (o *GetBackendURL) String() string
String returns the string representation of the path with query string
func (*GetBackendURL) StringFull ¶
func (o *GetBackendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackendURL) WithBasePath ¶
func (o *GetBackendURL) WithBasePath(bp string) *GetBackendURL
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 GetBackends ¶
type GetBackends struct { Context *middleware.Context Handler GetBackendsHandler }
GetBackends swagger:route GET /services/haproxy/configuration/backends Backend getBackends
Return an array of backends ¶
Returns an array of all configured backends.
func NewGetBackends ¶
func NewGetBackends(ctx *middleware.Context, handler GetBackendsHandler) *GetBackends
NewGetBackends creates a new http.Handler for the get backends operation
func (*GetBackends) ServeHTTP ¶
func (o *GetBackends) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackendsDefault ¶
type GetBackendsDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetBackendsDefault General Error
swagger:response getBackendsDefault
func NewGetBackendsDefault ¶
func NewGetBackendsDefault(code int) *GetBackendsDefault
NewGetBackendsDefault creates GetBackendsDefault with default headers values
func (*GetBackendsDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendsDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backends default response
func (*GetBackendsDefault) SetPayload ¶
func (o *GetBackendsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get backends default response
func (*GetBackendsDefault) SetStatusCode ¶
func (o *GetBackendsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get backends default response
func (*GetBackendsDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendsDefault) WithConfigurationVersion(configurationVersion int64) *GetBackendsDefault
WithConfigurationVersion adds the configurationVersion to the get backends default response
func (*GetBackendsDefault) WithPayload ¶
func (o *GetBackendsDefault) WithPayload(payload *models.Error) *GetBackendsDefault
WithPayload adds the payload to the get backends default response
func (*GetBackendsDefault) WithStatusCode ¶
func (o *GetBackendsDefault) WithStatusCode(code int) *GetBackendsDefault
WithStatusCode adds the status to the get backends default response
func (*GetBackendsDefault) WriteResponse ¶
func (o *GetBackendsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendsHandler ¶
type GetBackendsHandler interface {
Handle(GetBackendsParams, interface{}) middleware.Responder
}
GetBackendsHandler interface for that can handle valid get backends params
type GetBackendsHandlerFunc ¶
type GetBackendsHandlerFunc func(GetBackendsParams, interface{}) middleware.Responder
GetBackendsHandlerFunc turns a function with the right signature into a get backends handler
func (GetBackendsHandlerFunc) Handle ¶
func (fn GetBackendsHandlerFunc) Handle(params GetBackendsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetBackendsOK ¶
type GetBackendsOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetBackendsOKBody `json:"body,omitempty"` }
GetBackendsOK Successful operation
swagger:response getBackendsOK
func NewGetBackendsOK ¶
func NewGetBackendsOK() *GetBackendsOK
NewGetBackendsOK creates GetBackendsOK with default headers values
func (*GetBackendsOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendsOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get backends o k response
func (*GetBackendsOK) SetPayload ¶
func (o *GetBackendsOK) SetPayload(payload *GetBackendsOKBody)
SetPayload sets the payload to the get backends o k response
func (*GetBackendsOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetBackendsOK) WithConfigurationVersion(configurationVersion int64) *GetBackendsOK
WithConfigurationVersion adds the configurationVersion to the get backends o k response
func (*GetBackendsOK) WithPayload ¶
func (o *GetBackendsOK) WithPayload(payload *GetBackendsOKBody) *GetBackendsOK
WithPayload adds the payload to the get backends o k response
func (*GetBackendsOK) WriteResponse ¶
func (o *GetBackendsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackendsOKBody ¶
type GetBackendsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Backends `json:"data"` }
GetBackendsOKBody get backends o k body swagger:model GetBackendsOKBody
func (*GetBackendsOKBody) MarshalBinary ¶
func (o *GetBackendsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendsOKBody) UnmarshalBinary ¶
func (o *GetBackendsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendsParams ¶
type GetBackendsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetBackendsParams contains all the bound params for the get backends operation typically these are obtained from a http.Request
swagger:parameters getBackends
func NewGetBackendsParams ¶
func NewGetBackendsParams() GetBackendsParams
NewGetBackendsParams creates a new GetBackendsParams object no default values defined in spec.
func (*GetBackendsParams) BindRequest ¶
func (o *GetBackendsParams) 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 NewGetBackendsParams() beforehand.
type GetBackendsURL ¶
type GetBackendsURL struct { TransactionID *string // contains filtered or unexported fields }
GetBackendsURL generates an URL for the get backends operation
func (*GetBackendsURL) Build ¶
func (o *GetBackendsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackendsURL) BuildFull ¶
func (o *GetBackendsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackendsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackendsURL) SetBasePath ¶
func (o *GetBackendsURL) 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 (*GetBackendsURL) String ¶
func (o *GetBackendsURL) String() string
String returns the string representation of the path with query string
func (*GetBackendsURL) StringFull ¶
func (o *GetBackendsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackendsURL) WithBasePath ¶
func (o *GetBackendsURL) WithBasePath(bp string) *GetBackendsURL
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 ReplaceBackend ¶
type ReplaceBackend struct { Context *middleware.Context Handler ReplaceBackendHandler }
ReplaceBackend swagger:route PUT /services/haproxy/configuration/backends/{name} Backend replaceBackend
Replace a backend ¶
Replaces a backend configuration by it's name.
func NewReplaceBackend ¶
func NewReplaceBackend(ctx *middleware.Context, handler ReplaceBackendHandler) *ReplaceBackend
NewReplaceBackend creates a new http.Handler for the replace backend operation
func (*ReplaceBackend) ServeHTTP ¶
func (o *ReplaceBackend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceBackendAccepted ¶
type ReplaceBackendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Backend `json:"body,omitempty"` }
ReplaceBackendAccepted Configuration change accepted and reload requested
swagger:response replaceBackendAccepted
func NewReplaceBackendAccepted ¶
func NewReplaceBackendAccepted() *ReplaceBackendAccepted
NewReplaceBackendAccepted creates ReplaceBackendAccepted with default headers values
func (*ReplaceBackendAccepted) SetPayload ¶
func (o *ReplaceBackendAccepted) SetPayload(payload *models.Backend)
SetPayload sets the payload to the replace backend accepted response
func (*ReplaceBackendAccepted) SetReloadID ¶
func (o *ReplaceBackendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace backend accepted response
func (*ReplaceBackendAccepted) WithPayload ¶
func (o *ReplaceBackendAccepted) WithPayload(payload *models.Backend) *ReplaceBackendAccepted
WithPayload adds the payload to the replace backend accepted response
func (*ReplaceBackendAccepted) WithReloadID ¶
func (o *ReplaceBackendAccepted) WithReloadID(reloadID string) *ReplaceBackendAccepted
WithReloadID adds the reloadId to the replace backend accepted response
func (*ReplaceBackendAccepted) WriteResponse ¶
func (o *ReplaceBackendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendBadRequest ¶
type ReplaceBackendBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceBackendBadRequest Bad request
swagger:response replaceBackendBadRequest
func NewReplaceBackendBadRequest ¶
func NewReplaceBackendBadRequest() *ReplaceBackendBadRequest
NewReplaceBackendBadRequest creates ReplaceBackendBadRequest with default headers values
func (*ReplaceBackendBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend bad request response
func (*ReplaceBackendBadRequest) SetPayload ¶
func (o *ReplaceBackendBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend bad request response
func (*ReplaceBackendBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendBadRequest
WithConfigurationVersion adds the configurationVersion to the replace backend bad request response
func (*ReplaceBackendBadRequest) WithPayload ¶
func (o *ReplaceBackendBadRequest) WithPayload(payload *models.Error) *ReplaceBackendBadRequest
WithPayload adds the payload to the replace backend bad request response
func (*ReplaceBackendBadRequest) WriteResponse ¶
func (o *ReplaceBackendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendDefault ¶
type ReplaceBackendDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceBackendDefault General Error
swagger:response replaceBackendDefault
func NewReplaceBackendDefault ¶
func NewReplaceBackendDefault(code int) *ReplaceBackendDefault
NewReplaceBackendDefault creates ReplaceBackendDefault with default headers values
func (*ReplaceBackendDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend default response
func (*ReplaceBackendDefault) SetPayload ¶
func (o *ReplaceBackendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend default response
func (*ReplaceBackendDefault) SetStatusCode ¶
func (o *ReplaceBackendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace backend default response
func (*ReplaceBackendDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendDefault
WithConfigurationVersion adds the configurationVersion to the replace backend default response
func (*ReplaceBackendDefault) WithPayload ¶
func (o *ReplaceBackendDefault) WithPayload(payload *models.Error) *ReplaceBackendDefault
WithPayload adds the payload to the replace backend default response
func (*ReplaceBackendDefault) WithStatusCode ¶
func (o *ReplaceBackendDefault) WithStatusCode(code int) *ReplaceBackendDefault
WithStatusCode adds the status to the replace backend default response
func (*ReplaceBackendDefault) WriteResponse ¶
func (o *ReplaceBackendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendHandler ¶
type ReplaceBackendHandler interface {
Handle(ReplaceBackendParams, interface{}) middleware.Responder
}
ReplaceBackendHandler interface for that can handle valid replace backend params
type ReplaceBackendHandlerFunc ¶
type ReplaceBackendHandlerFunc func(ReplaceBackendParams, interface{}) middleware.Responder
ReplaceBackendHandlerFunc turns a function with the right signature into a replace backend handler
func (ReplaceBackendHandlerFunc) Handle ¶
func (fn ReplaceBackendHandlerFunc) Handle(params ReplaceBackendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceBackendNotFound ¶
type ReplaceBackendNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceBackendNotFound The specified resource was not found
swagger:response replaceBackendNotFound
func NewReplaceBackendNotFound ¶
func NewReplaceBackendNotFound() *ReplaceBackendNotFound
NewReplaceBackendNotFound creates ReplaceBackendNotFound with default headers values
func (*ReplaceBackendNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace backend not found response
func (*ReplaceBackendNotFound) SetPayload ¶
func (o *ReplaceBackendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace backend not found response
func (*ReplaceBackendNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceBackendNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceBackendNotFound
WithConfigurationVersion adds the configurationVersion to the replace backend not found response
func (*ReplaceBackendNotFound) WithPayload ¶
func (o *ReplaceBackendNotFound) WithPayload(payload *models.Error) *ReplaceBackendNotFound
WithPayload adds the payload to the replace backend not found response
func (*ReplaceBackendNotFound) WriteResponse ¶
func (o *ReplaceBackendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendOK ¶
ReplaceBackendOK Backend replaced
swagger:response replaceBackendOK
func NewReplaceBackendOK ¶
func NewReplaceBackendOK() *ReplaceBackendOK
NewReplaceBackendOK creates ReplaceBackendOK with default headers values
func (*ReplaceBackendOK) SetPayload ¶
func (o *ReplaceBackendOK) SetPayload(payload *models.Backend)
SetPayload sets the payload to the replace backend o k response
func (*ReplaceBackendOK) WithPayload ¶
func (o *ReplaceBackendOK) WithPayload(payload *models.Backend) *ReplaceBackendOK
WithPayload adds the payload to the replace backend o k response
func (*ReplaceBackendOK) WriteResponse ¶
func (o *ReplaceBackendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceBackendParams ¶
type ReplaceBackendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Backend /*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 /*Backend name Required: true In: path */ Name 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 }
ReplaceBackendParams contains all the bound params for the replace backend operation typically these are obtained from a http.Request
swagger:parameters replaceBackend
func NewReplaceBackendParams ¶
func NewReplaceBackendParams() ReplaceBackendParams
NewReplaceBackendParams creates a new ReplaceBackendParams object with the default values initialized.
func (*ReplaceBackendParams) BindRequest ¶
func (o *ReplaceBackendParams) 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 NewReplaceBackendParams() beforehand.
type ReplaceBackendURL ¶
type ReplaceBackendURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceBackendURL generates an URL for the replace backend operation
func (*ReplaceBackendURL) Build ¶
func (o *ReplaceBackendURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceBackendURL) BuildFull ¶
func (o *ReplaceBackendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceBackendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceBackendURL) SetBasePath ¶
func (o *ReplaceBackendURL) 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 (*ReplaceBackendURL) String ¶
func (o *ReplaceBackendURL) String() string
String returns the string representation of the path with query string
func (*ReplaceBackendURL) StringFull ¶
func (o *ReplaceBackendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceBackendURL) WithBasePath ¶
func (o *ReplaceBackendURL) WithBasePath(bp string) *ReplaceBackendURL
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.go
- create_backend_parameters.go
- create_backend_responses.go
- create_backend_urlbuilder.go
- delete_backend.go
- delete_backend_parameters.go
- delete_backend_responses.go
- delete_backend_urlbuilder.go
- get_backend.go
- get_backend_parameters.go
- get_backend_responses.go
- get_backend_urlbuilder.go
- get_backends.go
- get_backends_parameters.go
- get_backends_responses.go
- get_backends_urlbuilder.go
- replace_backend.go
- replace_backend_parameters.go
- replace_backend_responses.go
- replace_backend_urlbuilder.go