Documentation
¶
Overview ¶
Package leaderelection is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderCallbacks ¶
type Manager ¶
type Manager interface {
Start(ctx context.Context, callbacks LeaderCallbacks) error
Stop(ctx context.Context) error
}
func NewLeaderElection ¶
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) Start ¶
func (m *MockManager) Start(ctx context.Context, callbacks LeaderCallbacks) error
Start mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) Start ¶
func (mr *MockManagerMockRecorder) Start(ctx, callbacks interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockManagerMockRecorder) Stop ¶
func (mr *MockManagerMockRecorder) Stop(ctx interface{}) *gomock.Call
Stop indicates an expected call of Stop.
type MockMutex ¶
type MockMutex struct {
// contains filtered or unexported fields
}
MockMutex is a mock of Mutex interface.
func NewMockMutex ¶
func NewMockMutex(ctrl *gomock.Controller) *MockMutex
NewMockMutex creates a new mock instance.
func (*MockMutex) EXPECT ¶
func (m *MockMutex) EXPECT() *MockMutexMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMutexMockRecorder ¶
type MockMutexMockRecorder struct {
// contains filtered or unexported fields
}
MockMutexMockRecorder is the mock recorder for MockMutex.
func (*MockMutexMockRecorder) TryLock ¶
func (mr *MockMutexMockRecorder) TryLock(ctx interface{}) *gomock.Call
TryLock indicates an expected call of TryLock.
func (*MockMutexMockRecorder) Unlock ¶
func (mr *MockMutexMockRecorder) Unlock(ctx interface{}) *gomock.Call
Unlock indicates an expected call of Unlock.