manager

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Upsert upserts the object into the store
	Upsert(o object.Object) error
	// Get returns a named object
	Get(name string) (object.Object, bool)
	// Delete deletes the object from the store, may return ErrReturnRequired
	Delete(o object.Object) error
	// PrepareReconciliation prepares the reconciliation of the manager
	PrepareReconciliation(confs []stnrv1.Config, stunenerConf stnrv1.Config) (*ReconciliationState, error)
	// FinishReconciliation finishes the reconciliation from the specified state
	FinishReconciliation(state *ReconciliationState) error
	// Keys returns the names iof all objects in the store in alphabetical order, suitable for iteration
	Keys() []string
}

Manager stores STUNner objects

func NewManager

func NewManager(name string, f object.Factory, logger logging.LoggerFactory) Manager

NewManager creates a new Manager.

type ReconcileJob added in v0.10.5

type ReconcileJob struct {
	Object               object.Object
	NewConfig, OldConfig stnrv1.Config
}

type ReconciliationState added in v0.10.5

type ReconciliationState struct {
	NewJobQueue, ChangedJobQueue, DeletedJobQueue []ReconcileJob
	ToBeStarted, ToBeRestarted                    []object.Object
}

Jump to

Keyboard shortcuts

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