controller

package
v0.0.0-...-bc2d38f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 32 Imported by: 1

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

New create controller for watching kanister custom resources created

func (*Controller) LoadOrStoreTomb

func (c *Controller) LoadOrStoreTomb(ctx context.Context, asName string) (*tomb.Tomb, context.Context)

func (*Controller) StartWatch

func (c *Controller) StartWatch(ctx context.Context, namespace string) error

StartWatch watches for instances of ActionSets and Blueprints acts on them.

Jump to

Keyboard shortcuts

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