Documentation ¶
Index ¶
- func APIExportObjectWrapper(reconciler APIExportReconciler) reconciling.ObjectReconciler
- func APIResourceSchemaObjectWrapper(reconciler APIResourceSchemaReconciler) reconciling.ObjectReconciler
- func ReconcileAPIExports(ctx context.Context, namedFactories []NamedAPIExportReconcilerFactory, ...) error
- func ReconcileAPIResourceSchemas(ctx context.Context, namedFactories []NamedAPIResourceSchemaReconcilerFactory, ...) error
- type APIExportReconciler
- type APIResourceSchemaReconciler
- type NamedAPIExportReconcilerFactory
- type NamedAPIResourceSchemaReconcilerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIExportObjectWrapper ¶
func APIExportObjectWrapper(reconciler APIExportReconciler) reconciling.ObjectReconciler
APIExportObjectWrapper adds a wrapper so the APIExportReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func APIResourceSchemaObjectWrapper ¶
func APIResourceSchemaObjectWrapper(reconciler APIResourceSchemaReconciler) reconciling.ObjectReconciler
APIResourceSchemaObjectWrapper adds a wrapper so the APIResourceSchemaReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ReconcileAPIExports ¶
func ReconcileAPIExports(ctx context.Context, namedFactories []NamedAPIExportReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error
ReconcileAPIExports will create and update the APIExports coming from the passed APIExportReconciler slice.
func ReconcileAPIResourceSchemas ¶
func ReconcileAPIResourceSchemas(ctx context.Context, namedFactories []NamedAPIResourceSchemaReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error
ReconcileAPIResourceSchemas will create and update the APIResourceSchemas coming from the passed APIResourceSchemaReconciler slice.
Types ¶
type APIExportReconciler ¶
type APIExportReconciler = func(existing *kcpdevv1alpha1.APIExport) (*kcpdevv1alpha1.APIExport, error)
APIExportReconciler defines an interface to create/update APIExports.
type APIResourceSchemaReconciler ¶
type APIResourceSchemaReconciler = func(existing *kcpdevv1alpha1.APIResourceSchema) (*kcpdevv1alpha1.APIResourceSchema, error)
APIResourceSchemaReconciler defines an interface to create/update APIResourceSchemas.
type NamedAPIExportReconcilerFactory ¶
type NamedAPIExportReconcilerFactory = func() (name string, reconciler APIExportReconciler)
NamedAPIExportReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedAPIResourceSchemaReconcilerFactory ¶
type NamedAPIResourceSchemaReconcilerFactory = func() (name string, reconciler APIResourceSchemaReconciler)
NamedAPIResourceSchemaReconcilerFactory returns the name of the resource and the corresponding Reconciler function.