Documentation ¶
Index ¶
- type Generic
- func (c Generic[T, L]) Create(ctx context.Context, object T) error
- func (c Generic[T, L]) CreateOrUpdate(ctx context.Context, newObject T) (bool, error)
- func (c Generic[T, L]) CreateOrUpdateForNamespaces(ctx context.Context, object T, namespaces []corev1.Namespace) error
- func (c Generic[T, L]) Delete(ctx context.Context, object T) error
- func (c Generic[T, L]) DeleteForNamespaces(ctx context.Context, objectName string, namespaces []string) error
- func (c Generic[T, L]) Get(ctx context.Context, objectKey client.ObjectKey) (T, error)
- func (c Generic[T, L]) GetAllFromNamespaces(ctx context.Context, objectName string) ([]T, error)
- func (c Generic[T, L]) Recreate(ctx context.Context, object T) error
- func (c Generic[T, L]) Update(ctx context.Context, object T) error
- func (c Generic[T, L]) WithOwner(owner client.Object) Generic[T, L]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generic ¶
type Generic[T client.Object, L client.ObjectList] struct { Target T ListTarget L ToList func(L) []T IsEqual func(T, T) bool MustRecreate func(T, T) bool Owner client.Object KubeClient client.Client KubeReader client.Reader Log logd.Logger }
func (Generic[T, L]) CreateOrUpdate ¶
func (Generic[T, L]) CreateOrUpdateForNamespaces ¶
func (Generic[T, L]) DeleteForNamespaces ¶
func (Generic[T, L]) GetAllFromNamespaces ¶
Click to show internal directories.
Click to hide internal directories.