Documentation
¶
Index ¶
- Constants
- type GetStatus
- type GetStatusHandler
- type GetStatusHandlerFunc
- type GetStatusOK
- type GetStatusParams
- type GetStatusURL
- func (o *GetStatusURL) Build() (*url.URL, error)
- func (o *GetStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStatusURL) SetBasePath(bp string)
- func (o *GetStatusURL) String() string
- func (o *GetStatusURL) StringFull(scheme, host string) string
- func (o *GetStatusURL) WithBasePath(bp string) *GetStatusURL
Constants ¶
const GetStatusOKCode int = 200
GetStatusOKCode is the HTTP code returned for type GetStatusOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetStatus ¶
type GetStatus struct { Context *middleware.Context Handler GetStatusHandler }
GetStatus swagger:route GET /status general getStatus
Get current status of an Alertmanager instance and its cluster
func NewGetStatus ¶
func NewGetStatus(ctx *middleware.Context, handler GetStatusHandler) *GetStatus
NewGetStatus creates a new http.Handler for the get status operation
type GetStatusHandler ¶
type GetStatusHandler interface {
Handle(GetStatusParams) middleware.Responder
}
GetStatusHandler interface for that can handle valid get status params
type GetStatusHandlerFunc ¶
type GetStatusHandlerFunc func(GetStatusParams) middleware.Responder
GetStatusHandlerFunc turns a function with the right signature into a get status handler
func (GetStatusHandlerFunc) Handle ¶
func (fn GetStatusHandlerFunc) Handle(params GetStatusParams) middleware.Responder
Handle executing the request and returning a response
type GetStatusOK ¶
type GetStatusOK struct { /* In: Body */ Payload *models.AlertmanagerStatus `json:"body,omitempty"` }
GetStatusOK Get status response
swagger:response getStatusOK
func NewGetStatusOK ¶
func NewGetStatusOK() *GetStatusOK
NewGetStatusOK creates GetStatusOK with default headers values
func (*GetStatusOK) SetPayload ¶
func (o *GetStatusOK) SetPayload(payload *models.AlertmanagerStatus)
SetPayload sets the payload to the get status o k response
func (*GetStatusOK) WithPayload ¶
func (o *GetStatusOK) WithPayload(payload *models.AlertmanagerStatus) *GetStatusOK
WithPayload adds the payload to the get status o k response
func (*GetStatusOK) WriteResponse ¶
func (o *GetStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatusParams ¶
GetStatusParams contains all the bound params for the get status operation typically these are obtained from a http.Request
swagger:parameters getStatus
func NewGetStatusParams ¶
func NewGetStatusParams() GetStatusParams
NewGetStatusParams creates a new GetStatusParams object no default values defined in spec.
func (*GetStatusParams) BindRequest ¶
func (o *GetStatusParams) 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 NewGetStatusParams() beforehand.
type GetStatusURL ¶
type GetStatusURL struct {
// contains filtered or unexported fields
}
GetStatusURL generates an URL for the get status operation
func (*GetStatusURL) Build ¶
func (o *GetStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStatusURL) BuildFull ¶
func (o *GetStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStatusURL) SetBasePath ¶
func (o *GetStatusURL) 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 (*GetStatusURL) String ¶
func (o *GetStatusURL) String() string
String returns the string representation of the path with query string
func (*GetStatusURL) StringFull ¶
func (o *GetStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStatusURL) WithBasePath ¶
func (o *GetStatusURL) WithBasePath(bp string) *GetStatusURL
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