lock

package
v0.0.0-...-d2dd387 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AutoConvergerIdentity = "terraform-auto-converger"
)

Variables

This section is empty.

Functions

func GetLockLeaseConfig

func GetLockLeaseConfig(identity string) *lease.LeaseLockConfig

func LockConverge

func LockConverge(ctx context.Context, getter kubernetes.KubeClientProvider, identity string) (func(bool), error)

Types

type InLockRunner

type InLockRunner struct {
	// contains filtered or unexported fields
}

func NewInLockLocalRunner

func NewInLockLocalRunner(getter kubernetes.KubeClientProvider, identity string) *InLockRunner

func NewInLockRunner

func NewInLockRunner(getter kubernetes.KubeClientProvider, identity string) *InLockRunner

func (*InLockRunner) ResetLock

func (r *InLockRunner) ResetLock(ctx context.Context) error

func (*InLockRunner) Run

func (r *InLockRunner) Run(ctx context.Context, action func() error) error

func (*InLockRunner) Stop

func (r *InLockRunner) Stop()

func (*InLockRunner) WithForceLock

func (r *InLockRunner) WithForceLock(f bool) *InLockRunner

func (*InLockRunner) WithFullUnlock

func (r *InLockRunner) WithFullUnlock(f bool) *InLockRunner

Jump to

Keyboard shortcuts

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