Documentation
¶
Index ¶
- Constants
- type BindingNamespaceTarget
- func (t *BindingNamespaceTarget) GetActualSecretName() string
- func (t *BindingNamespaceTarget) GetActualServiceAccountNames() []string
- func (t *BindingNamespaceTarget) GetClient() client.Client
- func (t *BindingNamespaceTarget) GetSpec() api.LinkableSecretSpec
- func (t *BindingNamespaceTarget) GetTargetNamespace() string
- func (t *BindingNamespaceTarget) GetTargetObjectKey() client.ObjectKey
- func (*BindingNamespaceTarget) GetType() string
- type BindingTargetObjectMarker
- func (m *BindingTargetObjectMarker) GetReferencingTargets(ctx context.Context, obj client.Object) ([]client.ObjectKey, error)
- func (m *BindingTargetObjectMarker) IsManagedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
- func (m *BindingTargetObjectMarker) IsReferencedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
- func (m *BindingTargetObjectMarker) ListManagedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)
- func (m *BindingTargetObjectMarker) ListReferencedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)
- func (m *BindingTargetObjectMarker) MarkManaged(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
- func (m *BindingTargetObjectMarker) MarkReferenced(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
- func (m *BindingTargetObjectMarker) UnmarkManaged(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
- func (m *BindingTargetObjectMarker) UnmarkReferenced(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
Constants ¶
const LinkAnnotation = "spi.appstudio.redhat.com/linked-access-token-binding" //#nosec G101 -- false positive, this is just a label
LinkAnnotation is used to associate the binding to the service account (even the referenced service accounts get annotated by this so that we can clean up their secret lists when the binding is deleted).
const ManagedByBindingLabel = "spi.appstudio.redhat.com/managed-by-binding"
ManagedByBindingLabel marks the other objects as managed by SPI. Meaning that their lifecycle is bound to the lifecycle of some SPI binding.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingNamespaceTarget ¶
type BindingNamespaceTarget struct { Client client.Client Binding *api.SPIAccessTokenBinding }
BindingNamespaceTarget is the SecretDeploymentTarget that deploys to the same namespace as the SPI access token binding.
func (*BindingNamespaceTarget) GetActualSecretName ¶
func (t *BindingNamespaceTarget) GetActualSecretName() string
GetActualSecretName implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetActualServiceAccountNames ¶
func (t *BindingNamespaceTarget) GetActualServiceAccountNames() []string
GetActualServiceAccountNames implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetClient ¶
func (t *BindingNamespaceTarget) GetClient() client.Client
GetClient implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetSpec ¶
func (t *BindingNamespaceTarget) GetSpec() api.LinkableSecretSpec
GetSpec implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetTargetNamespace ¶
func (t *BindingNamespaceTarget) GetTargetNamespace() string
GetTargetNamespace implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetTargetObjectKey ¶
func (t *BindingNamespaceTarget) GetTargetObjectKey() client.ObjectKey
GetTargetObjectKey implements dependents.SecretDeploymentTarget
func (*BindingNamespaceTarget) GetType ¶
func (*BindingNamespaceTarget) GetType() string
GetType implements dependents.SecretDeploymentTarget
type BindingTargetObjectMarker ¶
type BindingTargetObjectMarker struct { }
func (*BindingTargetObjectMarker) GetReferencingTargets ¶
func (*BindingTargetObjectMarker) IsManagedBy ¶
func (m *BindingTargetObjectMarker) IsManagedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
IsManaged implements dependents.ObjectMarker
func (*BindingTargetObjectMarker) IsReferencedBy ¶
func (m *BindingTargetObjectMarker) IsReferencedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
IsReferenced implements dependents.ObjectMarker
func (*BindingTargetObjectMarker) ListManagedOptions ¶
func (m *BindingTargetObjectMarker) ListManagedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)
ListManagedOptions implements dependents.ObjectMarker
func (*BindingTargetObjectMarker) ListReferencedOptions ¶
func (m *BindingTargetObjectMarker) ListReferencedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)
ListReferencedOptions implements dependents.ObjectMarker
func (*BindingTargetObjectMarker) MarkManaged ¶
func (m *BindingTargetObjectMarker) MarkManaged(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
MarkManaged implements dependents.ObjectMarker
func (*BindingTargetObjectMarker) MarkReferenced ¶
func (m *BindingTargetObjectMarker) MarkReferenced(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)
MarkReferenced implements dependents.ObjectMarker