silence

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 ManageSilence

func ManageSilence(req router.Request, resp router.Response) error

func RemoveSilence added in v0.4.0

func RemoveSilence(req router.Request, resp router.Response) error

func SetDefaults added in v0.4.8

func SetDefaults(h router.Handler) router.Handler

func SetExpired added in v0.4.7

func SetExpired(h router.Handler) router.Handler

func SkipExpired

func SkipExpired(gcexpired bool, gcdelay time.Duration) router.Middleware

func SkipInvalidSpec

func SkipInvalidSpec(h router.Handler) router.Handler

Types

type ContextKey added in v0.3.0

type ContextKey string

type CreateResponse added in v0.5.3

type CreateResponse struct {
	SilenceID string `json:"silenceID"`
}

type Response added in v0.5.3

type Response struct {
	v1.SilenceSpec `json:",inline"`
	ID             string           `json:"id"`
	Status         v1.SilenceStatus `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL