crd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventAdd         EventType = "add"
	EventUpdate      EventType = "update"
	EventForceUpdate EventType = "forceupdate"
	EventDelete      EventType = "delete"

	ObjectTypeTridentBackendConfig      ObjectType = "trident-backend-config"
	ObjectTypeTridentBackend            ObjectType = "trident-backend"
	ObjectTypeSecret                    ObjectType = "secret"
	ObjectTypeTridentMirrorRelationship ObjectType = "mirror-relationship"
	ObjectTypeTridentSnapshotInfo       ObjectType = "snapshot-info"

	OperationStatusSuccess string = "Success"
	OperationStatusFailed  string = "Failed"
)

Variables

This section is empty.

Functions

func Logx

func Logx(ctx context.Context) *log.Entry

Types

type AppStatus

type AppStatus string

type EventType

type EventType string

type KeyItem

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

type ObjectType

type ObjectType string

type ResourceType

type ResourceType string

type TridentCrdController

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

TridentCrdController is the controller implementation for Trident's CRD resources

func NewTridentCrdController

func NewTridentCrdController(
	orchestrator core.Orchestrator, masterURL, kubeConfigPath string,
) (*TridentCrdController, error)

NewTridentCrdController returns a new Trident CRD controller frontend

func (*TridentCrdController) Activate

func (c *TridentCrdController) Activate() error

func (*TridentCrdController) Deactivate

func (c *TridentCrdController) Deactivate() error

func (*TridentCrdController) GetName

func (c *TridentCrdController) GetName() string

func (*TridentCrdController) Run

func (c *TridentCrdController) Run(threadiness int, stopCh <-chan struct{})

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

func (*TridentCrdController) Version

func (c *TridentCrdController) Version() string

Jump to

Keyboard shortcuts

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