coordination

package
v0.0.0-...-1c213c1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 8 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"
)

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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