Documentation ¶
Index ¶
- Constants
- type GetStats
- type GetStatsDefault
- func (o *GetStatsDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetStatsDefault) SetPayload(payload *models.Error)
- func (o *GetStatsDefault) SetStatusCode(code int)
- func (o *GetStatsDefault) WithConfigurationVersion(configurationVersion int64) *GetStatsDefault
- func (o *GetStatsDefault) WithPayload(payload *models.Error) *GetStatsDefault
- func (o *GetStatsDefault) WithStatusCode(code int) *GetStatsDefault
- func (o *GetStatsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStatsHandler
- type GetStatsHandlerFunc
- type GetStatsInternalServerError
- type GetStatsOK
- type GetStatsParams
- type GetStatsURL
- func (o *GetStatsURL) Build() (*url.URL, error)
- func (o *GetStatsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStatsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStatsURL) SetBasePath(bp string)
- func (o *GetStatsURL) String() string
- func (o *GetStatsURL) StringFull(scheme, host string) string
- func (o *GetStatsURL) WithBasePath(bp string) *GetStatsURL
Constants ¶
const GetStatsInternalServerErrorCode int = 500
GetStatsInternalServerErrorCode is the HTTP code returned for type GetStatsInternalServerError
const GetStatsOKCode int = 200
GetStatsOKCode is the HTTP code returned for type GetStatsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetStats ¶
type GetStats struct { Context *middleware.Context Handler GetStatsHandler }
GetStats swagger:route GET /services/haproxy/stats/native Stats getStats
Gets stats ¶
Getting stats from the HAProxy.
func NewGetStats ¶
func NewGetStats(ctx *middleware.Context, handler GetStatsHandler) *GetStats
NewGetStats creates a new http.Handler for the get stats operation
type GetStatsDefault ¶
type GetStatsDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetStatsDefault General Error
swagger:response getStatsDefault
func NewGetStatsDefault ¶
func NewGetStatsDefault(code int) *GetStatsDefault
NewGetStatsDefault creates GetStatsDefault with default headers values
func (*GetStatsDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetStatsDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get stats default response
func (*GetStatsDefault) SetPayload ¶
func (o *GetStatsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get stats default response
func (*GetStatsDefault) SetStatusCode ¶
func (o *GetStatsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get stats default response
func (*GetStatsDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetStatsDefault) WithConfigurationVersion(configurationVersion int64) *GetStatsDefault
WithConfigurationVersion adds the configurationVersion to the get stats default response
func (*GetStatsDefault) WithPayload ¶
func (o *GetStatsDefault) WithPayload(payload *models.Error) *GetStatsDefault
WithPayload adds the payload to the get stats default response
func (*GetStatsDefault) WithStatusCode ¶
func (o *GetStatsDefault) WithStatusCode(code int) *GetStatsDefault
WithStatusCode adds the status to the get stats default response
func (*GetStatsDefault) WriteResponse ¶
func (o *GetStatsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsHandler ¶
type GetStatsHandler interface {
Handle(GetStatsParams, interface{}) middleware.Responder
}
GetStatsHandler interface for that can handle valid get stats params
type GetStatsHandlerFunc ¶
type GetStatsHandlerFunc func(GetStatsParams, interface{}) middleware.Responder
GetStatsHandlerFunc turns a function with the right signature into a get stats handler
func (GetStatsHandlerFunc) Handle ¶
func (fn GetStatsHandlerFunc) Handle(params GetStatsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetStatsInternalServerError ¶ added in v1.2.0
type GetStatsInternalServerError struct { /* In: Body */ Payload models.NativeStats `json:"body,omitempty"` }
GetStatsInternalServerError Internal Server Error
swagger:response getStatsInternalServerError
func NewGetStatsInternalServerError ¶ added in v1.2.0
func NewGetStatsInternalServerError() *GetStatsInternalServerError
NewGetStatsInternalServerError creates GetStatsInternalServerError with default headers values
func (*GetStatsInternalServerError) SetPayload ¶ added in v1.2.0
func (o *GetStatsInternalServerError) SetPayload(payload models.NativeStats)
SetPayload sets the payload to the get stats internal server error response
func (*GetStatsInternalServerError) WithPayload ¶ added in v1.2.0
func (o *GetStatsInternalServerError) WithPayload(payload models.NativeStats) *GetStatsInternalServerError
WithPayload adds the payload to the get stats internal server error response
func (*GetStatsInternalServerError) WriteResponse ¶ added in v1.2.0
func (o *GetStatsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsOK ¶
type GetStatsOK struct { /* In: Body */ Payload models.NativeStats `json:"body,omitempty"` }
GetStatsOK Success
swagger:response getStatsOK
func NewGetStatsOK ¶
func NewGetStatsOK() *GetStatsOK
NewGetStatsOK creates GetStatsOK with default headers values
func (*GetStatsOK) SetPayload ¶
func (o *GetStatsOK) SetPayload(payload models.NativeStats)
SetPayload sets the payload to the get stats o k response
func (*GetStatsOK) WithPayload ¶
func (o *GetStatsOK) WithPayload(payload models.NativeStats) *GetStatsOK
WithPayload adds the payload to the get stats o k response
func (*GetStatsOK) WriteResponse ¶
func (o *GetStatsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsParams ¶
type GetStatsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Object name to get stats for In: query */ Name *string /*Object parent name to get stats for, in case the object is a server In: query */ Parent *string /*Object type to get stats for (one of frontend, backend, server) In: query */ Type *string }
GetStatsParams contains all the bound params for the get stats operation typically these are obtained from a http.Request
swagger:parameters getStats
func NewGetStatsParams ¶
func NewGetStatsParams() GetStatsParams
NewGetStatsParams creates a new GetStatsParams object no default values defined in spec.
func (*GetStatsParams) BindRequest ¶
func (o *GetStatsParams) 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 NewGetStatsParams() beforehand.
type GetStatsURL ¶
type GetStatsURL struct { Name *string Parent *string Type *string // contains filtered or unexported fields }
GetStatsURL generates an URL for the get stats operation
func (*GetStatsURL) Build ¶
func (o *GetStatsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStatsURL) BuildFull ¶
func (o *GetStatsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStatsURL) SetBasePath ¶
func (o *GetStatsURL) 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 (*GetStatsURL) String ¶
func (o *GetStatsURL) String() string
String returns the string representation of the path with query string
func (*GetStatsURL) StringFull ¶
func (o *GetStatsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStatsURL) WithBasePath ¶
func (o *GetStatsURL) WithBasePath(bp string) *GetStatsURL
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