nodelock

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLockRetry = 5

Variables

This section is empty.

Functions

func GetClient

func GetClient() kubernetes.Interface

func LockNode

func LockNode(nodeName string, lockName string) error

LockNode try lock device 'lockName' on node 'nodeName'

func NewClient

func NewClient() (kubernetes.Interface, error)

NewClient connects to an API server

func ReleaseNodeLock

func ReleaseNodeLock(nodeName string, lockName string) error

ReleaseNodeLock release a certain device lock on a certain node

func UseClient

func UseClient(client kubernetes.Interface) error

UseClient uses an existing client

Types

This section is empty.

Jump to

Keyboard shortcuts

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