mocks

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLockfile

type MockLockfile struct {
	mock.Mock
}

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.

Jump to

Keyboard shortcuts

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