cache

package
v0.120.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireExclusiveGCPathLock added in v0.120.0

func AcquireExclusiveGCPathLock(path string) (func(), error)

AcquireExclusiveGCPathLock waits for exclusive access to a source store's GC gate.

func AcquireExclusivePathLock added in v0.120.0

func AcquireExclusivePathLock(path string) func()

AcquireExclusivePathLock takes an exclusive repository lock and excludes all other holders.

func AcquirePathLock

func AcquirePathLock(sourcePath string) func()

AcquirePathLock takes an exclusive lock for a mutable source path, including across shared data volumes.

func AcquireRequiredExclusivePathLock added in v0.120.0

func AcquireRequiredExclusivePathLock(path string) (func(), error)

AcquireRequiredExclusivePathLock takes an exclusive path lock and fails if cross-process exclusion cannot be established.

func AcquireSharedGCPathLock added in v0.120.0

func AcquireSharedGCPathLock(path string) (func(), error)

AcquireSharedGCPathLock marks a source store as actively preparing or deploying without sharing a lock namespace with source mutation locks. Unlike ordinary source locks, it fails rather than silently dropping cross-process protection.

func AcquireSharedPathLock added in v0.120.0

func AcquireSharedPathLock(path string) func()

AcquireSharedPathLock takes a shared repository lock and excludes exclusive holders.

func NewPathLocker added in v0.120.0

func NewPathLocker(path string) sync.Locker

NewPathLocker adapts the process-and-filesystem path lock to sync.Locker. It lets a callee lock multiple scoped phases without losing cross-process exclusion.

func TryAcquireExclusiveGCPathLock added in v0.120.0

func TryAcquireExclusiveGCPathLock(path string) (func(), bool, error)

TryAcquireExclusiveGCPathLock prevents new deployments from crossing their in-flight-to-labeled transition while a source store is scanned. Failure to obtain cross-process exclusion skips the sweep.

func TryAcquireExclusivePathLock added in v0.120.0

func TryAcquireExclusivePathLock(path string) (func(), bool, error)

TryAcquireExclusivePathLock attempts to take an exclusive path lock without waiting. It returns false when another process or goroutine currently holds the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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