Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACTION_SET_COUNTER_VEC_LABEL_RES = "resolution" ACTION_SET_COUNTER_VEC_LABEL_RES_SUCCESS = "success" ACTION_SET_COUNTER_VEC_LABEL_RES_FAILURE = "failure" )
View Source
const ( ACTION_TYPE_BACKUP = "backup" ACTION_TYPE_RESTORE = "restore" ACTION_TYPE_DELETE = "delete" ACTION_TYPE_BACKUP_TO_SERVER = "backupToServer" ACTION_TYPE_RESTORE_FROM_SERVER = "restoreFromServer" ACTION_TYPE_BEFORE_BACKUP = "before-backup" ACTION_TYPE_ON_SUCCESS = "on-success" ACTION_TYPE_ON_FAILURE = "on-failure" ACTION_TYPE_PRE_RESTORE = "pre-restore" ACTION_TYPE_POST_RESTORE = "post-restore" ACTION_TYPE_POST_RESTORE_FAILED = "post-restore-failed" ACTION_TYPE_BACKUP_PREHOOK = "backupPrehook" ACTION_TYPE_BACKUP_POSTHOOK = "backupPosthook" ACTION_TYPE_BACKUP_OTHER = "other" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller represents a controller object for kanister custom resources
func New ¶
func New(c *rest.Config, reg prometheus.Registerer) *Controller
New create controller for watching kanister custom resources created
func (*Controller) LoadOrStoreTomb ¶
func (*Controller) StartWatch ¶
func (c *Controller) StartWatch(ctx context.Context, namespace string) error
StartWatch watches for instances of ActionSets and Blueprints acts on them.
Click to show internal directories.
Click to hide internal directories.