Documentation ¶
Index ¶
- Constants
- type GetGlobal
- type GetGlobalDefault
- func (o *GetGlobalDefault) SetPayload(payload *models.Error)
- func (o *GetGlobalDefault) SetStatusCode(code int)
- func (o *GetGlobalDefault) WithPayload(payload *models.Error) *GetGlobalDefault
- func (o *GetGlobalDefault) WithStatusCode(code int) *GetGlobalDefault
- func (o *GetGlobalDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetGlobalHandler
- type GetGlobalHandlerFunc
- type GetGlobalOK
- type GetGlobalOKBody
- type GetGlobalParams
- type GetGlobalURL
- func (o *GetGlobalURL) Build() (*url.URL, error)
- func (o *GetGlobalURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetGlobalURL) Must(u *url.URL, err error) *url.URL
- func (o *GetGlobalURL) SetBasePath(bp string)
- func (o *GetGlobalURL) String() string
- func (o *GetGlobalURL) StringFull(scheme, host string) string
- func (o *GetGlobalURL) WithBasePath(bp string) *GetGlobalURL
- type ReplaceGlobal
- type ReplaceGlobalAccepted
- func (o *ReplaceGlobalAccepted) SetPayload(payload *models.Global)
- func (o *ReplaceGlobalAccepted) SetReloadID(reloadID string)
- func (o *ReplaceGlobalAccepted) WithPayload(payload *models.Global) *ReplaceGlobalAccepted
- func (o *ReplaceGlobalAccepted) WithReloadID(reloadID string) *ReplaceGlobalAccepted
- func (o *ReplaceGlobalAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceGlobalBadRequest
- type ReplaceGlobalDefault
- func (o *ReplaceGlobalDefault) SetPayload(payload *models.Error)
- func (o *ReplaceGlobalDefault) SetStatusCode(code int)
- func (o *ReplaceGlobalDefault) WithPayload(payload *models.Error) *ReplaceGlobalDefault
- func (o *ReplaceGlobalDefault) WithStatusCode(code int) *ReplaceGlobalDefault
- func (o *ReplaceGlobalDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceGlobalHandler
- type ReplaceGlobalHandlerFunc
- type ReplaceGlobalOK
- type ReplaceGlobalParams
- type ReplaceGlobalURL
- func (o *ReplaceGlobalURL) Build() (*url.URL, error)
- func (o *ReplaceGlobalURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceGlobalURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceGlobalURL) SetBasePath(bp string)
- func (o *ReplaceGlobalURL) String() string
- func (o *ReplaceGlobalURL) StringFull(scheme, host string) string
- func (o *ReplaceGlobalURL) WithBasePath(bp string) *ReplaceGlobalURL
Constants ¶
const GetGlobalOKCode int = 200
GetGlobalOKCode is the HTTP code returned for type GetGlobalOK
const ReplaceGlobalAcceptedCode int = 202
ReplaceGlobalAcceptedCode is the HTTP code returned for type ReplaceGlobalAccepted
const ReplaceGlobalBadRequestCode int = 400
ReplaceGlobalBadRequestCode is the HTTP code returned for type ReplaceGlobalBadRequest
const ReplaceGlobalOKCode int = 200
ReplaceGlobalOKCode is the HTTP code returned for type ReplaceGlobalOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetGlobal ¶
type GetGlobal struct { Context *middleware.Context Handler GetGlobalHandler }
GetGlobal swagger:route GET /services/haproxy/configuration/global Global getGlobal
Return a global part of configuration ¶
Returns global part of configuration.
func NewGetGlobal ¶
func NewGetGlobal(ctx *middleware.Context, handler GetGlobalHandler) *GetGlobal
NewGetGlobal creates a new http.Handler for the get global operation
type GetGlobalDefault ¶
type GetGlobalDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetGlobalDefault General Error
swagger:response getGlobalDefault
func NewGetGlobalDefault ¶
func NewGetGlobalDefault(code int) *GetGlobalDefault
NewGetGlobalDefault creates GetGlobalDefault with default headers values
func (*GetGlobalDefault) SetPayload ¶
func (o *GetGlobalDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get global default response
func (*GetGlobalDefault) SetStatusCode ¶
func (o *GetGlobalDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get global default response
func (*GetGlobalDefault) WithPayload ¶
func (o *GetGlobalDefault) WithPayload(payload *models.Error) *GetGlobalDefault
WithPayload adds the payload to the get global default response
func (*GetGlobalDefault) WithStatusCode ¶
func (o *GetGlobalDefault) WithStatusCode(code int) *GetGlobalDefault
WithStatusCode adds the status to the get global default response
func (*GetGlobalDefault) WriteResponse ¶
func (o *GetGlobalDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGlobalHandler ¶
type GetGlobalHandler interface {
Handle(GetGlobalParams, interface{}) middleware.Responder
}
GetGlobalHandler interface for that can handle valid get global params
type GetGlobalHandlerFunc ¶
type GetGlobalHandlerFunc func(GetGlobalParams, interface{}) middleware.Responder
GetGlobalHandlerFunc turns a function with the right signature into a get global handler
func (GetGlobalHandlerFunc) Handle ¶
func (fn GetGlobalHandlerFunc) Handle(params GetGlobalParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetGlobalOK ¶
type GetGlobalOK struct { /* In: Body */ Payload *GetGlobalOKBody `json:"body,omitempty"` }
GetGlobalOK Successful operation
swagger:response getGlobalOK
func NewGetGlobalOK ¶
func NewGetGlobalOK() *GetGlobalOK
NewGetGlobalOK creates GetGlobalOK with default headers values
func (*GetGlobalOK) SetPayload ¶
func (o *GetGlobalOK) SetPayload(payload *GetGlobalOKBody)
SetPayload sets the payload to the get global o k response
func (*GetGlobalOK) WithPayload ¶
func (o *GetGlobalOK) WithPayload(payload *GetGlobalOKBody) *GetGlobalOK
WithPayload adds the payload to the get global o k response
func (*GetGlobalOK) WriteResponse ¶
func (o *GetGlobalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGlobalOKBody ¶
type GetGlobalOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Global `json:"data,omitempty"` }
GetGlobalOKBody get global o k body swagger:model GetGlobalOKBody
func (*GetGlobalOKBody) MarshalBinary ¶
func (o *GetGlobalOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetGlobalOKBody) UnmarshalBinary ¶
func (o *GetGlobalOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetGlobalParams ¶
type GetGlobalParams 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 }
GetGlobalParams contains all the bound params for the get global operation typically these are obtained from a http.Request
swagger:parameters getGlobal
func NewGetGlobalParams ¶
func NewGetGlobalParams() GetGlobalParams
NewGetGlobalParams creates a new GetGlobalParams object no default values defined in spec.
func (*GetGlobalParams) BindRequest ¶
func (o *GetGlobalParams) 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 NewGetGlobalParams() beforehand.
type GetGlobalURL ¶
type GetGlobalURL struct { TransactionID *string // contains filtered or unexported fields }
GetGlobalURL generates an URL for the get global operation
func (*GetGlobalURL) Build ¶
func (o *GetGlobalURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetGlobalURL) BuildFull ¶
func (o *GetGlobalURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetGlobalURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetGlobalURL) SetBasePath ¶
func (o *GetGlobalURL) 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 (*GetGlobalURL) String ¶
func (o *GetGlobalURL) String() string
String returns the string representation of the path with query string
func (*GetGlobalURL) StringFull ¶
func (o *GetGlobalURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetGlobalURL) WithBasePath ¶
func (o *GetGlobalURL) WithBasePath(bp string) *GetGlobalURL
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 ReplaceGlobal ¶
type ReplaceGlobal struct { Context *middleware.Context Handler ReplaceGlobalHandler }
ReplaceGlobal swagger:route PUT /services/haproxy/configuration/global Global replaceGlobal
Replace global ¶
Replace global part of config
func NewReplaceGlobal ¶
func NewReplaceGlobal(ctx *middleware.Context, handler ReplaceGlobalHandler) *ReplaceGlobal
NewReplaceGlobal creates a new http.Handler for the replace global operation
func (*ReplaceGlobal) ServeHTTP ¶
func (o *ReplaceGlobal) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceGlobalAccepted ¶
type ReplaceGlobalAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.Global `json:"body,omitempty"` }
ReplaceGlobalAccepted Configuration change accepted and reload requested
swagger:response replaceGlobalAccepted
func NewReplaceGlobalAccepted ¶
func NewReplaceGlobalAccepted() *ReplaceGlobalAccepted
NewReplaceGlobalAccepted creates ReplaceGlobalAccepted with default headers values
func (*ReplaceGlobalAccepted) SetPayload ¶
func (o *ReplaceGlobalAccepted) SetPayload(payload *models.Global)
SetPayload sets the payload to the replace global accepted response
func (*ReplaceGlobalAccepted) SetReloadID ¶
func (o *ReplaceGlobalAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace global accepted response
func (*ReplaceGlobalAccepted) WithPayload ¶
func (o *ReplaceGlobalAccepted) WithPayload(payload *models.Global) *ReplaceGlobalAccepted
WithPayload adds the payload to the replace global accepted response
func (*ReplaceGlobalAccepted) WithReloadID ¶
func (o *ReplaceGlobalAccepted) WithReloadID(reloadID string) *ReplaceGlobalAccepted
WithReloadID adds the reloadId to the replace global accepted response
func (*ReplaceGlobalAccepted) WriteResponse ¶
func (o *ReplaceGlobalAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceGlobalBadRequest ¶
type ReplaceGlobalBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceGlobalBadRequest Bad request
swagger:response replaceGlobalBadRequest
func NewReplaceGlobalBadRequest ¶
func NewReplaceGlobalBadRequest() *ReplaceGlobalBadRequest
NewReplaceGlobalBadRequest creates ReplaceGlobalBadRequest with default headers values
func (*ReplaceGlobalBadRequest) SetPayload ¶
func (o *ReplaceGlobalBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace global bad request response
func (*ReplaceGlobalBadRequest) WithPayload ¶
func (o *ReplaceGlobalBadRequest) WithPayload(payload *models.Error) *ReplaceGlobalBadRequest
WithPayload adds the payload to the replace global bad request response
func (*ReplaceGlobalBadRequest) WriteResponse ¶
func (o *ReplaceGlobalBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceGlobalDefault ¶
type ReplaceGlobalDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceGlobalDefault General Error
swagger:response replaceGlobalDefault
func NewReplaceGlobalDefault ¶
func NewReplaceGlobalDefault(code int) *ReplaceGlobalDefault
NewReplaceGlobalDefault creates ReplaceGlobalDefault with default headers values
func (*ReplaceGlobalDefault) SetPayload ¶
func (o *ReplaceGlobalDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace global default response
func (*ReplaceGlobalDefault) SetStatusCode ¶
func (o *ReplaceGlobalDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace global default response
func (*ReplaceGlobalDefault) WithPayload ¶
func (o *ReplaceGlobalDefault) WithPayload(payload *models.Error) *ReplaceGlobalDefault
WithPayload adds the payload to the replace global default response
func (*ReplaceGlobalDefault) WithStatusCode ¶
func (o *ReplaceGlobalDefault) WithStatusCode(code int) *ReplaceGlobalDefault
WithStatusCode adds the status to the replace global default response
func (*ReplaceGlobalDefault) WriteResponse ¶
func (o *ReplaceGlobalDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceGlobalHandler ¶
type ReplaceGlobalHandler interface {
Handle(ReplaceGlobalParams, interface{}) middleware.Responder
}
ReplaceGlobalHandler interface for that can handle valid replace global params
type ReplaceGlobalHandlerFunc ¶
type ReplaceGlobalHandlerFunc func(ReplaceGlobalParams, interface{}) middleware.Responder
ReplaceGlobalHandlerFunc turns a function with the right signature into a replace global handler
func (ReplaceGlobalHandlerFunc) Handle ¶
func (fn ReplaceGlobalHandlerFunc) Handle(params ReplaceGlobalParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceGlobalOK ¶
ReplaceGlobalOK Global replaced
swagger:response replaceGlobalOK
func NewReplaceGlobalOK ¶
func NewReplaceGlobalOK() *ReplaceGlobalOK
NewReplaceGlobalOK creates ReplaceGlobalOK with default headers values
func (*ReplaceGlobalOK) SetPayload ¶
func (o *ReplaceGlobalOK) SetPayload(payload *models.Global)
SetPayload sets the payload to the replace global o k response
func (*ReplaceGlobalOK) WithPayload ¶
func (o *ReplaceGlobalOK) WithPayload(payload *models.Global) *ReplaceGlobalOK
WithPayload adds the payload to the replace global o k response
func (*ReplaceGlobalOK) WriteResponse ¶
func (o *ReplaceGlobalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceGlobalParams ¶
type ReplaceGlobalParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.Global /*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 }
ReplaceGlobalParams contains all the bound params for the replace global operation typically these are obtained from a http.Request
swagger:parameters replaceGlobal
func NewReplaceGlobalParams ¶
func NewReplaceGlobalParams() ReplaceGlobalParams
NewReplaceGlobalParams creates a new ReplaceGlobalParams object with the default values initialized.
func (*ReplaceGlobalParams) BindRequest ¶
func (o *ReplaceGlobalParams) 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 NewReplaceGlobalParams() beforehand.
type ReplaceGlobalURL ¶
type ReplaceGlobalURL struct { ForceReload *bool TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceGlobalURL generates an URL for the replace global operation
func (*ReplaceGlobalURL) Build ¶
func (o *ReplaceGlobalURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceGlobalURL) BuildFull ¶
func (o *ReplaceGlobalURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceGlobalURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceGlobalURL) SetBasePath ¶
func (o *ReplaceGlobalURL) 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 (*ReplaceGlobalURL) String ¶
func (o *ReplaceGlobalURL) String() string
String returns the string representation of the path with query string
func (*ReplaceGlobalURL) StringFull ¶
func (o *ReplaceGlobalURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceGlobalURL) WithBasePath ¶
func (o *ReplaceGlobalURL) WithBasePath(bp string) *ReplaceGlobalURL
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