Documentation ¶
Index ¶
- Constants
- type NameRegistry
- func (r NameRegistry) DeregisterName(ctx context.Context, namespace, name string) error
- func (r NameRegistry) RegisterName(ctx context.Context, namespace, name 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" )
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) DeregisterName ¶
func (r NameRegistry) DeregisterName(ctx context.Context, namespace, name string) error
func (NameRegistry) RegisterName ¶
func (r NameRegistry) RegisterName(ctx context.Context, namespace, name 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.