Versions in this module Expand all Collapse all v0 v0.2023.21 May 22, 2023 Changes in this version + var SecretDataNotFoundError = errors.New("data not found") + type CheckPoint struct + type Dependents struct + Secret *corev1.Secret + ServiceAccounts []*corev1.ServiceAccount + type DependentsHandler struct + ObjectMarker ObjectMarker + SecretDataGetter SecretDataGetter[K] + Target SecretDeploymentTarget + func (d *DependentsHandler[K]) CheckPoint(ctx context.Context) (CheckPoint, error) + func (d *DependentsHandler[K]) Cleanup(ctx context.Context) error + func (d *DependentsHandler[K]) RevertTo(ctx context.Context, checkPoint CheckPoint) error + func (d *DependentsHandler[K]) Sync(ctx context.Context, dataKey K) (*Dependents, string, error) + type ErrorReason string + const ErrorReasonNone + const ErrorReasonSecretUpdate + const ErrorReasonServiceAccountUnavailable + const ErrorReasonServiceAccountUpdate + type ObjectMarker interface + GetReferencingTargets func(ctx context.Context, obj client.Object) ([]client.ObjectKey, error) + IsManagedBy func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + IsReferencedBy func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + ListManagedOptions func(ctx context.Context, taget client.ObjectKey) ([]client.ListOption, error) + ListReferencedOptions func(ctx context.Context, target client.ObjectKey) ([]client.ListOption, error) + MarkManaged func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + MarkReferenced func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + UnmarkManaged func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + UnmarkReferenced func(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + type SecretDataGetter interface + GetData func(ctx context.Context, secretDataKey K) (data map[string][]byte, errorReason string, err error) + type SecretDeploymentTarget interface + GetActualSecretName func() string + GetActualServiceAccountNames func() []string + GetClient func() client.Client + GetSpec func() api.LinkableSecretSpec + GetTargetNamespace func() string + GetTargetObjectKey func() client.ObjectKey + GetType func() string + type TestDeploymentTarget struct + GetActualSecretNameImpl func() string + GetActualServiceAccountNamesImpl func() []string + GetClientImpl func() client.Client + GetSpecImpl func() api.LinkableSecretSpec + GetTargetNamespaceImpl func() string + GetTargetObjectKeyImpl func() client.ObjectKey + GetTypeImpl func() string + func (t *TestDeploymentTarget) GetActualSecretName() string + func (t *TestDeploymentTarget) GetActualServiceAccountNames() []string + func (t *TestDeploymentTarget) GetClient() client.Client + func (t *TestDeploymentTarget) GetSpec() api.LinkableSecretSpec + func (t *TestDeploymentTarget) GetTargetNamespace() string + func (t *TestDeploymentTarget) GetTargetObjectKey() client.ObjectKey + func (t *TestDeploymentTarget) GetType() string + type TestObjectMarker struct + GetReferencingTargetsImpl func(context.Context, client.Object) ([]client.ObjectKey, error) + IsManagedByImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + IsManagedByOtherImpl func(context.Context, client.Object) (bool, error) + IsReferencedByImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + ListManagedOptionsImpl func(context.Context, client.ObjectKey) ([]client.ListOption, error) + ListReferencedOptionsImpl func(context.Context, client.ObjectKey) ([]client.ListOption, error) + MarkManagedImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + MarkReferencedImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + UnmarkManagedImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + UnmarkReferencedImpl func(context.Context, client.ObjectKey, client.Object) (bool, error) + func (m *TestObjectMarker) GetReferencingTargets(ctx context.Context, obj client.Object) ([]types.NamespacedName, error) + func (m *TestObjectMarker) IsManagedBy(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + func (m *TestObjectMarker) IsManagedByOther(ctx context.Context, obj client.Object) (bool, error) + func (m *TestObjectMarker) IsReferencedBy(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + func (m *TestObjectMarker) ListManagedOptions(ctx context.Context, target client.ObjectKey) ([]client.ListOption, error) + func (m *TestObjectMarker) ListReferencedOptions(ctx context.Context, target client.ObjectKey) ([]client.ListOption, error) + func (m *TestObjectMarker) MarkManaged(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + func (m *TestObjectMarker) MarkReferenced(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + func (m *TestObjectMarker) UnmarkManaged(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + func (m *TestObjectMarker) UnmarkReferenced(ctx context.Context, target client.ObjectKey, obj client.Object) (bool, error) + type TestSecretDataGetter struct + GetDataImpl func(context.Context, K) (map[string][]byte, string, error) + func (g *TestSecretDataGetter[K]) GetData(ctx context.Context, secretDataKey K) (data map[string][]byte, errorReason string, err error)