Documentation
¶
Index ¶
- func ConfigureNewLocalManager(ctx *synccontext.RegisterContext, mappings map[string]string, ...) (ctrl.Manager, bool, error)
- func GetOptionsForMultiNamespaceManager(ctx *synccontext.RegisterContext, options cache.Options) ctrl.Options
- func NewFromHost(_ *synccontext.RegisterContext, fromHost FromHostSyncer, ...) (syncertypes.Object, error)
- func NewNoopImporter() syncertypes.Importer
- func RegisterFakeSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.FakeSyncer) error
- func RegisterSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.Syncer) error
- func ToGenericSyncer[T client.Object](syncer syncertypes.Sync[T]) syncertypes.Sync[client.Object]
- type FromHostSyncer
- type SyncController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureNewLocalManager ¶
func ConfigureNewLocalManager(ctx *synccontext.RegisterContext, mappings map[string]string, syncerName string) (ctrl.Manager, bool, error)
func GetOptionsForMultiNamespaceManager ¶
func GetOptionsForMultiNamespaceManager(ctx *synccontext.RegisterContext, options cache.Options) ctrl.Options
func NewFromHost ¶
func NewFromHost(_ *synccontext.RegisterContext, fromHost FromHostSyncer, translator syncertypes.GenericTranslator, skipFuncs ...translator.ShouldSkipHostObjectFunc) (syncertypes.Object, error)
func NewNoopImporter ¶
func NewNoopImporter() syncertypes.Importer
func RegisterFakeSyncer ¶
func RegisterFakeSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.FakeSyncer) error
func RegisterSyncer ¶
func RegisterSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.Syncer) error
func ToGenericSyncer ¶
func ToGenericSyncer[T client.Object](syncer syncertypes.Sync[T]) syncertypes.Sync[client.Object]
Types ¶
type FromHostSyncer ¶
type FromHostSyncer interface { // CopyHostObjectToVirtual takes virtual and physical object and copies all needed fields from physical to virtual object. // E.g. for Secrets and ConfigMaps, it will be labels, annotations and .data CopyHostObjectToVirtual(vObj, pObj client.Object) // GetProPatches returns pro patches from config for given kind. GetProPatches(cfg config.Config) []config.TranslatePatch // GetMappings returns mappings from config for given kind. GetMappings(cfg config.Config) map[string]string }
FromHostSyncer encapsulates kind specific actions that need to happen in the from host sync.
type SyncController ¶
type SyncController struct {
// contains filtered or unexported fields
}
func NewSyncController ¶
func NewSyncController(ctx *synccontext.RegisterContext, syncer syncertypes.Syncer) (*SyncController, error)
func (*SyncController) Build ¶
func (r *SyncController) Build(ctx *synccontext.RegisterContext) (controller.Controller, error)
func (*SyncController) Register ¶
func (r *SyncController) Register(ctx *synccontext.RegisterContext) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.