Documentation ¶
Index ¶
- func CreateHostObject(ctx *synccontext.SyncContext, vObj, pObj client.Object, ...) (ctrl.Result, error)
- func CreateVirtualObject(ctx *synccontext.SyncContext, pObj, vObj client.Object, ...) (ctrl.Result, error)
- func DeleteHostObject(ctx *synccontext.SyncContext, obj client.Object, reason string) (ctrl.Result, error)
- func DeleteVirtualObject(ctx *synccontext.SyncContext, obj client.Object, reason string) (ctrl.Result, error)
- 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 SyncController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHostObject ¶
func CreateHostObject(ctx *synccontext.SyncContext, vObj, pObj client.Object, eventRecorder record.EventRecorder) (ctrl.Result, error)
func CreateVirtualObject ¶
func CreateVirtualObject(ctx *synccontext.SyncContext, pObj, vObj client.Object, eventRecorder record.EventRecorder) (ctrl.Result, error)
func DeleteHostObject ¶
func DeleteHostObject(ctx *synccontext.SyncContext, obj client.Object, reason string) (ctrl.Result, error)
func DeleteVirtualObject ¶
func DeleteVirtualObject(ctx *synccontext.SyncContext, obj client.Object, reason string) (ctrl.Result, error)
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 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
Click to show internal directories.
Click to hide internal directories.