Documentation
¶
Index ¶
- Constants
- type CreateServer
- type CreateServerAccepted
- func (o *CreateServerAccepted) SetPayload(payload *models.Server)
- func (o *CreateServerAccepted) SetReloadID(reloadID string)
- func (o *CreateServerAccepted) WithPayload(payload *models.Server) *CreateServerAccepted
- func (o *CreateServerAccepted) WithReloadID(reloadID string) *CreateServerAccepted
- func (o *CreateServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerBadRequest
- func (o *CreateServerBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerBadRequest) SetPayload(payload *models.Error)
- func (o *CreateServerBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateServerBadRequest
- func (o *CreateServerBadRequest) WithPayload(payload *models.Error) *CreateServerBadRequest
- func (o *CreateServerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerConflict
- func (o *CreateServerConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerConflict) SetPayload(payload *models.Error)
- func (o *CreateServerConflict) WithConfigurationVersion(configurationVersion int64) *CreateServerConflict
- func (o *CreateServerConflict) WithPayload(payload *models.Error) *CreateServerConflict
- func (o *CreateServerConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerCreated
- type CreateServerDefault
- func (o *CreateServerDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerDefault) SetPayload(payload *models.Error)
- func (o *CreateServerDefault) SetStatusCode(code int)
- func (o *CreateServerDefault) WithConfigurationVersion(configurationVersion int64) *CreateServerDefault
- func (o *CreateServerDefault) WithPayload(payload *models.Error) *CreateServerDefault
- func (o *CreateServerDefault) WithStatusCode(code int) *CreateServerDefault
- func (o *CreateServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerHandler
- type CreateServerHandlerFunc
- type CreateServerParams
- type CreateServerURL
- func (o *CreateServerURL) Build() (*url.URL, error)
- func (o *CreateServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateServerURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateServerURL) SetBasePath(bp string)
- func (o *CreateServerURL) String() string
- func (o *CreateServerURL) StringFull(scheme, host string) string
- func (o *CreateServerURL) WithBasePath(bp string) *CreateServerURL
- type DeleteServer
- type DeleteServerAccepted
- type DeleteServerDefault
- func (o *DeleteServerDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteServerDefault) SetPayload(payload *models.Error)
- func (o *DeleteServerDefault) SetStatusCode(code int)
- func (o *DeleteServerDefault) WithConfigurationVersion(configurationVersion int64) *DeleteServerDefault
- func (o *DeleteServerDefault) WithPayload(payload *models.Error) *DeleteServerDefault
- func (o *DeleteServerDefault) WithStatusCode(code int) *DeleteServerDefault
- func (o *DeleteServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteServerHandler
- type DeleteServerHandlerFunc
- type DeleteServerNoContent
- type DeleteServerNotFound
- func (o *DeleteServerNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteServerNotFound) SetPayload(payload *models.Error)
- func (o *DeleteServerNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteServerNotFound
- func (o *DeleteServerNotFound) WithPayload(payload *models.Error) *DeleteServerNotFound
- func (o *DeleteServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteServerParams
- type DeleteServerURL
- func (o *DeleteServerURL) Build() (*url.URL, error)
- func (o *DeleteServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteServerURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteServerURL) SetBasePath(bp string)
- func (o *DeleteServerURL) String() string
- func (o *DeleteServerURL) StringFull(scheme, host string) string
- func (o *DeleteServerURL) WithBasePath(bp string) *DeleteServerURL
- type GetServer
- type GetServerDefault
- func (o *GetServerDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerDefault) SetPayload(payload *models.Error)
- func (o *GetServerDefault) SetStatusCode(code int)
- func (o *GetServerDefault) WithConfigurationVersion(configurationVersion int64) *GetServerDefault
- func (o *GetServerDefault) WithPayload(payload *models.Error) *GetServerDefault
- func (o *GetServerDefault) WithStatusCode(code int) *GetServerDefault
- func (o *GetServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerHandler
- type GetServerHandlerFunc
- type GetServerNotFound
- func (o *GetServerNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerNotFound) SetPayload(payload *models.Error)
- func (o *GetServerNotFound) WithConfigurationVersion(configurationVersion int64) *GetServerNotFound
- func (o *GetServerNotFound) WithPayload(payload *models.Error) *GetServerNotFound
- func (o *GetServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerOK
- func (o *GetServerOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerOK) SetPayload(payload *GetServerOKBody)
- func (o *GetServerOK) WithConfigurationVersion(configurationVersion int64) *GetServerOK
- func (o *GetServerOK) WithPayload(payload *GetServerOKBody) *GetServerOK
- func (o *GetServerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerOKBody
- type GetServerParams
- type GetServerURL
- func (o *GetServerURL) Build() (*url.URL, error)
- func (o *GetServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetServerURL) Must(u *url.URL, err error) *url.URL
- func (o *GetServerURL) SetBasePath(bp string)
- func (o *GetServerURL) String() string
- func (o *GetServerURL) StringFull(scheme, host string) string
- func (o *GetServerURL) WithBasePath(bp string) *GetServerURL
- type GetServers
- type GetServersDefault
- func (o *GetServersDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServersDefault) SetPayload(payload *models.Error)
- func (o *GetServersDefault) SetStatusCode(code int)
- func (o *GetServersDefault) WithConfigurationVersion(configurationVersion int64) *GetServersDefault
- func (o *GetServersDefault) WithPayload(payload *models.Error) *GetServersDefault
- func (o *GetServersDefault) WithStatusCode(code int) *GetServersDefault
- func (o *GetServersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServersHandler
- type GetServersHandlerFunc
- type GetServersOK
- func (o *GetServersOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServersOK) SetPayload(payload *GetServersOKBody)
- func (o *GetServersOK) WithConfigurationVersion(configurationVersion int64) *GetServersOK
- func (o *GetServersOK) WithPayload(payload *GetServersOKBody) *GetServersOK
- func (o *GetServersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServersOKBody
- type GetServersParams
- type GetServersURL
- func (o *GetServersURL) Build() (*url.URL, error)
- func (o *GetServersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetServersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetServersURL) SetBasePath(bp string)
- func (o *GetServersURL) String() string
- func (o *GetServersURL) StringFull(scheme, host string) string
- func (o *GetServersURL) WithBasePath(bp string) *GetServersURL
- type ReplaceServer
- type ReplaceServerAccepted
- func (o *ReplaceServerAccepted) SetPayload(payload *models.Server)
- func (o *ReplaceServerAccepted) SetReloadID(reloadID string)
- func (o *ReplaceServerAccepted) WithPayload(payload *models.Server) *ReplaceServerAccepted
- func (o *ReplaceServerAccepted) WithReloadID(reloadID string) *ReplaceServerAccepted
- func (o *ReplaceServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerBadRequest
- func (o *ReplaceServerBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceServerBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceServerBadRequest
- func (o *ReplaceServerBadRequest) WithPayload(payload *models.Error) *ReplaceServerBadRequest
- func (o *ReplaceServerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerDefault
- func (o *ReplaceServerDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerDefault) SetPayload(payload *models.Error)
- func (o *ReplaceServerDefault) SetStatusCode(code int)
- func (o *ReplaceServerDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceServerDefault
- func (o *ReplaceServerDefault) WithPayload(payload *models.Error) *ReplaceServerDefault
- func (o *ReplaceServerDefault) WithStatusCode(code int) *ReplaceServerDefault
- func (o *ReplaceServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerHandler
- type ReplaceServerHandlerFunc
- type ReplaceServerNotFound
- func (o *ReplaceServerNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceServerNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceServerNotFound
- func (o *ReplaceServerNotFound) WithPayload(payload *models.Error) *ReplaceServerNotFound
- func (o *ReplaceServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerOK
- type ReplaceServerParams
- type ReplaceServerURL
- func (o *ReplaceServerURL) Build() (*url.URL, error)
- func (o *ReplaceServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceServerURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceServerURL) SetBasePath(bp string)
- func (o *ReplaceServerURL) String() string
- func (o *ReplaceServerURL) StringFull(scheme, host string) string
- func (o *ReplaceServerURL) WithBasePath(bp string) *ReplaceServerURL
Constants ¶
const CreateServerAcceptedCode int = 202
CreateServerAcceptedCode is the HTTP code returned for type CreateServerAccepted
const CreateServerBadRequestCode int = 400
CreateServerBadRequestCode is the HTTP code returned for type CreateServerBadRequest
const CreateServerConflictCode int = 409
CreateServerConflictCode is the HTTP code returned for type CreateServerConflict
const CreateServerCreatedCode int = 201
CreateServerCreatedCode is the HTTP code returned for type CreateServerCreated
const DeleteServerAcceptedCode int = 202
DeleteServerAcceptedCode is the HTTP code returned for type DeleteServerAccepted
const DeleteServerNoContentCode int = 204
DeleteServerNoContentCode is the HTTP code returned for type DeleteServerNoContent
const DeleteServerNotFoundCode int = 404
DeleteServerNotFoundCode is the HTTP code returned for type DeleteServerNotFound
const GetServerNotFoundCode int = 404
GetServerNotFoundCode is the HTTP code returned for type GetServerNotFound
const GetServerOKCode int = 200
GetServerOKCode is the HTTP code returned for type GetServerOK
const GetServersOKCode int = 200
GetServersOKCode is the HTTP code returned for type GetServersOK
const ReplaceServerAcceptedCode int = 202
ReplaceServerAcceptedCode is the HTTP code returned for type ReplaceServerAccepted
const ReplaceServerBadRequestCode int = 400
ReplaceServerBadRequestCode is the HTTP code returned for type ReplaceServerBadRequest
const ReplaceServerNotFoundCode int = 404
ReplaceServerNotFoundCode is the HTTP code returned for type ReplaceServerNotFound
const ReplaceServerOKCode int = 200
ReplaceServerOKCode is the HTTP code returned for type ReplaceServerOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateServer ¶
type CreateServer struct { Context *middleware.Context Handler CreateServerHandler }
CreateServer swagger:route POST /services/haproxy/configuration/servers Server createServer
Add a new server ¶
Adds a new server in the specified backend in the configuration file.
func NewCreateServer ¶
func NewCreateServer(ctx *middleware.Context, handler CreateServerHandler) *CreateServer
NewCreateServer creates a new http.Handler for the create server operation
func (*CreateServer) ServeHTTP ¶
func (o *CreateServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateServerAccepted ¶
type CreateServerAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Server `json:"body,omitempty"` }
CreateServerAccepted Configuration change accepted and reload requested
swagger:response createServerAccepted
func NewCreateServerAccepted ¶
func NewCreateServerAccepted() *CreateServerAccepted
NewCreateServerAccepted creates CreateServerAccepted with default headers values
func (*CreateServerAccepted) SetPayload ¶
func (o *CreateServerAccepted) SetPayload(payload *models.Server)
SetPayload sets the payload to the create server accepted response
func (*CreateServerAccepted) SetReloadID ¶
func (o *CreateServerAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create server accepted response
func (*CreateServerAccepted) WithPayload ¶
func (o *CreateServerAccepted) WithPayload(payload *models.Server) *CreateServerAccepted
WithPayload adds the payload to the create server accepted response
func (*CreateServerAccepted) WithReloadID ¶
func (o *CreateServerAccepted) WithReloadID(reloadID string) *CreateServerAccepted
WithReloadID adds the reloadId to the create server accepted response
func (*CreateServerAccepted) WriteResponse ¶
func (o *CreateServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateServerBadRequest ¶
type CreateServerBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateServerBadRequest Bad request
swagger:response createServerBadRequest
func NewCreateServerBadRequest ¶
func NewCreateServerBadRequest() *CreateServerBadRequest
NewCreateServerBadRequest creates CreateServerBadRequest with default headers values
func (*CreateServerBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create server bad request response
func (*CreateServerBadRequest) SetPayload ¶
func (o *CreateServerBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create server bad request response
func (*CreateServerBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateServerBadRequest
WithConfigurationVersion adds the configurationVersion to the create server bad request response
func (*CreateServerBadRequest) WithPayload ¶
func (o *CreateServerBadRequest) WithPayload(payload *models.Error) *CreateServerBadRequest
WithPayload adds the payload to the create server bad request response
func (*CreateServerBadRequest) WriteResponse ¶
func (o *CreateServerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateServerConflict ¶
type CreateServerConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateServerConflict The specified resource already exists
swagger:response createServerConflict
func NewCreateServerConflict ¶
func NewCreateServerConflict() *CreateServerConflict
NewCreateServerConflict creates CreateServerConflict with default headers values
func (*CreateServerConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create server conflict response
func (*CreateServerConflict) SetPayload ¶
func (o *CreateServerConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create server conflict response
func (*CreateServerConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerConflict) WithConfigurationVersion(configurationVersion int64) *CreateServerConflict
WithConfigurationVersion adds the configurationVersion to the create server conflict response
func (*CreateServerConflict) WithPayload ¶
func (o *CreateServerConflict) WithPayload(payload *models.Error) *CreateServerConflict
WithPayload adds the payload to the create server conflict response
func (*CreateServerConflict) WriteResponse ¶
func (o *CreateServerConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateServerCreated ¶
CreateServerCreated Server created
swagger:response createServerCreated
func NewCreateServerCreated ¶
func NewCreateServerCreated() *CreateServerCreated
NewCreateServerCreated creates CreateServerCreated with default headers values
func (*CreateServerCreated) SetPayload ¶
func (o *CreateServerCreated) SetPayload(payload *models.Server)
SetPayload sets the payload to the create server created response
func (*CreateServerCreated) WithPayload ¶
func (o *CreateServerCreated) WithPayload(payload *models.Server) *CreateServerCreated
WithPayload adds the payload to the create server created response
func (*CreateServerCreated) WriteResponse ¶
func (o *CreateServerCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateServerDefault ¶
type CreateServerDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateServerDefault General Error
swagger:response createServerDefault
func NewCreateServerDefault ¶
func NewCreateServerDefault(code int) *CreateServerDefault
NewCreateServerDefault creates CreateServerDefault with default headers values
func (*CreateServerDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create server default response
func (*CreateServerDefault) SetPayload ¶
func (o *CreateServerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create server default response
func (*CreateServerDefault) SetStatusCode ¶
func (o *CreateServerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create server default response
func (*CreateServerDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateServerDefault) WithConfigurationVersion(configurationVersion int64) *CreateServerDefault
WithConfigurationVersion adds the configurationVersion to the create server default response
func (*CreateServerDefault) WithPayload ¶
func (o *CreateServerDefault) WithPayload(payload *models.Error) *CreateServerDefault
WithPayload adds the payload to the create server default response
func (*CreateServerDefault) WithStatusCode ¶
func (o *CreateServerDefault) WithStatusCode(code int) *CreateServerDefault
WithStatusCode adds the status to the create server default response
func (*CreateServerDefault) WriteResponse ¶
func (o *CreateServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateServerHandler ¶
type CreateServerHandler interface {
Handle(CreateServerParams, interface{}) middleware.Responder
}
CreateServerHandler interface for that can handle valid create server params
type CreateServerHandlerFunc ¶
type CreateServerHandlerFunc func(CreateServerParams, interface{}) middleware.Responder
CreateServerHandlerFunc turns a function with the right signature into a create server handler
func (CreateServerHandlerFunc) Handle ¶
func (fn CreateServerHandlerFunc) Handle(params CreateServerParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateServerParams ¶
type CreateServerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.Server /*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 }
CreateServerParams contains all the bound params for the create server operation typically these are obtained from a http.Request
swagger:parameters createServer
func NewCreateServerParams ¶
func NewCreateServerParams() CreateServerParams
NewCreateServerParams creates a new CreateServerParams object with the default values initialized.
func (*CreateServerParams) BindRequest ¶
func (o *CreateServerParams) 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 NewCreateServerParams() beforehand.
type CreateServerURL ¶
type CreateServerURL struct { Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateServerURL generates an URL for the create server operation
func (*CreateServerURL) Build ¶
func (o *CreateServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateServerURL) BuildFull ¶
func (o *CreateServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateServerURL) SetBasePath ¶
func (o *CreateServerURL) 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 (*CreateServerURL) String ¶
func (o *CreateServerURL) String() string
String returns the string representation of the path with query string
func (*CreateServerURL) StringFull ¶
func (o *CreateServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateServerURL) WithBasePath ¶
func (o *CreateServerURL) WithBasePath(bp string) *CreateServerURL
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 DeleteServer ¶
type DeleteServer struct { Context *middleware.Context Handler DeleteServerHandler }
DeleteServer swagger:route DELETE /services/haproxy/configuration/servers/{name} Server deleteServer
Delete a server ¶
Deletes a server configuration by it's name in the specified backend.
func NewDeleteServer ¶
func NewDeleteServer(ctx *middleware.Context, handler DeleteServerHandler) *DeleteServer
NewDeleteServer creates a new http.Handler for the delete server operation
func (*DeleteServer) ServeHTTP ¶
func (o *DeleteServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteServerAccepted ¶
type DeleteServerAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteServerAccepted Configuration change accepted and reload requested
swagger:response deleteServerAccepted
func NewDeleteServerAccepted ¶
func NewDeleteServerAccepted() *DeleteServerAccepted
NewDeleteServerAccepted creates DeleteServerAccepted with default headers values
func (*DeleteServerAccepted) SetReloadID ¶
func (o *DeleteServerAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete server accepted response
func (*DeleteServerAccepted) WithReloadID ¶
func (o *DeleteServerAccepted) WithReloadID(reloadID string) *DeleteServerAccepted
WithReloadID adds the reloadId to the delete server accepted response
func (*DeleteServerAccepted) WriteResponse ¶
func (o *DeleteServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteServerDefault ¶
type DeleteServerDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteServerDefault General Error
swagger:response deleteServerDefault
func NewDeleteServerDefault ¶
func NewDeleteServerDefault(code int) *DeleteServerDefault
NewDeleteServerDefault creates DeleteServerDefault with default headers values
func (*DeleteServerDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteServerDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete server default response
func (*DeleteServerDefault) SetPayload ¶
func (o *DeleteServerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete server default response
func (*DeleteServerDefault) SetStatusCode ¶
func (o *DeleteServerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete server default response
func (*DeleteServerDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteServerDefault) WithConfigurationVersion(configurationVersion int64) *DeleteServerDefault
WithConfigurationVersion adds the configurationVersion to the delete server default response
func (*DeleteServerDefault) WithPayload ¶
func (o *DeleteServerDefault) WithPayload(payload *models.Error) *DeleteServerDefault
WithPayload adds the payload to the delete server default response
func (*DeleteServerDefault) WithStatusCode ¶
func (o *DeleteServerDefault) WithStatusCode(code int) *DeleteServerDefault
WithStatusCode adds the status to the delete server default response
func (*DeleteServerDefault) WriteResponse ¶
func (o *DeleteServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteServerHandler ¶
type DeleteServerHandler interface {
Handle(DeleteServerParams, interface{}) middleware.Responder
}
DeleteServerHandler interface for that can handle valid delete server params
type DeleteServerHandlerFunc ¶
type DeleteServerHandlerFunc func(DeleteServerParams, interface{}) middleware.Responder
DeleteServerHandlerFunc turns a function with the right signature into a delete server handler
func (DeleteServerHandlerFunc) Handle ¶
func (fn DeleteServerHandlerFunc) Handle(params DeleteServerParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteServerNoContent ¶
type DeleteServerNoContent struct { }
DeleteServerNoContent Server deleted
swagger:response deleteServerNoContent
func NewDeleteServerNoContent ¶
func NewDeleteServerNoContent() *DeleteServerNoContent
NewDeleteServerNoContent creates DeleteServerNoContent with default headers values
func (*DeleteServerNoContent) WriteResponse ¶
func (o *DeleteServerNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteServerNotFound ¶
type DeleteServerNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteServerNotFound The specified resource was not found
swagger:response deleteServerNotFound
func NewDeleteServerNotFound ¶
func NewDeleteServerNotFound() *DeleteServerNotFound
NewDeleteServerNotFound creates DeleteServerNotFound with default headers values
func (*DeleteServerNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteServerNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete server not found response
func (*DeleteServerNotFound) SetPayload ¶
func (o *DeleteServerNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete server not found response
func (*DeleteServerNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteServerNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteServerNotFound
WithConfigurationVersion adds the configurationVersion to the delete server not found response
func (*DeleteServerNotFound) WithPayload ¶
func (o *DeleteServerNotFound) WithPayload(payload *models.Error) *DeleteServerNotFound
WithPayload adds the payload to the delete server not found response
func (*DeleteServerNotFound) WriteResponse ¶
func (o *DeleteServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteServerParams ¶
type DeleteServerParams 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 /*Server 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 }
DeleteServerParams contains all the bound params for the delete server operation typically these are obtained from a http.Request
swagger:parameters deleteServer
func NewDeleteServerParams ¶
func NewDeleteServerParams() DeleteServerParams
NewDeleteServerParams creates a new DeleteServerParams object with the default values initialized.
func (*DeleteServerParams) BindRequest ¶
func (o *DeleteServerParams) 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 NewDeleteServerParams() beforehand.
type DeleteServerURL ¶
type DeleteServerURL struct { Name string Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteServerURL generates an URL for the delete server operation
func (*DeleteServerURL) Build ¶
func (o *DeleteServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteServerURL) BuildFull ¶
func (o *DeleteServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteServerURL) SetBasePath ¶
func (o *DeleteServerURL) 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 (*DeleteServerURL) String ¶
func (o *DeleteServerURL) String() string
String returns the string representation of the path with query string
func (*DeleteServerURL) StringFull ¶
func (o *DeleteServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteServerURL) WithBasePath ¶
func (o *DeleteServerURL) WithBasePath(bp string) *DeleteServerURL
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 GetServer ¶
type GetServer struct { Context *middleware.Context Handler GetServerHandler }
GetServer swagger:route GET /services/haproxy/configuration/servers/{name} Server getServer
Return one server ¶
Returns one server configuration by it's name in the specified backend.
func NewGetServer ¶
func NewGetServer(ctx *middleware.Context, handler GetServerHandler) *GetServer
NewGetServer creates a new http.Handler for the get server operation
type GetServerDefault ¶
type GetServerDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetServerDefault General Error
swagger:response getServerDefault
func NewGetServerDefault ¶
func NewGetServerDefault(code int) *GetServerDefault
NewGetServerDefault creates GetServerDefault with default headers values
func (*GetServerDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetServerDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get server default response
func (*GetServerDefault) SetPayload ¶
func (o *GetServerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get server default response
func (*GetServerDefault) SetStatusCode ¶
func (o *GetServerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get server default response
func (*GetServerDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetServerDefault) WithConfigurationVersion(configurationVersion int64) *GetServerDefault
WithConfigurationVersion adds the configurationVersion to the get server default response
func (*GetServerDefault) WithPayload ¶
func (o *GetServerDefault) WithPayload(payload *models.Error) *GetServerDefault
WithPayload adds the payload to the get server default response
func (*GetServerDefault) WithStatusCode ¶
func (o *GetServerDefault) WithStatusCode(code int) *GetServerDefault
WithStatusCode adds the status to the get server default response
func (*GetServerDefault) WriteResponse ¶
func (o *GetServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetServerHandler ¶
type GetServerHandler interface {
Handle(GetServerParams, interface{}) middleware.Responder
}
GetServerHandler interface for that can handle valid get server params
type GetServerHandlerFunc ¶
type GetServerHandlerFunc func(GetServerParams, interface{}) middleware.Responder
GetServerHandlerFunc turns a function with the right signature into a get server handler
func (GetServerHandlerFunc) Handle ¶
func (fn GetServerHandlerFunc) Handle(params GetServerParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetServerNotFound ¶
type GetServerNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetServerNotFound The specified resource was not found
swagger:response getServerNotFound
func NewGetServerNotFound ¶
func NewGetServerNotFound() *GetServerNotFound
NewGetServerNotFound creates GetServerNotFound with default headers values
func (*GetServerNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetServerNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get server not found response
func (*GetServerNotFound) SetPayload ¶
func (o *GetServerNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get server not found response
func (*GetServerNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetServerNotFound) WithConfigurationVersion(configurationVersion int64) *GetServerNotFound
WithConfigurationVersion adds the configurationVersion to the get server not found response
func (*GetServerNotFound) WithPayload ¶
func (o *GetServerNotFound) WithPayload(payload *models.Error) *GetServerNotFound
WithPayload adds the payload to the get server not found response
func (*GetServerNotFound) WriteResponse ¶
func (o *GetServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetServerOK ¶
type GetServerOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetServerOKBody `json:"body,omitempty"` }
GetServerOK Successful operation
swagger:response getServerOK
func NewGetServerOK ¶
func NewGetServerOK() *GetServerOK
NewGetServerOK creates GetServerOK with default headers values
func (*GetServerOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetServerOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get server o k response
func (*GetServerOK) SetPayload ¶
func (o *GetServerOK) SetPayload(payload *GetServerOKBody)
SetPayload sets the payload to the get server o k response
func (*GetServerOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetServerOK) WithConfigurationVersion(configurationVersion int64) *GetServerOK
WithConfigurationVersion adds the configurationVersion to the get server o k response
func (*GetServerOK) WithPayload ¶
func (o *GetServerOK) WithPayload(payload *GetServerOKBody) *GetServerOK
WithPayload adds the payload to the get server o k response
func (*GetServerOK) WriteResponse ¶
func (o *GetServerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetServerOKBody ¶
type GetServerOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Server `json:"data,omitempty"` }
GetServerOKBody get server o k body swagger:model GetServerOKBody
func (*GetServerOKBody) MarshalBinary ¶
func (o *GetServerOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetServerOKBody) UnmarshalBinary ¶
func (o *GetServerOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetServerParams ¶
type GetServerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /*Server 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 }
GetServerParams contains all the bound params for the get server operation typically these are obtained from a http.Request
swagger:parameters getServer
func NewGetServerParams ¶
func NewGetServerParams() GetServerParams
NewGetServerParams creates a new GetServerParams object no default values defined in spec.
func (*GetServerParams) BindRequest ¶
func (o *GetServerParams) 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 NewGetServerParams() beforehand.
type GetServerURL ¶
type GetServerURL struct { Name string Backend string TransactionID *string // contains filtered or unexported fields }
GetServerURL generates an URL for the get server operation
func (*GetServerURL) Build ¶
func (o *GetServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetServerURL) BuildFull ¶
func (o *GetServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetServerURL) SetBasePath ¶
func (o *GetServerURL) 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 (*GetServerURL) String ¶
func (o *GetServerURL) String() string
String returns the string representation of the path with query string
func (*GetServerURL) StringFull ¶
func (o *GetServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetServerURL) WithBasePath ¶
func (o *GetServerURL) WithBasePath(bp string) *GetServerURL
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 GetServers ¶
type GetServers struct { Context *middleware.Context Handler GetServersHandler }
GetServers swagger:route GET /services/haproxy/configuration/servers Server getServers
Return an array of servers ¶
Returns an array of all servers that are configured in specified backend.
func NewGetServers ¶
func NewGetServers(ctx *middleware.Context, handler GetServersHandler) *GetServers
NewGetServers creates a new http.Handler for the get servers operation
func (*GetServers) ServeHTTP ¶
func (o *GetServers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetServersDefault ¶
type GetServersDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetServersDefault General Error
swagger:response getServersDefault
func NewGetServersDefault ¶
func NewGetServersDefault(code int) *GetServersDefault
NewGetServersDefault creates GetServersDefault with default headers values
func (*GetServersDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetServersDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get servers default response
func (*GetServersDefault) SetPayload ¶
func (o *GetServersDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get servers default response
func (*GetServersDefault) SetStatusCode ¶
func (o *GetServersDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get servers default response
func (*GetServersDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetServersDefault) WithConfigurationVersion(configurationVersion int64) *GetServersDefault
WithConfigurationVersion adds the configurationVersion to the get servers default response
func (*GetServersDefault) WithPayload ¶
func (o *GetServersDefault) WithPayload(payload *models.Error) *GetServersDefault
WithPayload adds the payload to the get servers default response
func (*GetServersDefault) WithStatusCode ¶
func (o *GetServersDefault) WithStatusCode(code int) *GetServersDefault
WithStatusCode adds the status to the get servers default response
func (*GetServersDefault) WriteResponse ¶
func (o *GetServersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetServersHandler ¶
type GetServersHandler interface {
Handle(GetServersParams, interface{}) middleware.Responder
}
GetServersHandler interface for that can handle valid get servers params
type GetServersHandlerFunc ¶
type GetServersHandlerFunc func(GetServersParams, interface{}) middleware.Responder
GetServersHandlerFunc turns a function with the right signature into a get servers handler
func (GetServersHandlerFunc) Handle ¶
func (fn GetServersHandlerFunc) Handle(params GetServersParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetServersOK ¶
type GetServersOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetServersOKBody `json:"body,omitempty"` }
GetServersOK Successful operation
swagger:response getServersOK
func NewGetServersOK ¶
func NewGetServersOK() *GetServersOK
NewGetServersOK creates GetServersOK with default headers values
func (*GetServersOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetServersOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get servers o k response
func (*GetServersOK) SetPayload ¶
func (o *GetServersOK) SetPayload(payload *GetServersOKBody)
SetPayload sets the payload to the get servers o k response
func (*GetServersOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetServersOK) WithConfigurationVersion(configurationVersion int64) *GetServersOK
WithConfigurationVersion adds the configurationVersion to the get servers o k response
func (*GetServersOK) WithPayload ¶
func (o *GetServersOK) WithPayload(payload *GetServersOKBody) *GetServersOK
WithPayload adds the payload to the get servers o k response
func (*GetServersOK) WriteResponse ¶
func (o *GetServersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetServersOKBody ¶
type GetServersOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Servers `json:"data"` }
GetServersOKBody get servers o k body swagger:model GetServersOKBody
func (*GetServersOKBody) MarshalBinary ¶
func (o *GetServersOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetServersOKBody) UnmarshalBinary ¶
func (o *GetServersOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetServersParams ¶
type GetServersParams 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 }
GetServersParams contains all the bound params for the get servers operation typically these are obtained from a http.Request
swagger:parameters getServers
func NewGetServersParams ¶
func NewGetServersParams() GetServersParams
NewGetServersParams creates a new GetServersParams object no default values defined in spec.
func (*GetServersParams) BindRequest ¶
func (o *GetServersParams) 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 NewGetServersParams() beforehand.
type GetServersURL ¶
type GetServersURL struct { Backend string TransactionID *string // contains filtered or unexported fields }
GetServersURL generates an URL for the get servers operation
func (*GetServersURL) Build ¶
func (o *GetServersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetServersURL) BuildFull ¶
func (o *GetServersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetServersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetServersURL) SetBasePath ¶
func (o *GetServersURL) 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 (*GetServersURL) String ¶
func (o *GetServersURL) String() string
String returns the string representation of the path with query string
func (*GetServersURL) StringFull ¶
func (o *GetServersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetServersURL) WithBasePath ¶
func (o *GetServersURL) WithBasePath(bp string) *GetServersURL
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 ReplaceServer ¶
type ReplaceServer struct { Context *middleware.Context Handler ReplaceServerHandler }
ReplaceServer swagger:route PUT /services/haproxy/configuration/servers/{name} Server replaceServer
Replace a server ¶
Replaces a server configuration by it's name in the specified backend.
func NewReplaceServer ¶
func NewReplaceServer(ctx *middleware.Context, handler ReplaceServerHandler) *ReplaceServer
NewReplaceServer creates a new http.Handler for the replace server operation
func (*ReplaceServer) ServeHTTP ¶
func (o *ReplaceServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceServerAccepted ¶
type ReplaceServerAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Server `json:"body,omitempty"` }
ReplaceServerAccepted Configuration change accepted and reload requested
swagger:response replaceServerAccepted
func NewReplaceServerAccepted ¶
func NewReplaceServerAccepted() *ReplaceServerAccepted
NewReplaceServerAccepted creates ReplaceServerAccepted with default headers values
func (*ReplaceServerAccepted) SetPayload ¶
func (o *ReplaceServerAccepted) SetPayload(payload *models.Server)
SetPayload sets the payload to the replace server accepted response
func (*ReplaceServerAccepted) SetReloadID ¶
func (o *ReplaceServerAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace server accepted response
func (*ReplaceServerAccepted) WithPayload ¶
func (o *ReplaceServerAccepted) WithPayload(payload *models.Server) *ReplaceServerAccepted
WithPayload adds the payload to the replace server accepted response
func (*ReplaceServerAccepted) WithReloadID ¶
func (o *ReplaceServerAccepted) WithReloadID(reloadID string) *ReplaceServerAccepted
WithReloadID adds the reloadId to the replace server accepted response
func (*ReplaceServerAccepted) WriteResponse ¶
func (o *ReplaceServerAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceServerBadRequest ¶
type ReplaceServerBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceServerBadRequest Bad request
swagger:response replaceServerBadRequest
func NewReplaceServerBadRequest ¶
func NewReplaceServerBadRequest() *ReplaceServerBadRequest
NewReplaceServerBadRequest creates ReplaceServerBadRequest with default headers values
func (*ReplaceServerBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace server bad request response
func (*ReplaceServerBadRequest) SetPayload ¶
func (o *ReplaceServerBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace server bad request response
func (*ReplaceServerBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceServerBadRequest
WithConfigurationVersion adds the configurationVersion to the replace server bad request response
func (*ReplaceServerBadRequest) WithPayload ¶
func (o *ReplaceServerBadRequest) WithPayload(payload *models.Error) *ReplaceServerBadRequest
WithPayload adds the payload to the replace server bad request response
func (*ReplaceServerBadRequest) WriteResponse ¶
func (o *ReplaceServerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceServerDefault ¶
type ReplaceServerDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceServerDefault General Error
swagger:response replaceServerDefault
func NewReplaceServerDefault ¶
func NewReplaceServerDefault(code int) *ReplaceServerDefault
NewReplaceServerDefault creates ReplaceServerDefault with default headers values
func (*ReplaceServerDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace server default response
func (*ReplaceServerDefault) SetPayload ¶
func (o *ReplaceServerDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace server default response
func (*ReplaceServerDefault) SetStatusCode ¶
func (o *ReplaceServerDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace server default response
func (*ReplaceServerDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceServerDefault
WithConfigurationVersion adds the configurationVersion to the replace server default response
func (*ReplaceServerDefault) WithPayload ¶
func (o *ReplaceServerDefault) WithPayload(payload *models.Error) *ReplaceServerDefault
WithPayload adds the payload to the replace server default response
func (*ReplaceServerDefault) WithStatusCode ¶
func (o *ReplaceServerDefault) WithStatusCode(code int) *ReplaceServerDefault
WithStatusCode adds the status to the replace server default response
func (*ReplaceServerDefault) WriteResponse ¶
func (o *ReplaceServerDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceServerHandler ¶
type ReplaceServerHandler interface {
Handle(ReplaceServerParams, interface{}) middleware.Responder
}
ReplaceServerHandler interface for that can handle valid replace server params
type ReplaceServerHandlerFunc ¶
type ReplaceServerHandlerFunc func(ReplaceServerParams, interface{}) middleware.Responder
ReplaceServerHandlerFunc turns a function with the right signature into a replace server handler
func (ReplaceServerHandlerFunc) Handle ¶
func (fn ReplaceServerHandlerFunc) Handle(params ReplaceServerParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceServerNotFound ¶
type ReplaceServerNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceServerNotFound The specified resource was not found
swagger:response replaceServerNotFound
func NewReplaceServerNotFound ¶
func NewReplaceServerNotFound() *ReplaceServerNotFound
NewReplaceServerNotFound creates ReplaceServerNotFound with default headers values
func (*ReplaceServerNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace server not found response
func (*ReplaceServerNotFound) SetPayload ¶
func (o *ReplaceServerNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace server not found response
func (*ReplaceServerNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceServerNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceServerNotFound
WithConfigurationVersion adds the configurationVersion to the replace server not found response
func (*ReplaceServerNotFound) WithPayload ¶
func (o *ReplaceServerNotFound) WithPayload(payload *models.Error) *ReplaceServerNotFound
WithPayload adds the payload to the replace server not found response
func (*ReplaceServerNotFound) WriteResponse ¶
func (o *ReplaceServerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceServerOK ¶
ReplaceServerOK Server replaced
swagger:response replaceServerOK
func NewReplaceServerOK ¶
func NewReplaceServerOK() *ReplaceServerOK
NewReplaceServerOK creates ReplaceServerOK with default headers values
func (*ReplaceServerOK) SetPayload ¶
func (o *ReplaceServerOK) SetPayload(payload *models.Server)
SetPayload sets the payload to the replace server o k response
func (*ReplaceServerOK) WithPayload ¶
func (o *ReplaceServerOK) WithPayload(payload *models.Server) *ReplaceServerOK
WithPayload adds the payload to the replace server o k response
func (*ReplaceServerOK) WriteResponse ¶
func (o *ReplaceServerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceServerParams ¶
type ReplaceServerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent backend name Required: true In: query */ Backend string /* Required: true In: body */ Data *models.Server /*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 /*Server 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 }
ReplaceServerParams contains all the bound params for the replace server operation typically these are obtained from a http.Request
swagger:parameters replaceServer
func NewReplaceServerParams ¶
func NewReplaceServerParams() ReplaceServerParams
NewReplaceServerParams creates a new ReplaceServerParams object with the default values initialized.
func (*ReplaceServerParams) BindRequest ¶
func (o *ReplaceServerParams) 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 NewReplaceServerParams() beforehand.
type ReplaceServerURL ¶
type ReplaceServerURL struct { Name string Backend string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceServerURL generates an URL for the replace server operation
func (*ReplaceServerURL) Build ¶
func (o *ReplaceServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceServerURL) BuildFull ¶
func (o *ReplaceServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceServerURL) SetBasePath ¶
func (o *ReplaceServerURL) 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 (*ReplaceServerURL) String ¶
func (o *ReplaceServerURL) String() string
String returns the string representation of the path with query string
func (*ReplaceServerURL) StringFull ¶
func (o *ReplaceServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceServerURL) WithBasePath ¶
func (o *ReplaceServerURL) WithBasePath(bp string) *ReplaceServerURL
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_server.go
- create_server_parameters.go
- create_server_responses.go
- create_server_urlbuilder.go
- delete_server.go
- delete_server_parameters.go
- delete_server_responses.go
- delete_server_urlbuilder.go
- get_server.go
- get_server_parameters.go
- get_server_responses.go
- get_server_urlbuilder.go
- get_servers.go
- get_servers_parameters.go
- get_servers_responses.go
- get_servers_urlbuilder.go
- replace_server.go
- replace_server_parameters.go
- replace_server_responses.go
- replace_server_urlbuilder.go