auditor

package
v0.14.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ResourceTypeCluster     = "Cluster"
	ResourceTypeStorageNode = "StorageNode"
	ResourceTypeVolume      = "Volume"
	ResourceTypeDisk        = "Disk"

	ActionVolumeCreate  = "Create"
	ActionVolumeDelete  = "Delete"
	ActionVolumeMount   = "Mount"
	ActionVolumeUnmount = "Unmount"
	ActionVolumeConvert = "Convert"
	ActionVolumeMigrate = "Migrate"
	ActionVolumeExpand  = "Expand"

	ActionStateSubmit   = "Submit"
	ActionStateStart    = "Start"
	ActionStateComplete = "Complete"
	ActionStateAbort    = "Abort"

	ActionNodeAdd                       = "Add"
	ActionNodeRemove                    = "Remove"
	ActionNodeStateChange               = "StateChange"
	ActionNodeStoragePoolCapacityExpand = "CapacityExpand"

	ActionClusterInstall = "Install"
	ActionClusterChange  = "Change"
	ActionClusterUpgrade = "Upgrade"

	ActionDiskAdd      = "Add"
	ActionDiskRelocate = "Relocate"
	ActionDiskAllocate = "Allocate"
	ActionDiskReserve  = "Reserve"
	ActionDiskRelease  = "Release"
	ActionDiskChange   = "Change"

	ErrMsgSuccess = "Added a record"
	ErrMsgFailure = "Failed to add a record"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditor

type Auditor interface {
	Run(informerCache runtimecache.Cache, stopCh <-chan struct{}) error
}

Auditor interface

func New

func New(clientset *kubernetes.Clientset) Auditor

New an assistant instance

type EventStore

type EventStore struct {
	// contains filtered or unexported fields
}

func NewEventStore

func NewEventStore() *EventStore

func (*EventStore) AddRecordForResource

func (es *EventStore) AddRecordForResource(resType string, resName string, record *localstorageapis.EventRecord)

func (*EventStore) Run

func (es *EventStore) Run(clientSet *localstorageclientset.Clientset, lsFactory localstorageinformers.SharedInformerFactory, stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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