Documentation
¶
Index ¶
- Constants
- func GenerateNodeLockKeyByPod(pods *corev1.Pod) string
- func LockNode(nodeName string, lockname string, pods *corev1.Pod) error
- func ParseNodeLock(value string) (lockTime time.Time, ns, name string, err error)
- func ReleaseNodeLock(nodeName string, lockname string) error
- func SetNodeLock(nodeName string, lockname string, pods *corev1.Pod) error
Constants ¶
View Source
const ( NodeLockKey = "hami.io/mutex.lock" MaxLockRetry = 5 NodeLockSep = "," )
Variables ¶
This section is empty.
Functions ¶
func ParseNodeLock ¶
func ReleaseNodeLock ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.