lock

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationAcquireTime = "openyurt.io/yurtctllock.acquire.time"
	AnnotationIsLocked    = "openyurt.io/yurtctllock.locked"

	LockTimeoutMin = 5
)

Variables

View Source
var (
	ErrAcquireLock error = errors.New("fail to acquire lock configmap/yurtctl-lock")
	ErrReleaseLock error = errors.New("fail to release lock configmap/yurtctl-lock")
)

Functions

func AcquireLock

func AcquireLock(cli *kubernetes.Clientset) error

AcquireLock tries to acquire the lock lock configmap/yurtctl-lock

func ReleaseLock

func ReleaseLock(cli *kubernetes.Clientset) error

ReleaseLock releases the lock configmap/yurtctl-lock

Types

This section is empty.

Jump to

Keyboard shortcuts

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