Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertTemplateManager ¶
type AlertTemplateManager struct {
// contains filtered or unexported fields
}
AlertTemplateManager - contains a map of all the templates in the given templates folder
func NewAlertTemplateManager ¶
func NewAlertTemplateManager(directory string) (*AlertTemplateManager, error)
NewAlertTemplateManager - Creates a new AlertTemplateManager taking a directory as a string
func (*AlertTemplateManager) CreateFromIngress ¶
func (a *AlertTemplateManager) CreateFromIngress(ingress *extensionsv1beta1.Ingress) ([]*v1alpha1.Alert, error)
CreateFromIngress - Creates all the alerts for a given Ingress
func (*AlertTemplateManager) CreateFromService ¶
CreateFromService - Creates all the alerts for a given Service
Click to show internal directories.
Click to hide internal directories.