nodelock

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NodeLockKey  = "hami.io/mutex.lock"
	MaxLockRetry = 5
	NodeLockSep  = ","
)

Variables

This section is empty.

Functions

func GenerateNodeLockKeyByPod

func GenerateNodeLockKeyByPod(pods *corev1.Pod) string

func LockNode

func LockNode(nodeName string, lockname string, pods *corev1.Pod) error

func ParseNodeLock

func ParseNodeLock(value string) (lockTime time.Time, ns, name string, err error)

func ReleaseNodeLock

func ReleaseNodeLock(nodeName string, lockname string) error

func SetNodeLock

func SetNodeLock(nodeName string, lockname string, pods *corev1.Pod) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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