Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoLabelsProvided = errors.New("no filter/matchers provided")
)
Functions ¶
func MatcherToString ¶
Convert matcher key-value pairs. If pad is true, then the output will be padded to be aligned with each other (keys and equal/regex/negation).
Types ¶
type Client ¶
type Client struct { *alclient.AlertmanagerAPI // contains filtered or unexported fields }
func (*Client) HandleAuth ¶
func (c *Client) HandleAuth(op *runtime.ClientOperation)
func (*Client) SilenceURL ¶
type LabelEntry ¶
type LabelEntry struct { Name string `parser:"@Ident"` Matcher string `parser:"@Equality"` Value string `parser:"( @StringSingle | @StringDouble | @Ident )"` }
func (*LabelEntry) IsEqual ¶
func (l *LabelEntry) IsEqual() *bool
func (*LabelEntry) IsRegex ¶
func (l *LabelEntry) IsRegex() *bool
func (*LabelEntry) String ¶
func (l *LabelEntry) String() string
type ParseResults ¶
type ParseResults struct {
Entries []*LabelEntry `parser:"( @@* | @@ ( ',' @@ )+ )"`
}
Click to show internal directories.
Click to hide internal directories.