notifier

package
v0.0.0-...-0c5dbc6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertLevel

type AlertLevel int

AlertLevel expresses notification level when uses in Alert() function notification level hierarky : (high) CRITICAL > WARNING (low)

const (
	// AlertLevelWarning express that notification level is `WARNING`.
	AlertLevelWarning AlertLevel = iota
	// AlertLevelCritical express that notification level is `CRITICAL`.
	AlertLevelCritical
)

type Notifier

type Notifier interface {
	Alert(time.Time, *source.Ingress, *source.IngressTLS, Option) error
}

Notifier interface expresses the notification services that able to send Alert. If controller triggers Alert, Notifier send details about certificate's expirarion to own service.

type Option

type Option struct {
	AlertLevel AlertLevel
}

Option struct provides configration about notification.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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