manager

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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