Documentation ¶
Index ¶
Constants ¶
View Source
const ( CRDResources = "ALERT" PVCResources = "PVC" )
Constants for each unit of a deployment of Alert
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
// contains filtered or unexported fields
}
Alert is used to handle Alerts in the cluster
func (*Alert) Delete ¶
Delete will delete the Alert from the cluster (all Alerts are deleted the same way)
func (*Alert) Ensure ¶
Ensure will get the necessary Creater and make sure the instance is correctly deployed or deploy it if needed
func (*Alert) GetComponents ¶
GetComponents gets the necessary creater and returns the Alert's components
type Creater ¶
type Creater interface { Versions() []string Ensure(alert *alertapi.Alert) error GetComponents(alert *alertapi.Alert) (*api.ComponentList, error) GetPVC(alert *alertapi.Alert) ([]*components.PersistentVolumeClaim, error) }
Creater interface for Alert An Alert can have multiple Creaters where each Creater supports different versions of Alert
Click to show internal directories.
Click to hide internal directories.