Documentation ¶
Index ¶
Constants ¶
const GetStatusOKCode int = 200
GetStatusOKCode is the HTTP code returned for type GetStatusOK
const PutStatusProbeFailedCode int = 500
PutStatusProbeFailedCode is the HTTP code returned for type PutStatusProbeFailed
const PutStatusProbeOKCode int = 200
PutStatusProbeOKCode is the HTTP code returned for type PutStatusProbeOK
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 connectivity getStatus
Get connectivity status of the Cilium cluster ¶
Returns the connectivity status to all other cilium-health instances using interval-based probing.
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.HealthStatusResponse `json:"body,omitempty"` }
GetStatusOK Success
swagger:response getStatusOK
func NewGetStatusOK ¶
func NewGetStatusOK() *GetStatusOK
NewGetStatusOK creates GetStatusOK with default headers values
func (*GetStatusOK) SetPayload ¶
func (o *GetStatusOK) SetPayload(payload *models.HealthStatusResponse)
SetPayload sets the payload to the get status o k response
func (*GetStatusOK) WithPayload ¶
func (o *GetStatusOK) WithPayload(payload *models.HealthStatusResponse) *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 PutStatusProbe ¶
type PutStatusProbe struct { Context *middleware.Context Handler PutStatusProbeHandler }
PutStatusProbe swagger:route PUT /status/probe connectivity putStatusProbe
Run synchronous connectivity probe to determine status of the Cilium cluster ¶
Runs a synchronous probe to all other cilium-health instances and returns the connectivity status.
func NewPutStatusProbe ¶
func NewPutStatusProbe(ctx *middleware.Context, handler PutStatusProbeHandler) *PutStatusProbe
NewPutStatusProbe creates a new http.Handler for the put status probe operation
func (*PutStatusProbe) ServeHTTP ¶
func (o *PutStatusProbe) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutStatusProbeFailed ¶
PutStatusProbeFailed Internal error occurred while conducting connectivity probe
swagger:response putStatusProbeFailed
func NewPutStatusProbeFailed ¶
func NewPutStatusProbeFailed() *PutStatusProbeFailed
NewPutStatusProbeFailed creates PutStatusProbeFailed with default headers values
func (*PutStatusProbeFailed) SetPayload ¶
func (o *PutStatusProbeFailed) SetPayload(payload models.Error)
SetPayload sets the payload to the put status probe failed response
func (*PutStatusProbeFailed) WithPayload ¶
func (o *PutStatusProbeFailed) WithPayload(payload models.Error) *PutStatusProbeFailed
WithPayload adds the payload to the put status probe failed response
func (*PutStatusProbeFailed) WriteResponse ¶
func (o *PutStatusProbeFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutStatusProbeHandler ¶
type PutStatusProbeHandler interface {
Handle(PutStatusProbeParams) middleware.Responder
}
PutStatusProbeHandler interface for that can handle valid put status probe params
type PutStatusProbeHandlerFunc ¶
type PutStatusProbeHandlerFunc func(PutStatusProbeParams) middleware.Responder
PutStatusProbeHandlerFunc turns a function with the right signature into a put status probe handler
func (PutStatusProbeHandlerFunc) Handle ¶
func (fn PutStatusProbeHandlerFunc) Handle(params PutStatusProbeParams) middleware.Responder
Handle executing the request and returning a response
type PutStatusProbeOK ¶
type PutStatusProbeOK struct { /* In: Body */ Payload *models.HealthStatusResponse `json:"body,omitempty"` }
PutStatusProbeOK Success
swagger:response putStatusProbeOK
func NewPutStatusProbeOK ¶
func NewPutStatusProbeOK() *PutStatusProbeOK
NewPutStatusProbeOK creates PutStatusProbeOK with default headers values
func (*PutStatusProbeOK) SetPayload ¶
func (o *PutStatusProbeOK) SetPayload(payload *models.HealthStatusResponse)
SetPayload sets the payload to the put status probe o k response
func (*PutStatusProbeOK) WithPayload ¶
func (o *PutStatusProbeOK) WithPayload(payload *models.HealthStatusResponse) *PutStatusProbeOK
WithPayload adds the payload to the put status probe o k response
func (*PutStatusProbeOK) WriteResponse ¶
func (o *PutStatusProbeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutStatusProbeParams ¶
PutStatusProbeParams contains all the bound params for the put status probe operation typically these are obtained from a http.Request
swagger:parameters PutStatusProbe
func NewPutStatusProbeParams ¶
func NewPutStatusProbeParams() PutStatusProbeParams
NewPutStatusProbeParams creates a new PutStatusProbeParams object no default values defined in spec.
func (*PutStatusProbeParams) BindRequest ¶
func (o *PutStatusProbeParams) 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 NewPutStatusProbeParams() beforehand.