lease

package
v0.0.0-...-984f6f0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequeueInterval = 2 * defaultLeaseInterval
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterCache  wirer.Cache[wirecluster.Cluster]
	TopologyCache wirer.Cache[wiretopology.Topology]
}

type Lease

type Lease interface {
	AcquireLease(ctx context.Context, topology string, cr client.Object) error
}

func New

func New(leaseNSN types.NamespacedName, cfg *Config) Lease

Jump to

Keyboard shortcuts

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