Versions in this module Expand all Collapse all v0 v0.9.0 Aug 4, 2026 Changes in this version + var DefaultTimeout = 5 * time.Minute + func With(ctx context.Context, rt *runtime.Runtime, operation string, ...) error + type LockBusyError struct + Holder *LockInfo + Path string + func (e *LockBusyError) Error() string + type LockInfo struct + Context string + Created time.Time + ID string + Mode Mode + Operation string + PID int + ProjectID string + Version string + Who string + func NewInfo(rt *runtime.Runtime, operation string) LockInfo + type Mode int + const Exclusive + const Shared + type Release func() error + type StackLock interface + Acquire func(ctx context.Context, info LockInfo, timeout time.Duration) (Release, error) + ForceRelease func(ctx context.Context, lockID string, reason string) error + Inspect func(ctx context.Context) (*LockInfo, error) + func ForRuntime(rt *runtime.Runtime) (StackLock, error) + func NewLocalFlockLock(lockPath string) StackLock