Searched refs:fileLock (Results 1 – 2 of 2) sorted by relevance
32 func BecomeSingletonOrFail(ctx Context, config Config) (lock *fileLock) {58 var _ lockable = (*fileLock)(nil)60 type fileLock struct { struct64 func (l fileLock) description() (path string) { argument67 func (l fileLock) tryLock() (err error) { argument70 func (l fileLock) Unlock() (err error) { argument105 func newLock(basedir string) (lock *fileLock, err error) {113 lockingInfo := &fileLock{File: lockfileDescriptor}
33 func lockOrFail(t *testing.T) (lock fileLock) {35 var lockPointer *fileLock46 func removeTestLock(fileLock fileLock) { argument47 lockdir := filepath.Dir(fileLock.File.Name())