Documentation ¶
Index ¶
- Constants
- type CreateFrontend
- type CreateFrontendAccepted
- func (o *CreateFrontendAccepted) SetPayload(payload *models.Frontend)
- func (o *CreateFrontendAccepted) SetReloadID(reloadID string)
- func (o *CreateFrontendAccepted) WithPayload(payload *models.Frontend) *CreateFrontendAccepted
- func (o *CreateFrontendAccepted) WithReloadID(reloadID string) *CreateFrontendAccepted
- func (o *CreateFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateFrontendBadRequest
- type CreateFrontendConflict
- type CreateFrontendCreated
- type CreateFrontendDefault
- func (o *CreateFrontendDefault) SetPayload(payload *models.Error)
- func (o *CreateFrontendDefault) SetStatusCode(code int)
- func (o *CreateFrontendDefault) WithPayload(payload *models.Error) *CreateFrontendDefault
- func (o *CreateFrontendDefault) WithStatusCode(code int) *CreateFrontendDefault
- func (o *CreateFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateFrontendHandler
- type CreateFrontendHandlerFunc
- type CreateFrontendParams
- type CreateFrontendURL
- func (o *CreateFrontendURL) Build() (*url.URL, error)
- func (o *CreateFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateFrontendURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateFrontendURL) SetBasePath(bp string)
- func (o *CreateFrontendURL) String() string
- func (o *CreateFrontendURL) StringFull(scheme, host string) string
- func (o *CreateFrontendURL) WithBasePath(bp string) *CreateFrontendURL
- type DeleteFrontend
- type DeleteFrontendAccepted
- type DeleteFrontendDefault
- func (o *DeleteFrontendDefault) SetPayload(payload *models.Error)
- func (o *DeleteFrontendDefault) SetStatusCode(code int)
- func (o *DeleteFrontendDefault) WithPayload(payload *models.Error) *DeleteFrontendDefault
- func (o *DeleteFrontendDefault) WithStatusCode(code int) *DeleteFrontendDefault
- func (o *DeleteFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteFrontendHandler
- type DeleteFrontendHandlerFunc
- type DeleteFrontendNoContent
- type DeleteFrontendNotFound
- type DeleteFrontendParams
- type DeleteFrontendURL
- func (o *DeleteFrontendURL) Build() (*url.URL, error)
- func (o *DeleteFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteFrontendURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteFrontendURL) SetBasePath(bp string)
- func (o *DeleteFrontendURL) String() string
- func (o *DeleteFrontendURL) StringFull(scheme, host string) string
- func (o *DeleteFrontendURL) WithBasePath(bp string) *DeleteFrontendURL
- type GetFrontend
- type GetFrontendDefault
- func (o *GetFrontendDefault) SetPayload(payload *models.Error)
- func (o *GetFrontendDefault) SetStatusCode(code int)
- func (o *GetFrontendDefault) WithPayload(payload *models.Error) *GetFrontendDefault
- func (o *GetFrontendDefault) WithStatusCode(code int) *GetFrontendDefault
- func (o *GetFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFrontendHandler
- type GetFrontendHandlerFunc
- type GetFrontendNotFound
- type GetFrontendOK
- type GetFrontendOKBody
- type GetFrontendParams
- type GetFrontendURL
- func (o *GetFrontendURL) Build() (*url.URL, error)
- func (o *GetFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFrontendURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFrontendURL) SetBasePath(bp string)
- func (o *GetFrontendURL) String() string
- func (o *GetFrontendURL) StringFull(scheme, host string) string
- func (o *GetFrontendURL) WithBasePath(bp string) *GetFrontendURL
- type GetFrontends
- type GetFrontendsDefault
- func (o *GetFrontendsDefault) SetPayload(payload *models.Error)
- func (o *GetFrontendsDefault) SetStatusCode(code int)
- func (o *GetFrontendsDefault) WithPayload(payload *models.Error) *GetFrontendsDefault
- func (o *GetFrontendsDefault) WithStatusCode(code int) *GetFrontendsDefault
- func (o *GetFrontendsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFrontendsHandler
- type GetFrontendsHandlerFunc
- type GetFrontendsOK
- type GetFrontendsOKBody
- type GetFrontendsParams
- type GetFrontendsURL
- func (o *GetFrontendsURL) Build() (*url.URL, error)
- func (o *GetFrontendsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFrontendsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFrontendsURL) SetBasePath(bp string)
- func (o *GetFrontendsURL) String() string
- func (o *GetFrontendsURL) StringFull(scheme, host string) string
- func (o *GetFrontendsURL) WithBasePath(bp string) *GetFrontendsURL
- type ReplaceFrontend
- type ReplaceFrontendAccepted
- func (o *ReplaceFrontendAccepted) SetPayload(payload *models.Frontend)
- func (o *ReplaceFrontendAccepted) SetReloadID(reloadID string)
- func (o *ReplaceFrontendAccepted) WithPayload(payload *models.Frontend) *ReplaceFrontendAccepted
- func (o *ReplaceFrontendAccepted) WithReloadID(reloadID string) *ReplaceFrontendAccepted
- func (o *ReplaceFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceFrontendBadRequest
- type ReplaceFrontendDefault
- func (o *ReplaceFrontendDefault) SetPayload(payload *models.Error)
- func (o *ReplaceFrontendDefault) SetStatusCode(code int)
- func (o *ReplaceFrontendDefault) WithPayload(payload *models.Error) *ReplaceFrontendDefault
- func (o *ReplaceFrontendDefault) WithStatusCode(code int) *ReplaceFrontendDefault
- func (o *ReplaceFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceFrontendHandler
- type ReplaceFrontendHandlerFunc
- type ReplaceFrontendNotFound
- type ReplaceFrontendOK
- type ReplaceFrontendParams
- type ReplaceFrontendURL
- func (o *ReplaceFrontendURL) Build() (*url.URL, error)
- func (o *ReplaceFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceFrontendURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceFrontendURL) SetBasePath(bp string)
- func (o *ReplaceFrontendURL) String() string
- func (o *ReplaceFrontendURL) StringFull(scheme, host string) string
- func (o *ReplaceFrontendURL) WithBasePath(bp string) *ReplaceFrontendURL
Constants ¶
const CreateFrontendAcceptedCode int = 202
CreateFrontendAcceptedCode is the HTTP code returned for type CreateFrontendAccepted
const CreateFrontendBadRequestCode int = 400
CreateFrontendBadRequestCode is the HTTP code returned for type CreateFrontendBadRequest
const CreateFrontendConflictCode int = 409
CreateFrontendConflictCode is the HTTP code returned for type CreateFrontendConflict
const CreateFrontendCreatedCode int = 201
CreateFrontendCreatedCode is the HTTP code returned for type CreateFrontendCreated
const DeleteFrontendAcceptedCode int = 202
DeleteFrontendAcceptedCode is the HTTP code returned for type DeleteFrontendAccepted
const DeleteFrontendNoContentCode int = 204
DeleteFrontendNoContentCode is the HTTP code returned for type DeleteFrontendNoContent
const DeleteFrontendNotFoundCode int = 404
DeleteFrontendNotFoundCode is the HTTP code returned for type DeleteFrontendNotFound
const GetFrontendNotFoundCode int = 404
GetFrontendNotFoundCode is the HTTP code returned for type GetFrontendNotFound
const GetFrontendOKCode int = 200
GetFrontendOKCode is the HTTP code returned for type GetFrontendOK
const GetFrontendsOKCode int = 200
GetFrontendsOKCode is the HTTP code returned for type GetFrontendsOK
const ReplaceFrontendAcceptedCode int = 202
ReplaceFrontendAcceptedCode is the HTTP code returned for type ReplaceFrontendAccepted
const ReplaceFrontendBadRequestCode int = 400
ReplaceFrontendBadRequestCode is the HTTP code returned for type ReplaceFrontendBadRequest
const ReplaceFrontendNotFoundCode int = 404
ReplaceFrontendNotFoundCode is the HTTP code returned for type ReplaceFrontendNotFound
const ReplaceFrontendOKCode int = 200
ReplaceFrontendOKCode is the HTTP code returned for type ReplaceFrontendOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFrontend ¶
type CreateFrontend struct { Context *middleware.Context Handler CreateFrontendHandler }
CreateFrontend swagger:route POST /services/haproxy/configuration/frontends Frontend createFrontend
Add a frontend ¶
Adds a new frontend to the configuration file.
func NewCreateFrontend ¶
func NewCreateFrontend(ctx *middleware.Context, handler CreateFrontendHandler) *CreateFrontend
NewCreateFrontend creates a new http.Handler for the create frontend operation
func (*CreateFrontend) ServeHTTP ¶
func (o *CreateFrontend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateFrontendAccepted ¶
type CreateFrontendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Frontend `json:"body,omitempty"` }
CreateFrontendAccepted Configuration change accepted and reload requested
swagger:response createFrontendAccepted
func NewCreateFrontendAccepted ¶
func NewCreateFrontendAccepted() *CreateFrontendAccepted
NewCreateFrontendAccepted creates CreateFrontendAccepted with default headers values
func (*CreateFrontendAccepted) SetPayload ¶
func (o *CreateFrontendAccepted) SetPayload(payload *models.Frontend)
SetPayload sets the payload to the create frontend accepted response
func (*CreateFrontendAccepted) SetReloadID ¶
func (o *CreateFrontendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create frontend accepted response
func (*CreateFrontendAccepted) WithPayload ¶
func (o *CreateFrontendAccepted) WithPayload(payload *models.Frontend) *CreateFrontendAccepted
WithPayload adds the payload to the create frontend accepted response
func (*CreateFrontendAccepted) WithReloadID ¶
func (o *CreateFrontendAccepted) WithReloadID(reloadID string) *CreateFrontendAccepted
WithReloadID adds the reloadId to the create frontend accepted response
func (*CreateFrontendAccepted) WriteResponse ¶
func (o *CreateFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFrontendBadRequest ¶
type CreateFrontendBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateFrontendBadRequest Bad request
swagger:response createFrontendBadRequest
func NewCreateFrontendBadRequest ¶
func NewCreateFrontendBadRequest() *CreateFrontendBadRequest
NewCreateFrontendBadRequest creates CreateFrontendBadRequest with default headers values
func (*CreateFrontendBadRequest) SetPayload ¶
func (o *CreateFrontendBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create frontend bad request response
func (*CreateFrontendBadRequest) WithPayload ¶
func (o *CreateFrontendBadRequest) WithPayload(payload *models.Error) *CreateFrontendBadRequest
WithPayload adds the payload to the create frontend bad request response
func (*CreateFrontendBadRequest) WriteResponse ¶
func (o *CreateFrontendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFrontendConflict ¶
CreateFrontendConflict The specified resource already exists
swagger:response createFrontendConflict
func NewCreateFrontendConflict ¶
func NewCreateFrontendConflict() *CreateFrontendConflict
NewCreateFrontendConflict creates CreateFrontendConflict with default headers values
func (*CreateFrontendConflict) SetPayload ¶
func (o *CreateFrontendConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create frontend conflict response
func (*CreateFrontendConflict) WithPayload ¶
func (o *CreateFrontendConflict) WithPayload(payload *models.Error) *CreateFrontendConflict
WithPayload adds the payload to the create frontend conflict response
func (*CreateFrontendConflict) WriteResponse ¶
func (o *CreateFrontendConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFrontendCreated ¶
type CreateFrontendCreated struct { /* In: Body */ Payload *models.Frontend `json:"body,omitempty"` }
CreateFrontendCreated Frontend created
swagger:response createFrontendCreated
func NewCreateFrontendCreated ¶
func NewCreateFrontendCreated() *CreateFrontendCreated
NewCreateFrontendCreated creates CreateFrontendCreated with default headers values
func (*CreateFrontendCreated) SetPayload ¶
func (o *CreateFrontendCreated) SetPayload(payload *models.Frontend)
SetPayload sets the payload to the create frontend created response
func (*CreateFrontendCreated) WithPayload ¶
func (o *CreateFrontendCreated) WithPayload(payload *models.Frontend) *CreateFrontendCreated
WithPayload adds the payload to the create frontend created response
func (*CreateFrontendCreated) WriteResponse ¶
func (o *CreateFrontendCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFrontendDefault ¶
type CreateFrontendDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateFrontendDefault General Error
swagger:response createFrontendDefault
func NewCreateFrontendDefault ¶
func NewCreateFrontendDefault(code int) *CreateFrontendDefault
NewCreateFrontendDefault creates CreateFrontendDefault with default headers values
func (*CreateFrontendDefault) SetPayload ¶
func (o *CreateFrontendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create frontend default response
func (*CreateFrontendDefault) SetStatusCode ¶
func (o *CreateFrontendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create frontend default response
func (*CreateFrontendDefault) WithPayload ¶
func (o *CreateFrontendDefault) WithPayload(payload *models.Error) *CreateFrontendDefault
WithPayload adds the payload to the create frontend default response
func (*CreateFrontendDefault) WithStatusCode ¶
func (o *CreateFrontendDefault) WithStatusCode(code int) *CreateFrontendDefault
WithStatusCode adds the status to the create frontend default response
func (*CreateFrontendDefault) WriteResponse ¶
func (o *CreateFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateFrontendHandler ¶
type CreateFrontendHandler interface {
Handle(CreateFrontendParams, interface{}) middleware.Responder
}
CreateFrontendHandler interface for that can handle valid create frontend params
type CreateFrontendHandlerFunc ¶
type CreateFrontendHandlerFunc func(CreateFrontendParams, interface{}) middleware.Responder
CreateFrontendHandlerFunc turns a function with the right signature into a create frontend handler
func (CreateFrontendHandlerFunc) Handle ¶
func (fn CreateFrontendHandlerFunc) Handle(params CreateFrontendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateFrontendParams ¶
type CreateFrontendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Frontend /*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 }
CreateFrontendParams contains all the bound params for the create frontend operation typically these are obtained from a http.Request
swagger:parameters createFrontend
func NewCreateFrontendParams ¶
func NewCreateFrontendParams() CreateFrontendParams
NewCreateFrontendParams creates a new CreateFrontendParams object with the default values initialized.
func (*CreateFrontendParams) BindRequest ¶
func (o *CreateFrontendParams) 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 NewCreateFrontendParams() beforehand.
type CreateFrontendURL ¶
type CreateFrontendURL struct { ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateFrontendURL generates an URL for the create frontend operation
func (*CreateFrontendURL) Build ¶
func (o *CreateFrontendURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateFrontendURL) BuildFull ¶
func (o *CreateFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateFrontendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateFrontendURL) SetBasePath ¶
func (o *CreateFrontendURL) 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 (*CreateFrontendURL) String ¶
func (o *CreateFrontendURL) String() string
String returns the string representation of the path with query string
func (*CreateFrontendURL) StringFull ¶
func (o *CreateFrontendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateFrontendURL) WithBasePath ¶
func (o *CreateFrontendURL) WithBasePath(bp string) *CreateFrontendURL
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 DeleteFrontend ¶
type DeleteFrontend struct { Context *middleware.Context Handler DeleteFrontendHandler }
DeleteFrontend swagger:route DELETE /services/haproxy/configuration/frontends/{name} Frontend deleteFrontend
Delete a frontend ¶
Deletes a frontend from the configuration by it's name.
func NewDeleteFrontend ¶
func NewDeleteFrontend(ctx *middleware.Context, handler DeleteFrontendHandler) *DeleteFrontend
NewDeleteFrontend creates a new http.Handler for the delete frontend operation
func (*DeleteFrontend) ServeHTTP ¶
func (o *DeleteFrontend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteFrontendAccepted ¶
type DeleteFrontendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteFrontendAccepted Configuration change accepted and reload requested
swagger:response deleteFrontendAccepted
func NewDeleteFrontendAccepted ¶
func NewDeleteFrontendAccepted() *DeleteFrontendAccepted
NewDeleteFrontendAccepted creates DeleteFrontendAccepted with default headers values
func (*DeleteFrontendAccepted) SetReloadID ¶
func (o *DeleteFrontendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete frontend accepted response
func (*DeleteFrontendAccepted) WithReloadID ¶
func (o *DeleteFrontendAccepted) WithReloadID(reloadID string) *DeleteFrontendAccepted
WithReloadID adds the reloadId to the delete frontend accepted response
func (*DeleteFrontendAccepted) WriteResponse ¶
func (o *DeleteFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFrontendDefault ¶
type DeleteFrontendDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteFrontendDefault General Error
swagger:response deleteFrontendDefault
func NewDeleteFrontendDefault ¶
func NewDeleteFrontendDefault(code int) *DeleteFrontendDefault
NewDeleteFrontendDefault creates DeleteFrontendDefault with default headers values
func (*DeleteFrontendDefault) SetPayload ¶
func (o *DeleteFrontendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete frontend default response
func (*DeleteFrontendDefault) SetStatusCode ¶
func (o *DeleteFrontendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete frontend default response
func (*DeleteFrontendDefault) WithPayload ¶
func (o *DeleteFrontendDefault) WithPayload(payload *models.Error) *DeleteFrontendDefault
WithPayload adds the payload to the delete frontend default response
func (*DeleteFrontendDefault) WithStatusCode ¶
func (o *DeleteFrontendDefault) WithStatusCode(code int) *DeleteFrontendDefault
WithStatusCode adds the status to the delete frontend default response
func (*DeleteFrontendDefault) WriteResponse ¶
func (o *DeleteFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFrontendHandler ¶
type DeleteFrontendHandler interface {
Handle(DeleteFrontendParams, interface{}) middleware.Responder
}
DeleteFrontendHandler interface for that can handle valid delete frontend params
type DeleteFrontendHandlerFunc ¶
type DeleteFrontendHandlerFunc func(DeleteFrontendParams, interface{}) middleware.Responder
DeleteFrontendHandlerFunc turns a function with the right signature into a delete frontend handler
func (DeleteFrontendHandlerFunc) Handle ¶
func (fn DeleteFrontendHandlerFunc) Handle(params DeleteFrontendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteFrontendNoContent ¶
type DeleteFrontendNoContent struct { }
DeleteFrontendNoContent Frontend deleted
swagger:response deleteFrontendNoContent
func NewDeleteFrontendNoContent ¶
func NewDeleteFrontendNoContent() *DeleteFrontendNoContent
NewDeleteFrontendNoContent creates DeleteFrontendNoContent with default headers values
func (*DeleteFrontendNoContent) WriteResponse ¶
func (o *DeleteFrontendNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFrontendNotFound ¶
DeleteFrontendNotFound The specified resource was not found
swagger:response deleteFrontendNotFound
func NewDeleteFrontendNotFound ¶
func NewDeleteFrontendNotFound() *DeleteFrontendNotFound
NewDeleteFrontendNotFound creates DeleteFrontendNotFound with default headers values
func (*DeleteFrontendNotFound) SetPayload ¶
func (o *DeleteFrontendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete frontend not found response
func (*DeleteFrontendNotFound) WithPayload ¶
func (o *DeleteFrontendNotFound) WithPayload(payload *models.Error) *DeleteFrontendNotFound
WithPayload adds the payload to the delete frontend not found response
func (*DeleteFrontendNotFound) WriteResponse ¶
func (o *DeleteFrontendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteFrontendParams ¶
type DeleteFrontendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*Frontend name Required: true In: 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 }
DeleteFrontendParams contains all the bound params for the delete frontend operation typically these are obtained from a http.Request
swagger:parameters deleteFrontend
func NewDeleteFrontendParams ¶
func NewDeleteFrontendParams() DeleteFrontendParams
NewDeleteFrontendParams creates a new DeleteFrontendParams object with the default values initialized.
func (*DeleteFrontendParams) BindRequest ¶
func (o *DeleteFrontendParams) 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 NewDeleteFrontendParams() beforehand.
type DeleteFrontendURL ¶
type DeleteFrontendURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteFrontendURL generates an URL for the delete frontend operation
func (*DeleteFrontendURL) Build ¶
func (o *DeleteFrontendURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteFrontendURL) BuildFull ¶
func (o *DeleteFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteFrontendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteFrontendURL) SetBasePath ¶
func (o *DeleteFrontendURL) 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 (*DeleteFrontendURL) String ¶
func (o *DeleteFrontendURL) String() string
String returns the string representation of the path with query string
func (*DeleteFrontendURL) StringFull ¶
func (o *DeleteFrontendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteFrontendURL) WithBasePath ¶
func (o *DeleteFrontendURL) WithBasePath(bp string) *DeleteFrontendURL
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 GetFrontend ¶
type GetFrontend struct { Context *middleware.Context Handler GetFrontendHandler }
GetFrontend swagger:route GET /services/haproxy/configuration/frontends/{name} Frontend getFrontend
Return a frontend ¶
Returns one frontend configuration by it's name.
func NewGetFrontend ¶
func NewGetFrontend(ctx *middleware.Context, handler GetFrontendHandler) *GetFrontend
NewGetFrontend creates a new http.Handler for the get frontend operation
func (*GetFrontend) ServeHTTP ¶
func (o *GetFrontend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFrontendDefault ¶
type GetFrontendDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetFrontendDefault General Error
swagger:response getFrontendDefault
func NewGetFrontendDefault ¶
func NewGetFrontendDefault(code int) *GetFrontendDefault
NewGetFrontendDefault creates GetFrontendDefault with default headers values
func (*GetFrontendDefault) SetPayload ¶
func (o *GetFrontendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get frontend default response
func (*GetFrontendDefault) SetStatusCode ¶
func (o *GetFrontendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get frontend default response
func (*GetFrontendDefault) WithPayload ¶
func (o *GetFrontendDefault) WithPayload(payload *models.Error) *GetFrontendDefault
WithPayload adds the payload to the get frontend default response
func (*GetFrontendDefault) WithStatusCode ¶
func (o *GetFrontendDefault) WithStatusCode(code int) *GetFrontendDefault
WithStatusCode adds the status to the get frontend default response
func (*GetFrontendDefault) WriteResponse ¶
func (o *GetFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFrontendHandler ¶
type GetFrontendHandler interface {
Handle(GetFrontendParams, interface{}) middleware.Responder
}
GetFrontendHandler interface for that can handle valid get frontend params
type GetFrontendHandlerFunc ¶
type GetFrontendHandlerFunc func(GetFrontendParams, interface{}) middleware.Responder
GetFrontendHandlerFunc turns a function with the right signature into a get frontend handler
func (GetFrontendHandlerFunc) Handle ¶
func (fn GetFrontendHandlerFunc) Handle(params GetFrontendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetFrontendNotFound ¶
GetFrontendNotFound The specified resource was not found
swagger:response getFrontendNotFound
func NewGetFrontendNotFound ¶
func NewGetFrontendNotFound() *GetFrontendNotFound
NewGetFrontendNotFound creates GetFrontendNotFound with default headers values
func (*GetFrontendNotFound) SetPayload ¶
func (o *GetFrontendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get frontend not found response
func (*GetFrontendNotFound) WithPayload ¶
func (o *GetFrontendNotFound) WithPayload(payload *models.Error) *GetFrontendNotFound
WithPayload adds the payload to the get frontend not found response
func (*GetFrontendNotFound) WriteResponse ¶
func (o *GetFrontendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFrontendOK ¶
type GetFrontendOK struct { /* In: Body */ Payload *GetFrontendOKBody `json:"body,omitempty"` }
GetFrontendOK Successful operation
swagger:response getFrontendOK
func NewGetFrontendOK ¶
func NewGetFrontendOK() *GetFrontendOK
NewGetFrontendOK creates GetFrontendOK with default headers values
func (*GetFrontendOK) SetPayload ¶
func (o *GetFrontendOK) SetPayload(payload *GetFrontendOKBody)
SetPayload sets the payload to the get frontend o k response
func (*GetFrontendOK) WithPayload ¶
func (o *GetFrontendOK) WithPayload(payload *GetFrontendOKBody) *GetFrontendOK
WithPayload adds the payload to the get frontend o k response
func (*GetFrontendOK) WriteResponse ¶
func (o *GetFrontendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFrontendOKBody ¶
type GetFrontendOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Frontend `json:"data,omitempty"` }
GetFrontendOKBody get frontend o k body swagger:model GetFrontendOKBody
func (*GetFrontendOKBody) MarshalBinary ¶
func (o *GetFrontendOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetFrontendOKBody) UnmarshalBinary ¶
func (o *GetFrontendOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetFrontendParams ¶
type GetFrontendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*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 }
GetFrontendParams contains all the bound params for the get frontend operation typically these are obtained from a http.Request
swagger:parameters getFrontend
func NewGetFrontendParams ¶
func NewGetFrontendParams() GetFrontendParams
NewGetFrontendParams creates a new GetFrontendParams object no default values defined in spec.
func (*GetFrontendParams) BindRequest ¶
func (o *GetFrontendParams) 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 NewGetFrontendParams() beforehand.
type GetFrontendURL ¶
type GetFrontendURL struct { Name string TransactionID *string // contains filtered or unexported fields }
GetFrontendURL generates an URL for the get frontend operation
func (*GetFrontendURL) Build ¶
func (o *GetFrontendURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFrontendURL) BuildFull ¶
func (o *GetFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFrontendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFrontendURL) SetBasePath ¶
func (o *GetFrontendURL) 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 (*GetFrontendURL) String ¶
func (o *GetFrontendURL) String() string
String returns the string representation of the path with query string
func (*GetFrontendURL) StringFull ¶
func (o *GetFrontendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFrontendURL) WithBasePath ¶
func (o *GetFrontendURL) WithBasePath(bp string) *GetFrontendURL
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 GetFrontends ¶
type GetFrontends struct { Context *middleware.Context Handler GetFrontendsHandler }
GetFrontends swagger:route GET /services/haproxy/configuration/frontends Frontend getFrontends
Return an array of frontends ¶
Returns an array of all configured frontends.
func NewGetFrontends ¶
func NewGetFrontends(ctx *middleware.Context, handler GetFrontendsHandler) *GetFrontends
NewGetFrontends creates a new http.Handler for the get frontends operation
func (*GetFrontends) ServeHTTP ¶
func (o *GetFrontends) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFrontendsDefault ¶
type GetFrontendsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetFrontendsDefault General Error
swagger:response getFrontendsDefault
func NewGetFrontendsDefault ¶
func NewGetFrontendsDefault(code int) *GetFrontendsDefault
NewGetFrontendsDefault creates GetFrontendsDefault with default headers values
func (*GetFrontendsDefault) SetPayload ¶
func (o *GetFrontendsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get frontends default response
func (*GetFrontendsDefault) SetStatusCode ¶
func (o *GetFrontendsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get frontends default response
func (*GetFrontendsDefault) WithPayload ¶
func (o *GetFrontendsDefault) WithPayload(payload *models.Error) *GetFrontendsDefault
WithPayload adds the payload to the get frontends default response
func (*GetFrontendsDefault) WithStatusCode ¶
func (o *GetFrontendsDefault) WithStatusCode(code int) *GetFrontendsDefault
WithStatusCode adds the status to the get frontends default response
func (*GetFrontendsDefault) WriteResponse ¶
func (o *GetFrontendsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFrontendsHandler ¶
type GetFrontendsHandler interface {
Handle(GetFrontendsParams, interface{}) middleware.Responder
}
GetFrontendsHandler interface for that can handle valid get frontends params
type GetFrontendsHandlerFunc ¶
type GetFrontendsHandlerFunc func(GetFrontendsParams, interface{}) middleware.Responder
GetFrontendsHandlerFunc turns a function with the right signature into a get frontends handler
func (GetFrontendsHandlerFunc) Handle ¶
func (fn GetFrontendsHandlerFunc) Handle(params GetFrontendsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetFrontendsOK ¶
type GetFrontendsOK struct { /* In: Body */ Payload *GetFrontendsOKBody `json:"body,omitempty"` }
GetFrontendsOK Successful operation
swagger:response getFrontendsOK
func NewGetFrontendsOK ¶
func NewGetFrontendsOK() *GetFrontendsOK
NewGetFrontendsOK creates GetFrontendsOK with default headers values
func (*GetFrontendsOK) SetPayload ¶
func (o *GetFrontendsOK) SetPayload(payload *GetFrontendsOKBody)
SetPayload sets the payload to the get frontends o k response
func (*GetFrontendsOK) WithPayload ¶
func (o *GetFrontendsOK) WithPayload(payload *GetFrontendsOKBody) *GetFrontendsOK
WithPayload adds the payload to the get frontends o k response
func (*GetFrontendsOK) WriteResponse ¶
func (o *GetFrontendsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFrontendsOKBody ¶
type GetFrontendsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data models.Frontends `json:"data,omitempty"` }
GetFrontendsOKBody get frontends o k body swagger:model GetFrontendsOKBody
func (*GetFrontendsOKBody) MarshalBinary ¶
func (o *GetFrontendsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetFrontendsOKBody) UnmarshalBinary ¶
func (o *GetFrontendsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetFrontendsParams ¶
type GetFrontendsParams 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 }
GetFrontendsParams contains all the bound params for the get frontends operation typically these are obtained from a http.Request
swagger:parameters getFrontends
func NewGetFrontendsParams ¶
func NewGetFrontendsParams() GetFrontendsParams
NewGetFrontendsParams creates a new GetFrontendsParams object no default values defined in spec.
func (*GetFrontendsParams) BindRequest ¶
func (o *GetFrontendsParams) 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 NewGetFrontendsParams() beforehand.
type GetFrontendsURL ¶
type GetFrontendsURL struct { TransactionID *string // contains filtered or unexported fields }
GetFrontendsURL generates an URL for the get frontends operation
func (*GetFrontendsURL) Build ¶
func (o *GetFrontendsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFrontendsURL) BuildFull ¶
func (o *GetFrontendsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFrontendsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFrontendsURL) SetBasePath ¶
func (o *GetFrontendsURL) 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 (*GetFrontendsURL) String ¶
func (o *GetFrontendsURL) String() string
String returns the string representation of the path with query string
func (*GetFrontendsURL) StringFull ¶
func (o *GetFrontendsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFrontendsURL) WithBasePath ¶
func (o *GetFrontendsURL) WithBasePath(bp string) *GetFrontendsURL
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 ReplaceFrontend ¶
type ReplaceFrontend struct { Context *middleware.Context Handler ReplaceFrontendHandler }
ReplaceFrontend swagger:route PUT /services/haproxy/configuration/frontends/{name} Frontend replaceFrontend
Replace a frontend ¶
Replaces a frontend configuration by it's name.
func NewReplaceFrontend ¶
func NewReplaceFrontend(ctx *middleware.Context, handler ReplaceFrontendHandler) *ReplaceFrontend
NewReplaceFrontend creates a new http.Handler for the replace frontend operation
func (*ReplaceFrontend) ServeHTTP ¶
func (o *ReplaceFrontend) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceFrontendAccepted ¶
type ReplaceFrontendAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Frontend `json:"body,omitempty"` }
ReplaceFrontendAccepted Configuration change accepted and reload requested
swagger:response replaceFrontendAccepted
func NewReplaceFrontendAccepted ¶
func NewReplaceFrontendAccepted() *ReplaceFrontendAccepted
NewReplaceFrontendAccepted creates ReplaceFrontendAccepted with default headers values
func (*ReplaceFrontendAccepted) SetPayload ¶
func (o *ReplaceFrontendAccepted) SetPayload(payload *models.Frontend)
SetPayload sets the payload to the replace frontend accepted response
func (*ReplaceFrontendAccepted) SetReloadID ¶
func (o *ReplaceFrontendAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace frontend accepted response
func (*ReplaceFrontendAccepted) WithPayload ¶
func (o *ReplaceFrontendAccepted) WithPayload(payload *models.Frontend) *ReplaceFrontendAccepted
WithPayload adds the payload to the replace frontend accepted response
func (*ReplaceFrontendAccepted) WithReloadID ¶
func (o *ReplaceFrontendAccepted) WithReloadID(reloadID string) *ReplaceFrontendAccepted
WithReloadID adds the reloadId to the replace frontend accepted response
func (*ReplaceFrontendAccepted) WriteResponse ¶
func (o *ReplaceFrontendAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceFrontendBadRequest ¶
type ReplaceFrontendBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceFrontendBadRequest Bad request
swagger:response replaceFrontendBadRequest
func NewReplaceFrontendBadRequest ¶
func NewReplaceFrontendBadRequest() *ReplaceFrontendBadRequest
NewReplaceFrontendBadRequest creates ReplaceFrontendBadRequest with default headers values
func (*ReplaceFrontendBadRequest) SetPayload ¶
func (o *ReplaceFrontendBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace frontend bad request response
func (*ReplaceFrontendBadRequest) WithPayload ¶
func (o *ReplaceFrontendBadRequest) WithPayload(payload *models.Error) *ReplaceFrontendBadRequest
WithPayload adds the payload to the replace frontend bad request response
func (*ReplaceFrontendBadRequest) WriteResponse ¶
func (o *ReplaceFrontendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceFrontendDefault ¶
type ReplaceFrontendDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceFrontendDefault General Error
swagger:response replaceFrontendDefault
func NewReplaceFrontendDefault ¶
func NewReplaceFrontendDefault(code int) *ReplaceFrontendDefault
NewReplaceFrontendDefault creates ReplaceFrontendDefault with default headers values
func (*ReplaceFrontendDefault) SetPayload ¶
func (o *ReplaceFrontendDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace frontend default response
func (*ReplaceFrontendDefault) SetStatusCode ¶
func (o *ReplaceFrontendDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace frontend default response
func (*ReplaceFrontendDefault) WithPayload ¶
func (o *ReplaceFrontendDefault) WithPayload(payload *models.Error) *ReplaceFrontendDefault
WithPayload adds the payload to the replace frontend default response
func (*ReplaceFrontendDefault) WithStatusCode ¶
func (o *ReplaceFrontendDefault) WithStatusCode(code int) *ReplaceFrontendDefault
WithStatusCode adds the status to the replace frontend default response
func (*ReplaceFrontendDefault) WriteResponse ¶
func (o *ReplaceFrontendDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceFrontendHandler ¶
type ReplaceFrontendHandler interface {
Handle(ReplaceFrontendParams, interface{}) middleware.Responder
}
ReplaceFrontendHandler interface for that can handle valid replace frontend params
type ReplaceFrontendHandlerFunc ¶
type ReplaceFrontendHandlerFunc func(ReplaceFrontendParams, interface{}) middleware.Responder
ReplaceFrontendHandlerFunc turns a function with the right signature into a replace frontend handler
func (ReplaceFrontendHandlerFunc) Handle ¶
func (fn ReplaceFrontendHandlerFunc) Handle(params ReplaceFrontendParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceFrontendNotFound ¶
type ReplaceFrontendNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceFrontendNotFound The specified resource was not found
swagger:response replaceFrontendNotFound
func NewReplaceFrontendNotFound ¶
func NewReplaceFrontendNotFound() *ReplaceFrontendNotFound
NewReplaceFrontendNotFound creates ReplaceFrontendNotFound with default headers values
func (*ReplaceFrontendNotFound) SetPayload ¶
func (o *ReplaceFrontendNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace frontend not found response
func (*ReplaceFrontendNotFound) WithPayload ¶
func (o *ReplaceFrontendNotFound) WithPayload(payload *models.Error) *ReplaceFrontendNotFound
WithPayload adds the payload to the replace frontend not found response
func (*ReplaceFrontendNotFound) WriteResponse ¶
func (o *ReplaceFrontendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceFrontendOK ¶
ReplaceFrontendOK Frontend replaced
swagger:response replaceFrontendOK
func NewReplaceFrontendOK ¶
func NewReplaceFrontendOK() *ReplaceFrontendOK
NewReplaceFrontendOK creates ReplaceFrontendOK with default headers values
func (*ReplaceFrontendOK) SetPayload ¶
func (o *ReplaceFrontendOK) SetPayload(payload *models.Frontend)
SetPayload sets the payload to the replace frontend o k response
func (*ReplaceFrontendOK) WithPayload ¶
func (o *ReplaceFrontendOK) WithPayload(payload *models.Frontend) *ReplaceFrontendOK
WithPayload adds the payload to the replace frontend o k response
func (*ReplaceFrontendOK) WriteResponse ¶
func (o *ReplaceFrontendOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceFrontendParams ¶
type ReplaceFrontendParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Frontend /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*Frontend name Required: true In: 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 }
ReplaceFrontendParams contains all the bound params for the replace frontend operation typically these are obtained from a http.Request
swagger:parameters replaceFrontend
func NewReplaceFrontendParams ¶
func NewReplaceFrontendParams() ReplaceFrontendParams
NewReplaceFrontendParams creates a new ReplaceFrontendParams object with the default values initialized.
func (*ReplaceFrontendParams) BindRequest ¶
func (o *ReplaceFrontendParams) 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 NewReplaceFrontendParams() beforehand.
type ReplaceFrontendURL ¶
type ReplaceFrontendURL struct { Name string ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceFrontendURL generates an URL for the replace frontend operation
func (*ReplaceFrontendURL) Build ¶
func (o *ReplaceFrontendURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceFrontendURL) BuildFull ¶
func (o *ReplaceFrontendURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceFrontendURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceFrontendURL) SetBasePath ¶
func (o *ReplaceFrontendURL) 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 (*ReplaceFrontendURL) String ¶
func (o *ReplaceFrontendURL) String() string
String returns the string representation of the path with query string
func (*ReplaceFrontendURL) StringFull ¶
func (o *ReplaceFrontendURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceFrontendURL) WithBasePath ¶
func (o *ReplaceFrontendURL) WithBasePath(bp string) *ReplaceFrontendURL
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_frontend.go
- create_frontend_parameters.go
- create_frontend_responses.go
- create_frontend_urlbuilder.go
- delete_frontend.go
- delete_frontend_parameters.go
- delete_frontend_responses.go
- delete_frontend_urlbuilder.go
- get_frontend.go
- get_frontend_parameters.go
- get_frontend_responses.go
- get_frontend_urlbuilder.go
- get_frontends.go
- get_frontends_parameters.go
- get_frontends_responses.go
- get_frontends_urlbuilder.go
- replace_frontend.go
- replace_frontend_parameters.go
- replace_frontend_responses.go
- replace_frontend_urlbuilder.go