Documentation ¶
Index ¶
- func AttachClient(client kclient.Client) router.Middleware
- func ManageSilence(req router.Request, resp router.Response) error
- func ManageSilence2(req router.Request, resp router.Response) error
- func RemoveSilence(req router.Request, resp router.Response) error
- func SetDefaults(h router.Handler) router.Handler
- func SetExpired(h router.Handler) router.Handler
- func SkipExpired(h router.Handler) router.Handler
- func SkipInvalidSpec(h router.Handler) router.Handler
- type ContextKey
- type SilenceCreateResponse
- type SilenceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachClient ¶ added in v0.3.0
func AttachClient(client kclient.Client) router.Middleware
func ManageSilence2 ¶ added in v0.4.0
func RemoveSilence ¶ added in v0.4.0
Types ¶
type ContextKey ¶ added in v0.3.0
type ContextKey string
type SilenceCreateResponse ¶
type SilenceCreateResponse struct {
SilenceID string `json:"silenceID"`
}
type SilenceResponse ¶
type SilenceResponse struct { v1.SilenceSpec `json:",inline"` ID string `json:"id"` Status v1.SilenceStatus `json:"status"` }
Click to show internal directories.
Click to hide internal directories.