templates

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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

func (a *AlertTemplateManager) CreateFromService(svc *corev1.Service) ([]*v1alpha1.Alert, error)

CreateFromService - Creates all the alerts for a given Service

Jump to

Keyboard shortcuts

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