labellock

package
v4.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package labellock to provide utils for label lock

Index

Constants

View Source
const RTLockConfigMap = "rt-lock-cm"

RTLockConfigMap lock for rt

Variables

This section is empty.

Functions

func AcquireCmLock

func AcquireCmLock(ctx context.Context, cmName, lockKey string) error

AcquireCmLock acquire lock from configmap

func InitCmLock

func InitCmLock(ctx context.Context, cmName string)

InitCmLock if cm not exist then create or refresh

func ReleaseCmlock

func ReleaseCmlock(ctx context.Context, cmName, lockKey string) error

ReleaseCmlock release lock from configmap

Types

This section is empty.

Jump to

Keyboard shortcuts

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