Documentation
¶
Index ¶
- Constants
- type CreateSite
- type CreateSiteAccepted
- func (o *CreateSiteAccepted) SetPayload(payload *models.Site)
- func (o *CreateSiteAccepted) SetReloadID(reloadID string)
- func (o *CreateSiteAccepted) WithPayload(payload *models.Site) *CreateSiteAccepted
- func (o *CreateSiteAccepted) WithReloadID(reloadID string) *CreateSiteAccepted
- func (o *CreateSiteAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSiteBadRequest
- func (o *CreateSiteBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateSiteBadRequest) SetPayload(payload *models.Error)
- func (o *CreateSiteBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateSiteBadRequest
- func (o *CreateSiteBadRequest) WithPayload(payload *models.Error) *CreateSiteBadRequest
- func (o *CreateSiteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSiteConflict
- func (o *CreateSiteConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateSiteConflict) SetPayload(payload *models.Error)
- func (o *CreateSiteConflict) WithConfigurationVersion(configurationVersion int64) *CreateSiteConflict
- func (o *CreateSiteConflict) WithPayload(payload *models.Error) *CreateSiteConflict
- func (o *CreateSiteConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSiteCreated
- type CreateSiteDefault
- func (o *CreateSiteDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateSiteDefault) SetPayload(payload *models.Error)
- func (o *CreateSiteDefault) SetStatusCode(code int)
- func (o *CreateSiteDefault) WithConfigurationVersion(configurationVersion int64) *CreateSiteDefault
- func (o *CreateSiteDefault) WithPayload(payload *models.Error) *CreateSiteDefault
- func (o *CreateSiteDefault) WithStatusCode(code int) *CreateSiteDefault
- func (o *CreateSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSiteHandler
- type CreateSiteHandlerFunc
- type CreateSiteParams
- type CreateSiteURL
- func (o *CreateSiteURL) Build() (*url.URL, error)
- func (o *CreateSiteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSiteURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSiteURL) SetBasePath(bp string)
- func (o *CreateSiteURL) String() string
- func (o *CreateSiteURL) StringFull(scheme, host string) string
- func (o *CreateSiteURL) WithBasePath(bp string) *CreateSiteURL
- type DeleteSite
- type DeleteSiteAccepted
- type DeleteSiteDefault
- func (o *DeleteSiteDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteSiteDefault) SetPayload(payload *models.Error)
- func (o *DeleteSiteDefault) SetStatusCode(code int)
- func (o *DeleteSiteDefault) WithConfigurationVersion(configurationVersion int64) *DeleteSiteDefault
- func (o *DeleteSiteDefault) WithPayload(payload *models.Error) *DeleteSiteDefault
- func (o *DeleteSiteDefault) WithStatusCode(code int) *DeleteSiteDefault
- func (o *DeleteSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSiteHandler
- type DeleteSiteHandlerFunc
- type DeleteSiteNoContent
- type DeleteSiteNotFound
- func (o *DeleteSiteNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteSiteNotFound) SetPayload(payload *models.Error)
- func (o *DeleteSiteNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteSiteNotFound
- func (o *DeleteSiteNotFound) WithPayload(payload *models.Error) *DeleteSiteNotFound
- func (o *DeleteSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSiteParams
- type DeleteSiteURL
- func (o *DeleteSiteURL) Build() (*url.URL, error)
- func (o *DeleteSiteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSiteURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSiteURL) SetBasePath(bp string)
- func (o *DeleteSiteURL) String() string
- func (o *DeleteSiteURL) StringFull(scheme, host string) string
- func (o *DeleteSiteURL) WithBasePath(bp string) *DeleteSiteURL
- type GetSite
- type GetSiteDefault
- func (o *GetSiteDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetSiteDefault) SetPayload(payload *models.Error)
- func (o *GetSiteDefault) SetStatusCode(code int)
- func (o *GetSiteDefault) WithConfigurationVersion(configurationVersion int64) *GetSiteDefault
- func (o *GetSiteDefault) WithPayload(payload *models.Error) *GetSiteDefault
- func (o *GetSiteDefault) WithStatusCode(code int) *GetSiteDefault
- func (o *GetSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSiteHandler
- type GetSiteHandlerFunc
- type GetSiteNotFound
- func (o *GetSiteNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetSiteNotFound) SetPayload(payload *models.Error)
- func (o *GetSiteNotFound) WithConfigurationVersion(configurationVersion int64) *GetSiteNotFound
- func (o *GetSiteNotFound) WithPayload(payload *models.Error) *GetSiteNotFound
- func (o *GetSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSiteOK
- func (o *GetSiteOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetSiteOK) SetPayload(payload *GetSiteOKBody)
- func (o *GetSiteOK) WithConfigurationVersion(configurationVersion int64) *GetSiteOK
- func (o *GetSiteOK) WithPayload(payload *GetSiteOKBody) *GetSiteOK
- func (o *GetSiteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSiteOKBody
- type GetSiteParams
- type GetSiteURL
- func (o *GetSiteURL) Build() (*url.URL, error)
- func (o *GetSiteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSiteURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSiteURL) SetBasePath(bp string)
- func (o *GetSiteURL) String() string
- func (o *GetSiteURL) StringFull(scheme, host string) string
- func (o *GetSiteURL) WithBasePath(bp string) *GetSiteURL
- type GetSites
- type GetSitesDefault
- func (o *GetSitesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetSitesDefault) SetPayload(payload *models.Error)
- func (o *GetSitesDefault) SetStatusCode(code int)
- func (o *GetSitesDefault) WithConfigurationVersion(configurationVersion int64) *GetSitesDefault
- func (o *GetSitesDefault) WithPayload(payload *models.Error) *GetSitesDefault
- func (o *GetSitesDefault) WithStatusCode(code int) *GetSitesDefault
- func (o *GetSitesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSitesHandler
- type GetSitesHandlerFunc
- type GetSitesOK
- func (o *GetSitesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetSitesOK) SetPayload(payload *GetSitesOKBody)
- func (o *GetSitesOK) WithConfigurationVersion(configurationVersion int64) *GetSitesOK
- func (o *GetSitesOK) WithPayload(payload *GetSitesOKBody) *GetSitesOK
- func (o *GetSitesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSitesOKBody
- type GetSitesParams
- type GetSitesURL
- func (o *GetSitesURL) Build() (*url.URL, error)
- func (o *GetSitesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSitesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSitesURL) SetBasePath(bp string)
- func (o *GetSitesURL) String() string
- func (o *GetSitesURL) StringFull(scheme, host string) string
- func (o *GetSitesURL) WithBasePath(bp string) *GetSitesURL
- type ReplaceSite
- type ReplaceSiteAccepted
- func (o *ReplaceSiteAccepted) SetPayload(payload *models.Site)
- func (o *ReplaceSiteAccepted) SetReloadID(reloadID string)
- func (o *ReplaceSiteAccepted) WithPayload(payload *models.Site) *ReplaceSiteAccepted
- func (o *ReplaceSiteAccepted) WithReloadID(reloadID string) *ReplaceSiteAccepted
- func (o *ReplaceSiteAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceSiteBadRequest
- func (o *ReplaceSiteBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceSiteBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceSiteBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteBadRequest
- func (o *ReplaceSiteBadRequest) WithPayload(payload *models.Error) *ReplaceSiteBadRequest
- func (o *ReplaceSiteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceSiteDefault
- func (o *ReplaceSiteDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceSiteDefault) SetPayload(payload *models.Error)
- func (o *ReplaceSiteDefault) SetStatusCode(code int)
- func (o *ReplaceSiteDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteDefault
- func (o *ReplaceSiteDefault) WithPayload(payload *models.Error) *ReplaceSiteDefault
- func (o *ReplaceSiteDefault) WithStatusCode(code int) *ReplaceSiteDefault
- func (o *ReplaceSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceSiteHandler
- type ReplaceSiteHandlerFunc
- type ReplaceSiteNotFound
- func (o *ReplaceSiteNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceSiteNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceSiteNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteNotFound
- func (o *ReplaceSiteNotFound) WithPayload(payload *models.Error) *ReplaceSiteNotFound
- func (o *ReplaceSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceSiteOK
- type ReplaceSiteParams
- type ReplaceSiteURL
- func (o *ReplaceSiteURL) Build() (*url.URL, error)
- func (o *ReplaceSiteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceSiteURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceSiteURL) SetBasePath(bp string)
- func (o *ReplaceSiteURL) String() string
- func (o *ReplaceSiteURL) StringFull(scheme, host string) string
- func (o *ReplaceSiteURL) WithBasePath(bp string) *ReplaceSiteURL
Constants ¶
const CreateSiteAcceptedCode int = 202
CreateSiteAcceptedCode is the HTTP code returned for type CreateSiteAccepted
const CreateSiteBadRequestCode int = 400
CreateSiteBadRequestCode is the HTTP code returned for type CreateSiteBadRequest
const CreateSiteConflictCode int = 409
CreateSiteConflictCode is the HTTP code returned for type CreateSiteConflict
const CreateSiteCreatedCode int = 201
CreateSiteCreatedCode is the HTTP code returned for type CreateSiteCreated
const DeleteSiteAcceptedCode int = 202
DeleteSiteAcceptedCode is the HTTP code returned for type DeleteSiteAccepted
const DeleteSiteNoContentCode int = 204
DeleteSiteNoContentCode is the HTTP code returned for type DeleteSiteNoContent
const DeleteSiteNotFoundCode int = 404
DeleteSiteNotFoundCode is the HTTP code returned for type DeleteSiteNotFound
const GetSiteNotFoundCode int = 404
GetSiteNotFoundCode is the HTTP code returned for type GetSiteNotFound
const GetSiteOKCode int = 200
GetSiteOKCode is the HTTP code returned for type GetSiteOK
const GetSitesOKCode int = 200
GetSitesOKCode is the HTTP code returned for type GetSitesOK
const ReplaceSiteAcceptedCode int = 202
ReplaceSiteAcceptedCode is the HTTP code returned for type ReplaceSiteAccepted
const ReplaceSiteBadRequestCode int = 400
ReplaceSiteBadRequestCode is the HTTP code returned for type ReplaceSiteBadRequest
const ReplaceSiteNotFoundCode int = 404
ReplaceSiteNotFoundCode is the HTTP code returned for type ReplaceSiteNotFound
const ReplaceSiteOKCode int = 200
ReplaceSiteOKCode is the HTTP code returned for type ReplaceSiteOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSite ¶
type CreateSite struct { Context *middleware.Context Handler CreateSiteHandler }
CreateSite swagger:route POST /services/haproxy/sites Sites createSite
Add a site ¶
Adds a new site to the configuration file.
func NewCreateSite ¶
func NewCreateSite(ctx *middleware.Context, handler CreateSiteHandler) *CreateSite
NewCreateSite creates a new http.Handler for the create site operation
func (*CreateSite) ServeHTTP ¶
func (o *CreateSite) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSiteAccepted ¶
type CreateSiteAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Site `json:"body,omitempty"` }
CreateSiteAccepted Configuration change accepted and reload requested
swagger:response createSiteAccepted
func NewCreateSiteAccepted ¶
func NewCreateSiteAccepted() *CreateSiteAccepted
NewCreateSiteAccepted creates CreateSiteAccepted with default headers values
func (*CreateSiteAccepted) SetPayload ¶
func (o *CreateSiteAccepted) SetPayload(payload *models.Site)
SetPayload sets the payload to the create site accepted response
func (*CreateSiteAccepted) SetReloadID ¶
func (o *CreateSiteAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create site accepted response
func (*CreateSiteAccepted) WithPayload ¶
func (o *CreateSiteAccepted) WithPayload(payload *models.Site) *CreateSiteAccepted
WithPayload adds the payload to the create site accepted response
func (*CreateSiteAccepted) WithReloadID ¶
func (o *CreateSiteAccepted) WithReloadID(reloadID string) *CreateSiteAccepted
WithReloadID adds the reloadId to the create site accepted response
func (*CreateSiteAccepted) WriteResponse ¶
func (o *CreateSiteAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSiteBadRequest ¶
type CreateSiteBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateSiteBadRequest Bad request
swagger:response createSiteBadRequest
func NewCreateSiteBadRequest ¶
func NewCreateSiteBadRequest() *CreateSiteBadRequest
NewCreateSiteBadRequest creates CreateSiteBadRequest with default headers values
func (*CreateSiteBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create site bad request response
func (*CreateSiteBadRequest) SetPayload ¶
func (o *CreateSiteBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create site bad request response
func (*CreateSiteBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateSiteBadRequest
WithConfigurationVersion adds the configurationVersion to the create site bad request response
func (*CreateSiteBadRequest) WithPayload ¶
func (o *CreateSiteBadRequest) WithPayload(payload *models.Error) *CreateSiteBadRequest
WithPayload adds the payload to the create site bad request response
func (*CreateSiteBadRequest) WriteResponse ¶
func (o *CreateSiteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSiteConflict ¶
type CreateSiteConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateSiteConflict The specified resource already exists
swagger:response createSiteConflict
func NewCreateSiteConflict ¶
func NewCreateSiteConflict() *CreateSiteConflict
NewCreateSiteConflict creates CreateSiteConflict with default headers values
func (*CreateSiteConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create site conflict response
func (*CreateSiteConflict) SetPayload ¶
func (o *CreateSiteConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create site conflict response
func (*CreateSiteConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteConflict) WithConfigurationVersion(configurationVersion int64) *CreateSiteConflict
WithConfigurationVersion adds the configurationVersion to the create site conflict response
func (*CreateSiteConflict) WithPayload ¶
func (o *CreateSiteConflict) WithPayload(payload *models.Error) *CreateSiteConflict
WithPayload adds the payload to the create site conflict response
func (*CreateSiteConflict) WriteResponse ¶
func (o *CreateSiteConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSiteCreated ¶
CreateSiteCreated Site created
swagger:response createSiteCreated
func NewCreateSiteCreated ¶
func NewCreateSiteCreated() *CreateSiteCreated
NewCreateSiteCreated creates CreateSiteCreated with default headers values
func (*CreateSiteCreated) SetPayload ¶
func (o *CreateSiteCreated) SetPayload(payload *models.Site)
SetPayload sets the payload to the create site created response
func (*CreateSiteCreated) WithPayload ¶
func (o *CreateSiteCreated) WithPayload(payload *models.Site) *CreateSiteCreated
WithPayload adds the payload to the create site created response
func (*CreateSiteCreated) WriteResponse ¶
func (o *CreateSiteCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSiteDefault ¶
type CreateSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateSiteDefault General Error
swagger:response createSiteDefault
func NewCreateSiteDefault ¶
func NewCreateSiteDefault(code int) *CreateSiteDefault
NewCreateSiteDefault creates CreateSiteDefault with default headers values
func (*CreateSiteDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create site default response
func (*CreateSiteDefault) SetPayload ¶
func (o *CreateSiteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create site default response
func (*CreateSiteDefault) SetStatusCode ¶
func (o *CreateSiteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create site default response
func (*CreateSiteDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateSiteDefault) WithConfigurationVersion(configurationVersion int64) *CreateSiteDefault
WithConfigurationVersion adds the configurationVersion to the create site default response
func (*CreateSiteDefault) WithPayload ¶
func (o *CreateSiteDefault) WithPayload(payload *models.Error) *CreateSiteDefault
WithPayload adds the payload to the create site default response
func (*CreateSiteDefault) WithStatusCode ¶
func (o *CreateSiteDefault) WithStatusCode(code int) *CreateSiteDefault
WithStatusCode adds the status to the create site default response
func (*CreateSiteDefault) WriteResponse ¶
func (o *CreateSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSiteHandler ¶
type CreateSiteHandler interface {
Handle(CreateSiteParams, interface{}) middleware.Responder
}
CreateSiteHandler interface for that can handle valid create site params
type CreateSiteHandlerFunc ¶
type CreateSiteHandlerFunc func(CreateSiteParams, interface{}) middleware.Responder
CreateSiteHandlerFunc turns a function with the right signature into a create site handler
func (CreateSiteHandlerFunc) Handle ¶
func (fn CreateSiteHandlerFunc) Handle(params CreateSiteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateSiteParams ¶
type CreateSiteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Site /*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 }
CreateSiteParams contains all the bound params for the create site operation typically these are obtained from a http.Request
swagger:parameters createSite
func NewCreateSiteParams ¶
func NewCreateSiteParams() CreateSiteParams
NewCreateSiteParams creates a new CreateSiteParams object with the default values initialized.
func (*CreateSiteParams) BindRequest ¶
func (o *CreateSiteParams) 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 NewCreateSiteParams() beforehand.
type CreateSiteURL ¶
type CreateSiteURL struct { ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateSiteURL generates an URL for the create site operation
func (*CreateSiteURL) Build ¶
func (o *CreateSiteURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSiteURL) BuildFull ¶
func (o *CreateSiteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSiteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSiteURL) SetBasePath ¶
func (o *CreateSiteURL) 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 (*CreateSiteURL) String ¶
func (o *CreateSiteURL) String() string
String returns the string representation of the path with query string
func (*CreateSiteURL) StringFull ¶
func (o *CreateSiteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSiteURL) WithBasePath ¶
func (o *CreateSiteURL) WithBasePath(bp string) *CreateSiteURL
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 DeleteSite ¶
type DeleteSite struct { Context *middleware.Context Handler DeleteSiteHandler }
DeleteSite swagger:route DELETE /services/haproxy/sites/{name} Sites deleteSite
Delete a site ¶
Deletes a site from the configuration by it's name.
func NewDeleteSite ¶
func NewDeleteSite(ctx *middleware.Context, handler DeleteSiteHandler) *DeleteSite
NewDeleteSite creates a new http.Handler for the delete site operation
func (*DeleteSite) ServeHTTP ¶
func (o *DeleteSite) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSiteAccepted ¶
type DeleteSiteAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteSiteAccepted Configuration change accepted and reload requested
swagger:response deleteSiteAccepted
func NewDeleteSiteAccepted ¶
func NewDeleteSiteAccepted() *DeleteSiteAccepted
NewDeleteSiteAccepted creates DeleteSiteAccepted with default headers values
func (*DeleteSiteAccepted) SetReloadID ¶
func (o *DeleteSiteAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete site accepted response
func (*DeleteSiteAccepted) WithReloadID ¶
func (o *DeleteSiteAccepted) WithReloadID(reloadID string) *DeleteSiteAccepted
WithReloadID adds the reloadId to the delete site accepted response
func (*DeleteSiteAccepted) WriteResponse ¶
func (o *DeleteSiteAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSiteDefault ¶
type DeleteSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteSiteDefault General Error
swagger:response deleteSiteDefault
func NewDeleteSiteDefault ¶
func NewDeleteSiteDefault(code int) *DeleteSiteDefault
NewDeleteSiteDefault creates DeleteSiteDefault with default headers values
func (*DeleteSiteDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteSiteDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete site default response
func (*DeleteSiteDefault) SetPayload ¶
func (o *DeleteSiteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete site default response
func (*DeleteSiteDefault) SetStatusCode ¶
func (o *DeleteSiteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete site default response
func (*DeleteSiteDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteSiteDefault) WithConfigurationVersion(configurationVersion int64) *DeleteSiteDefault
WithConfigurationVersion adds the configurationVersion to the delete site default response
func (*DeleteSiteDefault) WithPayload ¶
func (o *DeleteSiteDefault) WithPayload(payload *models.Error) *DeleteSiteDefault
WithPayload adds the payload to the delete site default response
func (*DeleteSiteDefault) WithStatusCode ¶
func (o *DeleteSiteDefault) WithStatusCode(code int) *DeleteSiteDefault
WithStatusCode adds the status to the delete site default response
func (*DeleteSiteDefault) WriteResponse ¶
func (o *DeleteSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSiteHandler ¶
type DeleteSiteHandler interface {
Handle(DeleteSiteParams, interface{}) middleware.Responder
}
DeleteSiteHandler interface for that can handle valid delete site params
type DeleteSiteHandlerFunc ¶
type DeleteSiteHandlerFunc func(DeleteSiteParams, interface{}) middleware.Responder
DeleteSiteHandlerFunc turns a function with the right signature into a delete site handler
func (DeleteSiteHandlerFunc) Handle ¶
func (fn DeleteSiteHandlerFunc) Handle(params DeleteSiteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteSiteNoContent ¶
type DeleteSiteNoContent struct { }
DeleteSiteNoContent Site deleted
swagger:response deleteSiteNoContent
func NewDeleteSiteNoContent ¶
func NewDeleteSiteNoContent() *DeleteSiteNoContent
NewDeleteSiteNoContent creates DeleteSiteNoContent with default headers values
func (*DeleteSiteNoContent) WriteResponse ¶
func (o *DeleteSiteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSiteNotFound ¶
type DeleteSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteSiteNotFound The specified resource was not found
swagger:response deleteSiteNotFound
func NewDeleteSiteNotFound ¶
func NewDeleteSiteNotFound() *DeleteSiteNotFound
NewDeleteSiteNotFound creates DeleteSiteNotFound with default headers values
func (*DeleteSiteNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteSiteNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete site not found response
func (*DeleteSiteNotFound) SetPayload ¶
func (o *DeleteSiteNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete site not found response
func (*DeleteSiteNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteSiteNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteSiteNotFound
WithConfigurationVersion adds the configurationVersion to the delete site not found response
func (*DeleteSiteNotFound) WithPayload ¶
func (o *DeleteSiteNotFound) WithPayload(payload *models.Error) *DeleteSiteNotFound
WithPayload adds the payload to the delete site not found response
func (*DeleteSiteNotFound) WriteResponse ¶
func (o *DeleteSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSiteParams ¶
type DeleteSiteParams 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 /*Site frontend 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 }
DeleteSiteParams contains all the bound params for the delete site operation typically these are obtained from a http.Request
swagger:parameters deleteSite
func NewDeleteSiteParams ¶
func NewDeleteSiteParams() DeleteSiteParams
NewDeleteSiteParams creates a new DeleteSiteParams object with the default values initialized.
func (*DeleteSiteParams) BindRequest ¶
func (o *DeleteSiteParams) 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 NewDeleteSiteParams() beforehand.
type DeleteSiteURL ¶
type DeleteSiteURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteSiteURL generates an URL for the delete site operation
func (*DeleteSiteURL) Build ¶
func (o *DeleteSiteURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSiteURL) BuildFull ¶
func (o *DeleteSiteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSiteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSiteURL) SetBasePath ¶
func (o *DeleteSiteURL) 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 (*DeleteSiteURL) String ¶
func (o *DeleteSiteURL) String() string
String returns the string representation of the path with query string
func (*DeleteSiteURL) StringFull ¶
func (o *DeleteSiteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSiteURL) WithBasePath ¶
func (o *DeleteSiteURL) WithBasePath(bp string) *DeleteSiteURL
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 GetSite ¶
type GetSite struct { Context *middleware.Context Handler GetSiteHandler }
GetSite swagger:route GET /services/haproxy/sites/{name} Sites getSite
Return a site ¶
Returns one site configuration by it's name.
func NewGetSite ¶
func NewGetSite(ctx *middleware.Context, handler GetSiteHandler) *GetSite
NewGetSite creates a new http.Handler for the get site operation
type GetSiteDefault ¶
type GetSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetSiteDefault General Error
swagger:response getSiteDefault
func NewGetSiteDefault ¶
func NewGetSiteDefault(code int) *GetSiteDefault
NewGetSiteDefault creates GetSiteDefault with default headers values
func (*GetSiteDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetSiteDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get site default response
func (*GetSiteDefault) SetPayload ¶
func (o *GetSiteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get site default response
func (*GetSiteDefault) SetStatusCode ¶
func (o *GetSiteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get site default response
func (*GetSiteDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetSiteDefault) WithConfigurationVersion(configurationVersion int64) *GetSiteDefault
WithConfigurationVersion adds the configurationVersion to the get site default response
func (*GetSiteDefault) WithPayload ¶
func (o *GetSiteDefault) WithPayload(payload *models.Error) *GetSiteDefault
WithPayload adds the payload to the get site default response
func (*GetSiteDefault) WithStatusCode ¶
func (o *GetSiteDefault) WithStatusCode(code int) *GetSiteDefault
WithStatusCode adds the status to the get site default response
func (*GetSiteDefault) WriteResponse ¶
func (o *GetSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSiteHandler ¶
type GetSiteHandler interface {
Handle(GetSiteParams, interface{}) middleware.Responder
}
GetSiteHandler interface for that can handle valid get site params
type GetSiteHandlerFunc ¶
type GetSiteHandlerFunc func(GetSiteParams, interface{}) middleware.Responder
GetSiteHandlerFunc turns a function with the right signature into a get site handler
func (GetSiteHandlerFunc) Handle ¶
func (fn GetSiteHandlerFunc) Handle(params GetSiteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSiteNotFound ¶
type GetSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetSiteNotFound The specified resource was not found
swagger:response getSiteNotFound
func NewGetSiteNotFound ¶
func NewGetSiteNotFound() *GetSiteNotFound
NewGetSiteNotFound creates GetSiteNotFound with default headers values
func (*GetSiteNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetSiteNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get site not found response
func (*GetSiteNotFound) SetPayload ¶
func (o *GetSiteNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get site not found response
func (*GetSiteNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetSiteNotFound) WithConfigurationVersion(configurationVersion int64) *GetSiteNotFound
WithConfigurationVersion adds the configurationVersion to the get site not found response
func (*GetSiteNotFound) WithPayload ¶
func (o *GetSiteNotFound) WithPayload(payload *models.Error) *GetSiteNotFound
WithPayload adds the payload to the get site not found response
func (*GetSiteNotFound) WriteResponse ¶
func (o *GetSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSiteOK ¶
type GetSiteOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetSiteOKBody `json:"body,omitempty"` }
GetSiteOK Successful operation
swagger:response getSiteOK
func NewGetSiteOK ¶
func NewGetSiteOK() *GetSiteOK
NewGetSiteOK creates GetSiteOK with default headers values
func (*GetSiteOK) SetConfigurationVersion ¶ added in v1.2.2
SetConfigurationVersion sets the configurationVersion to the get site o k response
func (*GetSiteOK) SetPayload ¶
func (o *GetSiteOK) SetPayload(payload *GetSiteOKBody)
SetPayload sets the payload to the get site o k response
func (*GetSiteOK) WithConfigurationVersion ¶ added in v1.2.2
WithConfigurationVersion adds the configurationVersion to the get site o k response
func (*GetSiteOK) WithPayload ¶
func (o *GetSiteOK) WithPayload(payload *GetSiteOKBody) *GetSiteOK
WithPayload adds the payload to the get site o k response
func (*GetSiteOK) WriteResponse ¶
func (o *GetSiteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSiteOKBody ¶
type GetSiteOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Site `json:"data,omitempty"` }
GetSiteOKBody get site o k body swagger:model GetSiteOKBody
func (*GetSiteOKBody) MarshalBinary ¶
func (o *GetSiteOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSiteOKBody) UnmarshalBinary ¶
func (o *GetSiteOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSiteParams ¶
type GetSiteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Site frontend 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 }
GetSiteParams contains all the bound params for the get site operation typically these are obtained from a http.Request
swagger:parameters getSite
func NewGetSiteParams ¶
func NewGetSiteParams() GetSiteParams
NewGetSiteParams creates a new GetSiteParams object no default values defined in spec.
func (*GetSiteParams) BindRequest ¶
func (o *GetSiteParams) 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 NewGetSiteParams() beforehand.
type GetSiteURL ¶
type GetSiteURL struct { Name string TransactionID *string // contains filtered or unexported fields }
GetSiteURL generates an URL for the get site operation
func (*GetSiteURL) Build ¶
func (o *GetSiteURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSiteURL) BuildFull ¶
func (o *GetSiteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSiteURL) SetBasePath ¶
func (o *GetSiteURL) 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 (*GetSiteURL) String ¶
func (o *GetSiteURL) String() string
String returns the string representation of the path with query string
func (*GetSiteURL) StringFull ¶
func (o *GetSiteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSiteURL) WithBasePath ¶
func (o *GetSiteURL) WithBasePath(bp string) *GetSiteURL
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 GetSites ¶
type GetSites struct { Context *middleware.Context Handler GetSitesHandler }
GetSites swagger:route GET /services/haproxy/sites Sites getSites
Return an array of sites ¶
Returns an array of all configured sites.
func NewGetSites ¶
func NewGetSites(ctx *middleware.Context, handler GetSitesHandler) *GetSites
NewGetSites creates a new http.Handler for the get sites operation
type GetSitesDefault ¶
type GetSitesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetSitesDefault General Error
swagger:response getSitesDefault
func NewGetSitesDefault ¶
func NewGetSitesDefault(code int) *GetSitesDefault
NewGetSitesDefault creates GetSitesDefault with default headers values
func (*GetSitesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetSitesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get sites default response
func (*GetSitesDefault) SetPayload ¶
func (o *GetSitesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get sites default response
func (*GetSitesDefault) SetStatusCode ¶
func (o *GetSitesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get sites default response
func (*GetSitesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetSitesDefault) WithConfigurationVersion(configurationVersion int64) *GetSitesDefault
WithConfigurationVersion adds the configurationVersion to the get sites default response
func (*GetSitesDefault) WithPayload ¶
func (o *GetSitesDefault) WithPayload(payload *models.Error) *GetSitesDefault
WithPayload adds the payload to the get sites default response
func (*GetSitesDefault) WithStatusCode ¶
func (o *GetSitesDefault) WithStatusCode(code int) *GetSitesDefault
WithStatusCode adds the status to the get sites default response
func (*GetSitesDefault) WriteResponse ¶
func (o *GetSitesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSitesHandler ¶
type GetSitesHandler interface {
Handle(GetSitesParams, interface{}) middleware.Responder
}
GetSitesHandler interface for that can handle valid get sites params
type GetSitesHandlerFunc ¶
type GetSitesHandlerFunc func(GetSitesParams, interface{}) middleware.Responder
GetSitesHandlerFunc turns a function with the right signature into a get sites handler
func (GetSitesHandlerFunc) Handle ¶
func (fn GetSitesHandlerFunc) Handle(params GetSitesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSitesOK ¶
type GetSitesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetSitesOKBody `json:"body,omitempty"` }
GetSitesOK Successful operation
swagger:response getSitesOK
func NewGetSitesOK ¶
func NewGetSitesOK() *GetSitesOK
NewGetSitesOK creates GetSitesOK with default headers values
func (*GetSitesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetSitesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get sites o k response
func (*GetSitesOK) SetPayload ¶
func (o *GetSitesOK) SetPayload(payload *GetSitesOKBody)
SetPayload sets the payload to the get sites o k response
func (*GetSitesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetSitesOK) WithConfigurationVersion(configurationVersion int64) *GetSitesOK
WithConfigurationVersion adds the configurationVersion to the get sites o k response
func (*GetSitesOK) WithPayload ¶
func (o *GetSitesOK) WithPayload(payload *GetSitesOKBody) *GetSitesOK
WithPayload adds the payload to the get sites o k response
func (*GetSitesOK) WriteResponse ¶
func (o *GetSitesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSitesOKBody ¶
type GetSitesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Sites `json:"data"` }
GetSitesOKBody get sites o k body swagger:model GetSitesOKBody
func (*GetSitesOKBody) MarshalBinary ¶
func (o *GetSitesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSitesOKBody) UnmarshalBinary ¶
func (o *GetSitesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSitesParams ¶
type GetSitesParams 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 }
GetSitesParams contains all the bound params for the get sites operation typically these are obtained from a http.Request
swagger:parameters getSites
func NewGetSitesParams ¶
func NewGetSitesParams() GetSitesParams
NewGetSitesParams creates a new GetSitesParams object no default values defined in spec.
func (*GetSitesParams) BindRequest ¶
func (o *GetSitesParams) 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 NewGetSitesParams() beforehand.
type GetSitesURL ¶
type GetSitesURL struct { TransactionID *string // contains filtered or unexported fields }
GetSitesURL generates an URL for the get sites operation
func (*GetSitesURL) Build ¶
func (o *GetSitesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSitesURL) BuildFull ¶
func (o *GetSitesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSitesURL) SetBasePath ¶
func (o *GetSitesURL) 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 (*GetSitesURL) String ¶
func (o *GetSitesURL) String() string
String returns the string representation of the path with query string
func (*GetSitesURL) StringFull ¶
func (o *GetSitesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSitesURL) WithBasePath ¶
func (o *GetSitesURL) WithBasePath(bp string) *GetSitesURL
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 ReplaceSite ¶
type ReplaceSite struct { Context *middleware.Context Handler ReplaceSiteHandler }
ReplaceSite swagger:route PUT /services/haproxy/sites/{name} Sites replaceSite
Replace a site ¶
Replaces a site configuration by it's name.
func NewReplaceSite ¶
func NewReplaceSite(ctx *middleware.Context, handler ReplaceSiteHandler) *ReplaceSite
NewReplaceSite creates a new http.Handler for the replace site operation
func (*ReplaceSite) ServeHTTP ¶
func (o *ReplaceSite) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceSiteAccepted ¶
type ReplaceSiteAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Site `json:"body,omitempty"` }
ReplaceSiteAccepted Configuration change accepted and reload requested
swagger:response replaceSiteAccepted
func NewReplaceSiteAccepted ¶
func NewReplaceSiteAccepted() *ReplaceSiteAccepted
NewReplaceSiteAccepted creates ReplaceSiteAccepted with default headers values
func (*ReplaceSiteAccepted) SetPayload ¶
func (o *ReplaceSiteAccepted) SetPayload(payload *models.Site)
SetPayload sets the payload to the replace site accepted response
func (*ReplaceSiteAccepted) SetReloadID ¶
func (o *ReplaceSiteAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace site accepted response
func (*ReplaceSiteAccepted) WithPayload ¶
func (o *ReplaceSiteAccepted) WithPayload(payload *models.Site) *ReplaceSiteAccepted
WithPayload adds the payload to the replace site accepted response
func (*ReplaceSiteAccepted) WithReloadID ¶
func (o *ReplaceSiteAccepted) WithReloadID(reloadID string) *ReplaceSiteAccepted
WithReloadID adds the reloadId to the replace site accepted response
func (*ReplaceSiteAccepted) WriteResponse ¶
func (o *ReplaceSiteAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceSiteBadRequest ¶
type ReplaceSiteBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceSiteBadRequest Bad request
swagger:response replaceSiteBadRequest
func NewReplaceSiteBadRequest ¶
func NewReplaceSiteBadRequest() *ReplaceSiteBadRequest
NewReplaceSiteBadRequest creates ReplaceSiteBadRequest with default headers values
func (*ReplaceSiteBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace site bad request response
func (*ReplaceSiteBadRequest) SetPayload ¶
func (o *ReplaceSiteBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace site bad request response
func (*ReplaceSiteBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteBadRequest
WithConfigurationVersion adds the configurationVersion to the replace site bad request response
func (*ReplaceSiteBadRequest) WithPayload ¶
func (o *ReplaceSiteBadRequest) WithPayload(payload *models.Error) *ReplaceSiteBadRequest
WithPayload adds the payload to the replace site bad request response
func (*ReplaceSiteBadRequest) WriteResponse ¶
func (o *ReplaceSiteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceSiteDefault ¶
type ReplaceSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceSiteDefault General Error
swagger:response replaceSiteDefault
func NewReplaceSiteDefault ¶
func NewReplaceSiteDefault(code int) *ReplaceSiteDefault
NewReplaceSiteDefault creates ReplaceSiteDefault with default headers values
func (*ReplaceSiteDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace site default response
func (*ReplaceSiteDefault) SetPayload ¶
func (o *ReplaceSiteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace site default response
func (*ReplaceSiteDefault) SetStatusCode ¶
func (o *ReplaceSiteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace site default response
func (*ReplaceSiteDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteDefault
WithConfigurationVersion adds the configurationVersion to the replace site default response
func (*ReplaceSiteDefault) WithPayload ¶
func (o *ReplaceSiteDefault) WithPayload(payload *models.Error) *ReplaceSiteDefault
WithPayload adds the payload to the replace site default response
func (*ReplaceSiteDefault) WithStatusCode ¶
func (o *ReplaceSiteDefault) WithStatusCode(code int) *ReplaceSiteDefault
WithStatusCode adds the status to the replace site default response
func (*ReplaceSiteDefault) WriteResponse ¶
func (o *ReplaceSiteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceSiteHandler ¶
type ReplaceSiteHandler interface {
Handle(ReplaceSiteParams, interface{}) middleware.Responder
}
ReplaceSiteHandler interface for that can handle valid replace site params
type ReplaceSiteHandlerFunc ¶
type ReplaceSiteHandlerFunc func(ReplaceSiteParams, interface{}) middleware.Responder
ReplaceSiteHandlerFunc turns a function with the right signature into a replace site handler
func (ReplaceSiteHandlerFunc) Handle ¶
func (fn ReplaceSiteHandlerFunc) Handle(params ReplaceSiteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceSiteNotFound ¶
type ReplaceSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceSiteNotFound The specified resource was not found
swagger:response replaceSiteNotFound
func NewReplaceSiteNotFound ¶
func NewReplaceSiteNotFound() *ReplaceSiteNotFound
NewReplaceSiteNotFound creates ReplaceSiteNotFound with default headers values
func (*ReplaceSiteNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace site not found response
func (*ReplaceSiteNotFound) SetPayload ¶
func (o *ReplaceSiteNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace site not found response
func (*ReplaceSiteNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceSiteNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceSiteNotFound
WithConfigurationVersion adds the configurationVersion to the replace site not found response
func (*ReplaceSiteNotFound) WithPayload ¶
func (o *ReplaceSiteNotFound) WithPayload(payload *models.Error) *ReplaceSiteNotFound
WithPayload adds the payload to the replace site not found response
func (*ReplaceSiteNotFound) WriteResponse ¶
func (o *ReplaceSiteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceSiteOK ¶
ReplaceSiteOK Site replaced
swagger:response replaceSiteOK
func NewReplaceSiteOK ¶
func NewReplaceSiteOK() *ReplaceSiteOK
NewReplaceSiteOK creates ReplaceSiteOK with default headers values
func (*ReplaceSiteOK) SetPayload ¶
func (o *ReplaceSiteOK) SetPayload(payload *models.Site)
SetPayload sets the payload to the replace site o k response
func (*ReplaceSiteOK) WithPayload ¶
func (o *ReplaceSiteOK) WithPayload(payload *models.Site) *ReplaceSiteOK
WithPayload adds the payload to the replace site o k response
func (*ReplaceSiteOK) WriteResponse ¶
func (o *ReplaceSiteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceSiteParams ¶
type ReplaceSiteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Site /*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 /*Site frontend 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 }
ReplaceSiteParams contains all the bound params for the replace site operation typically these are obtained from a http.Request
swagger:parameters replaceSite
func NewReplaceSiteParams ¶
func NewReplaceSiteParams() ReplaceSiteParams
NewReplaceSiteParams creates a new ReplaceSiteParams object with the default values initialized.
func (*ReplaceSiteParams) BindRequest ¶
func (o *ReplaceSiteParams) 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 NewReplaceSiteParams() beforehand.
type ReplaceSiteURL ¶
type ReplaceSiteURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceSiteURL generates an URL for the replace site operation
func (*ReplaceSiteURL) Build ¶
func (o *ReplaceSiteURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceSiteURL) BuildFull ¶
func (o *ReplaceSiteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceSiteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceSiteURL) SetBasePath ¶
func (o *ReplaceSiteURL) 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 (*ReplaceSiteURL) String ¶
func (o *ReplaceSiteURL) String() string
String returns the string representation of the path with query string
func (*ReplaceSiteURL) StringFull ¶
func (o *ReplaceSiteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceSiteURL) WithBasePath ¶
func (o *ReplaceSiteURL) WithBasePath(bp string) *ReplaceSiteURL
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_site.go
- create_site_parameters.go
- create_site_responses.go
- create_site_urlbuilder.go
- delete_site.go
- delete_site_parameters.go
- delete_site_responses.go
- delete_site_urlbuilder.go
- get_site.go
- get_site_parameters.go
- get_site_responses.go
- get_site_urlbuilder.go
- get_sites.go
- get_sites_parameters.go
- get_sites_responses.go
- get_sites_urlbuilder.go
- replace_site.go
- replace_site_parameters.go
- replace_site_responses.go
- replace_site_urlbuilder.go