Documentation ¶
Index ¶
- Variables
- func AcquireHostLock(ctx context.Context, lockName string, opts lockgate.AcquireOptions) (bool, lockgate.LockHandle, error)
- func DefaultLockerOnLostLease(lock lockgate.LockHandle) error
- func DefaultLockerOnWait(ctx context.Context) func(lockName string, doWait func() error) error
- func GetHomeDir() string
- func GetHostLocker() lockgate.Locker
- func GetLocalCacheDir() string
- func GetServiceDir() string
- func GetSharedContextDir() string
- func GetStagesStorageCacheDir() string
- func GetTmpDir() string
- func Init(tmpDirOption, homeDirOption string) error
- func ReleaseHostLock(lock lockgate.LockHandle) error
- func SetupLockerDefaultOptions(ctx context.Context, opts lockgate.AcquireOptions) lockgate.AcquireOptions
- func WithHostLock(ctx context.Context, lockName string, opts lockgate.AcquireOptions, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "dev"
)
Functions ¶
func AcquireHostLock ¶
func AcquireHostLock(ctx context.Context, lockName string, opts lockgate.AcquireOptions) (bool, lockgate.LockHandle, error)
func DefaultLockerOnLostLease ¶
func DefaultLockerOnLostLease(lock lockgate.LockHandle) error
func DefaultLockerOnWait ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetHostLocker ¶
func GetLocalCacheDir ¶
func GetLocalCacheDir() string
func GetServiceDir ¶
func GetServiceDir() string
func GetSharedContextDir ¶
func GetSharedContextDir() string
func GetStagesStorageCacheDir ¶
func GetStagesStorageCacheDir() string
func ReleaseHostLock ¶
func ReleaseHostLock(lock lockgate.LockHandle) error
func SetupLockerDefaultOptions ¶
func SetupLockerDefaultOptions(ctx context.Context, opts lockgate.AcquireOptions) lockgate.AcquireOptions
func WithHostLock ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.