Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockApplicationService
- func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder
- func (m *MockApplicationService) EnsureUnitDead(arg0 context.Context, arg1 unit.Name, arg2 leadership.Revoker) error
- func (m *MockApplicationService) GetUnitLife(arg0 context.Context, arg1 unit.Name) (life.Value, error)
- func (m *MockApplicationService) RemoveUnit(arg0 context.Context, arg1 unit.Name, arg2 leadership.Revoker) error
- type MockApplicationServiceEnsureUnitDeadCall
- func (c *MockApplicationServiceEnsureUnitDeadCall) Do(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceEnsureUnitDeadCall
- func (c *MockApplicationServiceEnsureUnitDeadCall) DoAndReturn(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceEnsureUnitDeadCall
- func (c *MockApplicationServiceEnsureUnitDeadCall) Return(arg0 error) *MockApplicationServiceEnsureUnitDeadCall
- type MockApplicationServiceGetUnitLifeCall
- func (c *MockApplicationServiceGetUnitLifeCall) Do(f func(context.Context, unit.Name) (life.Value, error)) *MockApplicationServiceGetUnitLifeCall
- func (c *MockApplicationServiceGetUnitLifeCall) DoAndReturn(f func(context.Context, unit.Name) (life.Value, error)) *MockApplicationServiceGetUnitLifeCall
- func (c *MockApplicationServiceGetUnitLifeCall) Return(arg0 life.Value, arg1 error) *MockApplicationServiceGetUnitLifeCall
- type MockApplicationServiceMockRecorder
- func (mr *MockApplicationServiceMockRecorder) EnsureUnitDead(arg0, arg1, arg2 any) *MockApplicationServiceEnsureUnitDeadCall
- func (mr *MockApplicationServiceMockRecorder) GetUnitLife(arg0, arg1 any) *MockApplicationServiceGetUnitLifeCall
- func (mr *MockApplicationServiceMockRecorder) RemoveUnit(arg0, arg1, arg2 any) *MockApplicationServiceRemoveUnitCall
- type MockApplicationServiceRemoveUnitCall
- func (c *MockApplicationServiceRemoveUnitCall) Do(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceRemoveUnitCall
- func (c *MockApplicationServiceRemoveUnitCall) DoAndReturn(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceRemoveUnitCall
- func (c *MockApplicationServiceRemoveUnitCall) Return(arg0 error) *MockApplicationServiceRemoveUnitCall
- type MockControllerConfigGetter
- type MockControllerConfigGetterControllerConfigCall
- func (c *MockControllerConfigGetterControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigGetterControllerConfigCall
- func (c *MockControllerConfigGetterControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigGetterControllerConfigCall
- func (c *MockControllerConfigGetterControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigGetterControllerConfigCall
- type MockControllerConfigGetterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplicationService ¶
type MockApplicationService struct {
// contains filtered or unexported fields
}
MockApplicationService is a mock of ApplicationService interface.
func NewMockApplicationService ¶
func NewMockApplicationService(ctrl *gomock.Controller) *MockApplicationService
NewMockApplicationService creates a new mock instance.
func (*MockApplicationService) EXPECT ¶
func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApplicationService) EnsureUnitDead ¶
func (m *MockApplicationService) EnsureUnitDead(arg0 context.Context, arg1 unit.Name, arg2 leadership.Revoker) error
EnsureUnitDead mocks base method.
func (*MockApplicationService) GetUnitLife ¶
func (m *MockApplicationService) GetUnitLife(arg0 context.Context, arg1 unit.Name) (life.Value, error)
GetUnitLife mocks base method.
func (*MockApplicationService) RemoveUnit ¶
func (m *MockApplicationService) RemoveUnit(arg0 context.Context, arg1 unit.Name, arg2 leadership.Revoker) error
RemoveUnit mocks base method.
type MockApplicationServiceEnsureUnitDeadCall ¶
MockApplicationServiceEnsureUnitDeadCall wrap *gomock.Call
func (*MockApplicationServiceEnsureUnitDeadCall) Do ¶
func (c *MockApplicationServiceEnsureUnitDeadCall) Do(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceEnsureUnitDeadCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceEnsureUnitDeadCall) DoAndReturn ¶
func (c *MockApplicationServiceEnsureUnitDeadCall) DoAndReturn(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceEnsureUnitDeadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceEnsureUnitDeadCall) Return ¶
func (c *MockApplicationServiceEnsureUnitDeadCall) Return(arg0 error) *MockApplicationServiceEnsureUnitDeadCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceGetUnitLifeCall ¶
MockApplicationServiceGetUnitLifeCall wrap *gomock.Call
func (*MockApplicationServiceGetUnitLifeCall) Do ¶
func (c *MockApplicationServiceGetUnitLifeCall) Do(f func(context.Context, unit.Name) (life.Value, error)) *MockApplicationServiceGetUnitLifeCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceGetUnitLifeCall) DoAndReturn ¶
func (c *MockApplicationServiceGetUnitLifeCall) DoAndReturn(f func(context.Context, unit.Name) (life.Value, error)) *MockApplicationServiceGetUnitLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceGetUnitLifeCall) Return ¶
func (c *MockApplicationServiceGetUnitLifeCall) Return(arg0 life.Value, arg1 error) *MockApplicationServiceGetUnitLifeCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceMockRecorder ¶
type MockApplicationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationServiceMockRecorder is the mock recorder for MockApplicationService.
func (*MockApplicationServiceMockRecorder) EnsureUnitDead ¶
func (mr *MockApplicationServiceMockRecorder) EnsureUnitDead(arg0, arg1, arg2 any) *MockApplicationServiceEnsureUnitDeadCall
EnsureUnitDead indicates an expected call of EnsureUnitDead.
func (*MockApplicationServiceMockRecorder) GetUnitLife ¶
func (mr *MockApplicationServiceMockRecorder) GetUnitLife(arg0, arg1 any) *MockApplicationServiceGetUnitLifeCall
GetUnitLife indicates an expected call of GetUnitLife.
func (*MockApplicationServiceMockRecorder) RemoveUnit ¶
func (mr *MockApplicationServiceMockRecorder) RemoveUnit(arg0, arg1, arg2 any) *MockApplicationServiceRemoveUnitCall
RemoveUnit indicates an expected call of RemoveUnit.
type MockApplicationServiceRemoveUnitCall ¶
MockApplicationServiceRemoveUnitCall wrap *gomock.Call
func (*MockApplicationServiceRemoveUnitCall) Do ¶
func (c *MockApplicationServiceRemoveUnitCall) Do(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceRemoveUnitCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceRemoveUnitCall) DoAndReturn ¶
func (c *MockApplicationServiceRemoveUnitCall) DoAndReturn(f func(context.Context, unit.Name, leadership.Revoker) error) *MockApplicationServiceRemoveUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceRemoveUnitCall) Return ¶
func (c *MockApplicationServiceRemoveUnitCall) Return(arg0 error) *MockApplicationServiceRemoveUnitCall
Return rewrite *gomock.Call.Return
type MockControllerConfigGetter ¶
type MockControllerConfigGetter struct {
// contains filtered or unexported fields
}
MockControllerConfigGetter is a mock of ControllerConfigGetter interface.
func NewMockControllerConfigGetter ¶
func NewMockControllerConfigGetter(ctrl *gomock.Controller) *MockControllerConfigGetter
NewMockControllerConfigGetter creates a new mock instance.
func (*MockControllerConfigGetter) ControllerConfig ¶
func (m *MockControllerConfigGetter) ControllerConfig(arg0 context.Context) (controller.Config, error)
ControllerConfig mocks base method.
func (*MockControllerConfigGetter) EXPECT ¶
func (m *MockControllerConfigGetter) EXPECT() *MockControllerConfigGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockControllerConfigGetterControllerConfigCall ¶
MockControllerConfigGetterControllerConfigCall wrap *gomock.Call
func (*MockControllerConfigGetterControllerConfigCall) Do ¶
func (c *MockControllerConfigGetterControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigGetterControllerConfigCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigGetterControllerConfigCall) DoAndReturn ¶
func (c *MockControllerConfigGetterControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigGetterControllerConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigGetterControllerConfigCall) Return ¶
func (c *MockControllerConfigGetterControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigGetterControllerConfigCall
Return rewrite *gomock.Call.Return
type MockControllerConfigGetterMockRecorder ¶
type MockControllerConfigGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerConfigGetterMockRecorder is the mock recorder for MockControllerConfigGetter.
func (*MockControllerConfigGetterMockRecorder) ControllerConfig ¶
func (mr *MockControllerConfigGetterMockRecorder) ControllerConfig(arg0 any) *MockControllerConfigGetterControllerConfigCall
ControllerConfig indicates an expected call of ControllerConfig.