Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerModifier ¶
type ControllerModifier interface {
ModifyController(ctx *synccontext.RegisterContext, builder *builder.Builder) (*builder.Builder, error)
}
ControllerModifier is used to modify the created controller for the syncer
type ControllerStarter ¶ added in v0.19.0
type ControllerStarter interface {
Register(ctx *synccontext.RegisterContext) error
}
ControllerStarter is a generic controller that can be used if the syncer abstraction does not fit the use case
type FakeSyncer ¶
type FakeSyncer interface { Object FakeSyncUp(ctx *synccontext.SyncContext, req types.NamespacedName) (ctrl.Result, error) FakeSync(ctx *synccontext.SyncContext, vObj client.Object) (ctrl.Result, error) }
type IndicesRegisterer ¶
type IndicesRegisterer interface {
RegisterIndices(ctx *synccontext.RegisterContext) error
}
IndicesRegisterer registers additional indices for the controller
type Initializer ¶
type Initializer interface {
Init(registerContext *synccontext.RegisterContext) error
}
Initializer is used to create and update the prerequisites of the syncer before the controller is started
type ObjectExcluder ¶
type OptionsProvider ¶
type OptionsProvider interface {
WithOptions() *Options
}
type Starter ¶
type Starter interface { ReconcileStart(ctx *synccontext.SyncContext, req ctrl.Request) (bool, error) ReconcileEnd() }
type Syncer ¶
type Syncer interface { Object translator.NameTranslator // SyncDown is called when a virtual object was created and needs to be synced down to the physical cluster SyncDown(ctx *synccontext.SyncContext, vObj client.Object) (ctrl.Result, error) // Sync is called to sync a virtual object with a physical object Sync(ctx *synccontext.SyncContext, pObj client.Object, vObj client.Object) (ctrl.Result, error) }
type UpSyncer ¶
type UpSyncer interface { // SyncUp is called when a physical object exists but the virtual object does not exist SyncUp(ctx *synccontext.SyncContext, pObj client.Object) (ctrl.Result, error) }
Click to show internal directories.
Click to hide internal directories.