Versions in this module Expand all Collapse all v0 v0.2.3 Aug 30, 2020 Changes in this version + var ErrIgnore = fmt.Errorf("ignored error") + func Sync(ctx context.Context, syncer Interface, recorder record.EventRecorder) error + type Interface interface + GetObject func() interface{} + GetOwner func() runtime.Object + Object func() interface{} + ObjectOwner func() runtime.Object + Sync func(context.Context) (SyncResult, error) + func NewExternalSyncer(name string, owner runtime.Object, obj interface{}, ...) Interface + func NewObjectSyncer(name string, owner, obj runtime.Object, c client.Client, ...) Interface + type ObjectSyncer struct + Client client.Client + Name string + Obj runtime.Object + Owner runtime.Object + Scheme *runtime.Scheme + SyncFn controllerutil.MutateFn + func (s *ObjectSyncer) GetObject() interface{} + func (s *ObjectSyncer) GetOwner() runtime.Object + func (s *ObjectSyncer) Object() interface{} + func (s *ObjectSyncer) ObjectOwner() runtime.Object + func (s *ObjectSyncer) ObjectType() string + func (s *ObjectSyncer) ObjectWithoutSecretData() interface{} + func (s *ObjectSyncer) OwnerType() string + func (s *ObjectSyncer) PreviousWithoutSecretData() interface{} + func (s *ObjectSyncer) Sync(ctx context.Context) (SyncResult, error) + type SyncResult struct + EventMessage string + EventReason string + EventType string + Operation controllerutil.OperationResult + func (r *SyncResult) SetEventData(eventType, reason, message string) + type WithoutOwner struct + func (*WithoutOwner) GetOwner() runtime.Object