Documentation
¶
Index ¶
- type MockLockfile
- func (mockPool *MockLockfile) ChangeOwner(pid int) error
- func (mockPool *MockLockfile) GetOwner() (*os.Process, error)
- func (mockPool *MockLockfile) ShouldRetry(err error) bool
- func (mockPool *MockLockfile) TryLock() error
- func (mockPool *MockLockfile) TryLockExpire(minutes int64) error
- func (mockPool *MockLockfile) TryLockExpireWithRetry(minutes int64) error
- func (mockPool *MockLockfile) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLockfile ¶
MockLockfile stands for a mock lockfile.
func (*MockLockfile) ChangeOwner ¶
func (mockPool *MockLockfile) ChangeOwner(pid int) error
ChangeOwner mocks the method with the same name.
func (*MockLockfile) GetOwner ¶
func (mockPool *MockLockfile) GetOwner() (*os.Process, error)
GetOwner mocks the method with the same name.
func (*MockLockfile) ShouldRetry ¶
func (mockPool *MockLockfile) ShouldRetry(err error) bool
ShouldRetry mocks the method with the same name.
func (*MockLockfile) TryLock ¶
func (mockPool *MockLockfile) TryLock() error
TryLock mocks the method with the same name.
func (*MockLockfile) TryLockExpire ¶
func (mockPool *MockLockfile) TryLockExpire(minutes int64) error
TryLockExpire mocks the method with the same name.
func (*MockLockfile) TryLockExpireWithRetry ¶
func (mockPool *MockLockfile) TryLockExpireWithRetry(minutes int64) error
TryLockExpireWithRetry mocks the method with the same name.
func (*MockLockfile) Unlock ¶
func (mockPool *MockLockfile) Unlock() error
Unlock mocks the method with the same name.
Click to show internal directories.
Click to hide internal directories.