alert

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageTag

func GetImageTag(version, name string) string

GetImageTag returns the url for an image

func GetVersions

func GetVersions() []string

GetVersions returns the supported versions for this Creater

Types

type Creater

type Creater struct {
	// contains filtered or unexported fields
}

Creater stores the configuration and clients to create specific versions of Alerts

func NewCreater

func NewCreater(config *protoform.Config, kubeConfig *rest.Config, kubeClient *kubernetes.Clientset, alertClient *alertclientset.Clientset,
	routeClient *routeclient.RouteV1Client) *Creater

NewCreater returns this Alert Creater

func (*Creater) Ensure

func (ac *Creater) Ensure(alert *alertapi.Alert) error

Ensure is an Interface function that will make sure the instance is correctly deployed or deploy it if needed

func (*Creater) GetComponents

func (ac *Creater) GetComponents(alert *alertapi.Alert) (*api.ComponentList, error)

GetComponents returns the resource components for an Alert

func (*Creater) GetPVC

func (ac *Creater) GetPVC(alert *alertapi.Alert) ([]*components.PersistentVolumeClaim, error)

GetPVC returns the Persistent Volume Claims for an Alert

func (*Creater) Versions

func (ac *Creater) Versions() []string

Versions is an Interface function that returns the versions supported by this Creater

type SpecConfig

type SpecConfig struct {
	// contains filtered or unexported fields
}

SpecConfig will contain the specification to create the components of an Alert

func NewSpecConfig

func NewSpecConfig(alert *alertapi.Alert, isClusterScope bool, isOpenshift bool) *SpecConfig

NewSpecConfig will create the Alert SpecConfig

func (*SpecConfig) GetComponents

func (a *SpecConfig) GetComponents() (*api.ComponentList, error)

GetComponents will return the list of components for alert

Jump to

Keyboard shortcuts

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