filelock

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectLockUnlock

func ExpectLockUnlock(fileLockerMock *FileLockerMock, lockPath string, ownerId string)

Types

type FileLockerMock

type FileLockerMock struct {
	mock.Mock
}

func (*FileLockerMock) Lock

func (fl *FileLockerMock) Lock(lockPath string, ownerId string, timeoutSeconds int) (locked bool, err error)

func (*FileLockerMock) Unlock

func (fl *FileLockerMock) Unlock(lockPath string, ownerId string) (hadLock bool, err error)

type FileLockerNoop

type FileLockerNoop struct{}

func (*FileLockerNoop) Lock

func (fl *FileLockerNoop) Lock(lockPath string, ownerId string, timeoutSeconds int) (locked bool, err error)

func (*FileLockerNoop) Unlock

func (fl *FileLockerNoop) Unlock(lockPath string, ownerId string) (hadLock bool, err error)

Jump to

Keyboard shortcuts

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