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 ¶
NewManager creates a new Manager.
type ReconcileJob ¶ added in v0.10.5
type ReconciliationState ¶ added in v0.10.5
type ReconciliationState struct {
NewJobQueue, ChangedJobQueue, DeletedJobQueue []ReconcileJob
ToBeStarted, ToBeRestarted []object.Object
}
Click to show internal directories.
Click to hide internal directories.