Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageTag ¶
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 ¶
Ensure is an Interface function that will make sure the instance is correctly deployed or deploy it if needed
func (*Creater) GetComponents ¶
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
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
Click to show internal directories.
Click to hide internal directories.