Documentation ¶
Index ¶
- Constants
- type NameRegistry
- func (r NameRegistry) CheckNameOwnership(ctx context.Context, namespace, name, ownerNamespace, ownerName string) (bool, error)
- func (r NameRegistry) DeregisterName(ctx context.Context, namespace, name string) error
- func (r NameRegistry) RegisterName(ctx context.Context, namespace, name, ownerNamespace, ownerName string) error
- func (r NameRegistry) TryLockName(ctx context.Context, namespace, name string) error
- func (r NameRegistry) UnlockName(ctx context.Context, namespace, name string) error
Constants ¶
View Source
const ( EntityTypeAnnotation = "coordination.cloudfoundry.org/entity-type" NamespaceAnnotation = "coordination.cloudfoundry.org/namespace" NameAnnotation = "coordination.cloudfoundry.org/name" OwnerNamespaceAnnotation = "coordination.cloudfoundry.org/owner-namespace" OwnerNameAnnotation = "coordination.cloudfoundry.org/owner-name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameRegistry ¶
type NameRegistry struct {
// contains filtered or unexported fields
}
func NewNameRegistry ¶
func NewNameRegistry(client client.Client, entityType string) NameRegistry
func (NameRegistry) CheckNameOwnership ¶ added in v0.8.0
func (NameRegistry) DeregisterName ¶
func (r NameRegistry) DeregisterName(ctx context.Context, namespace, name string) error
func (NameRegistry) RegisterName ¶
func (r NameRegistry) RegisterName(ctx context.Context, namespace, name, ownerNamespace, ownerName string) error
func (NameRegistry) TryLockName ¶
func (r NameRegistry) TryLockName(ctx context.Context, namespace, name string) error
func (NameRegistry) UnlockName ¶
func (r NameRegistry) UnlockName(ctx context.Context, namespace, name string) error
Click to show internal directories.
Click to hide internal directories.