coordination

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 (r NameRegistry) CheckNameOwnership(ctx context.Context, namespace, name, ownerNamespace, ownerName string) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL