currentalert

package
v0.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// AddPvcCommand command name for addPvc
	AddPvcCommand = "addPvc"
	// DownScaleCommand command name for donscale
	DownScaleCommand = "downScale"
	// UpScaleCommand command name for ipscale
	UpScaleCommand = "upScale"
	// ResizePvcCommand command name for resizePvc
	ResizePvcCommand = "resizePvc"
)

Variables

This section is empty.

Functions

func GetCommandList

func GetCommandList() []string

GetCommandList returns list of supported commands

Types

type AlertState

type AlertState struct {
	FingerPrint model.Fingerprint
	Status      model.AlertStatus
	Labels      model.LabelSet
	Annotations model.LabelSet
}

AlertState current alert state

type AlertValidator

type AlertValidator interface {
	// contains filtered or unexported methods
}

AlertValidator validates an alert.

type AlertValidators

type AlertValidators []AlertValidator

AlertValidators validate alert

func (AlertValidators) ValidateAlert

func (v AlertValidators) ValidateAlert() error

ValidateAlert validates

type CurrentAlerts

type CurrentAlerts interface {
	AddAlert(AlertState) *currentAlertStruct
	AlertGC(AlertState) error
	DeleteAlert(model.Fingerprint) error
	ListAlerts() map[model.Fingerprint]*currentAlertStruct
	HandleAlert(context.Context, model.Fingerprint, client.Client, int, logr.Logger) (*currentAlertStruct, error)
	GetRollingUpgradeAlertCount() int
	IgnoreCCStatusCheck(bool)
}

CurrentAlerts interface

func GetCurrentAlerts

func GetCurrentAlerts() CurrentAlerts

GetCurrentAlerts get current stored alerts

Jump to

Keyboard shortcuts

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