Registry / utility / minio-lsync

minio-lsync

JSON →
library1.0.1gogounverified

Package lsync provides a distributed lock manager for MinIO and other applications.

go get github.com/minio/lsync
INSTALL
IMPORT
SIG · MINIO-LSYNC
M
minio-lsync
utilitygov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lsync
github.com/minio/lsync

Creates a new lock manager and acquires a lock on a resource.

package main import ( "context" "log" "time" "github.com/minio/lsync" ) func main() { lm := lsync.NewLockManager() ctx := context.Background() lock, err := lm.Lock(ctx, "my-resource", time.Minute) if err != nil { log.Fatal(err) } defer lock.Unlock() log.Println("Acquired lock") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
minio-lsync — go get minio-lsync · libregistry