Documentation
¶
Index ¶
- Variables
- func AcquireHostLock(lockName string, opts lockgate.AcquireOptions) (bool, error)
- func GetHomeDir() string
- func GetHostLocker() lockgate.Locker
- func GetLocalCacheDir() string
- func GetServiceDir() string
- func GetSharedContextDir() string
- func GetTmpDir() string
- func Init(tmpDirOption, homeDirOption string) error
- func ReleaseHostLock(lockName string) error
- func SetupHostLockerDefaultOptions(opts lockgate.AcquireOptions) lockgate.AcquireOptions
- func WithHostLock(lockName string, opts lockgate.AcquireOptions, f func() error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "dev"
)
Functions ¶
func AcquireHostLock ¶ added in v1.1.9
func AcquireHostLock(lockName string, opts lockgate.AcquireOptions) (bool, error)
func GetHomeDir ¶
func GetHomeDir() string
func GetHostLocker ¶ added in v1.1.9
func GetLocalCacheDir ¶
func GetLocalCacheDir() string
func GetServiceDir ¶
func GetServiceDir() string
func GetSharedContextDir ¶
func GetSharedContextDir() string
func ReleaseHostLock ¶ added in v1.1.9
func SetupHostLockerDefaultOptions ¶ added in v1.1.9
func SetupHostLockerDefaultOptions(opts lockgate.AcquireOptions) lockgate.AcquireOptions
func WithHostLock ¶ added in v1.1.9
func WithHostLock(lockName string, opts lockgate.AcquireOptions, f func() error) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.