Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationCharmURLCall
- type MockApplicationMockRecorder
- type MockApplicationService
- type MockApplicationServiceGetCharmLXDProfileCall
- func (c *MockApplicationServiceGetCharmLXDProfileCall) Do(f func(context.Context, charm.CharmLocator) (charm0.LXDProfile, int, error)) *MockApplicationServiceGetCharmLXDProfileCall
- func (c *MockApplicationServiceGetCharmLXDProfileCall) DoAndReturn(f func(context.Context, charm.CharmLocator) (charm0.LXDProfile, int, error)) *MockApplicationServiceGetCharmLXDProfileCall
- func (c *MockApplicationServiceGetCharmLXDProfileCall) Return(arg0 charm0.LXDProfile, arg1 int, arg2 error) *MockApplicationServiceGetCharmLXDProfileCall
- type MockApplicationServiceMockRecorder
- type MockApplicationServiceWatchCharmsCall
- func (c *MockApplicationServiceWatchCharmsCall) Do(f func() (watcher.Watcher[[]string], error)) *MockApplicationServiceWatchCharmsCall
- func (c *MockApplicationServiceWatchCharmsCall) DoAndReturn(f func() (watcher.Watcher[[]string], error)) *MockApplicationServiceWatchCharmsCall
- func (c *MockApplicationServiceWatchCharmsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockApplicationServiceWatchCharmsCall
- type MockEntity
- type MockEntityFinder
- type MockEntityFinderFindEntityCall
- func (c *MockEntityFinderFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockEntityFinderFindEntityCall
- func (c *MockEntityFinderFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockEntityFinderFindEntityCall
- func (c *MockEntityFinderFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockEntityFinderFindEntityCall
- type MockEntityFinderMockRecorder
- type MockEntityMockRecorder
- type MockEntityTagCall
- type MockInstanceMutaterState
- func (m *MockInstanceMutaterState) Application(arg0 string) (instancemutater.Application, error)
- func (m *MockInstanceMutaterState) ControllerTimestamp() (*time.Time, error)
- func (m *MockInstanceMutaterState) EXPECT() *MockInstanceMutaterStateMockRecorder
- func (m *MockInstanceMutaterState) FindEntity(arg0 names.Tag) (state.Entity, error)
- func (m *MockInstanceMutaterState) Machine(arg0 string) (instancemutater.Machine, error)
- func (m *MockInstanceMutaterState) ModelName() (string, error)
- func (m *MockInstanceMutaterState) Unit(arg0 string) (instancemutater.Unit, error)
- func (m *MockInstanceMutaterState) WatchApplicationCharms() state.StringsWatcher
- func (m *MockInstanceMutaterState) WatchMachines() state.StringsWatcher
- func (m *MockInstanceMutaterState) WatchModelMachines() state.StringsWatcher
- func (m *MockInstanceMutaterState) WatchUnits() state.StringsWatcher
- type MockInstanceMutaterStateApplicationCall
- func (c *MockInstanceMutaterStateApplicationCall) Do(f func(string) (instancemutater.Application, error)) *MockInstanceMutaterStateApplicationCall
- func (c *MockInstanceMutaterStateApplicationCall) DoAndReturn(f func(string) (instancemutater.Application, error)) *MockInstanceMutaterStateApplicationCall
- func (c *MockInstanceMutaterStateApplicationCall) Return(arg0 instancemutater.Application, arg1 error) *MockInstanceMutaterStateApplicationCall
- type MockInstanceMutaterStateControllerTimestampCall
- func (c *MockInstanceMutaterStateControllerTimestampCall) Do(f func() (*time.Time, error)) *MockInstanceMutaterStateControllerTimestampCall
- func (c *MockInstanceMutaterStateControllerTimestampCall) DoAndReturn(f func() (*time.Time, error)) *MockInstanceMutaterStateControllerTimestampCall
- func (c *MockInstanceMutaterStateControllerTimestampCall) Return(arg0 *time.Time, arg1 error) *MockInstanceMutaterStateControllerTimestampCall
- type MockInstanceMutaterStateFindEntityCall
- func (c *MockInstanceMutaterStateFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockInstanceMutaterStateFindEntityCall
- func (c *MockInstanceMutaterStateFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockInstanceMutaterStateFindEntityCall
- func (c *MockInstanceMutaterStateFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockInstanceMutaterStateFindEntityCall
- type MockInstanceMutaterStateMachineCall
- func (c *MockInstanceMutaterStateMachineCall) Do(f func(string) (instancemutater.Machine, error)) *MockInstanceMutaterStateMachineCall
- func (c *MockInstanceMutaterStateMachineCall) DoAndReturn(f func(string) (instancemutater.Machine, error)) *MockInstanceMutaterStateMachineCall
- func (c *MockInstanceMutaterStateMachineCall) Return(arg0 instancemutater.Machine, arg1 error) *MockInstanceMutaterStateMachineCall
- type MockInstanceMutaterStateMockRecorder
- func (mr *MockInstanceMutaterStateMockRecorder) Application(arg0 any) *MockInstanceMutaterStateApplicationCall
- func (mr *MockInstanceMutaterStateMockRecorder) ControllerTimestamp() *MockInstanceMutaterStateControllerTimestampCall
- func (mr *MockInstanceMutaterStateMockRecorder) FindEntity(arg0 any) *MockInstanceMutaterStateFindEntityCall
- func (mr *MockInstanceMutaterStateMockRecorder) Machine(arg0 any) *MockInstanceMutaterStateMachineCall
- func (mr *MockInstanceMutaterStateMockRecorder) ModelName() *MockInstanceMutaterStateModelNameCall
- func (mr *MockInstanceMutaterStateMockRecorder) Unit(arg0 any) *MockInstanceMutaterStateUnitCall
- func (mr *MockInstanceMutaterStateMockRecorder) WatchApplicationCharms() *MockInstanceMutaterStateWatchApplicationCharmsCall
- func (mr *MockInstanceMutaterStateMockRecorder) WatchMachines() *MockInstanceMutaterStateWatchMachinesCall
- func (mr *MockInstanceMutaterStateMockRecorder) WatchModelMachines() *MockInstanceMutaterStateWatchModelMachinesCall
- func (mr *MockInstanceMutaterStateMockRecorder) WatchUnits() *MockInstanceMutaterStateWatchUnitsCall
- type MockInstanceMutaterStateModelNameCall
- func (c *MockInstanceMutaterStateModelNameCall) Do(f func() (string, error)) *MockInstanceMutaterStateModelNameCall
- func (c *MockInstanceMutaterStateModelNameCall) DoAndReturn(f func() (string, error)) *MockInstanceMutaterStateModelNameCall
- func (c *MockInstanceMutaterStateModelNameCall) Return(arg0 string, arg1 error) *MockInstanceMutaterStateModelNameCall
- type MockInstanceMutaterStateUnitCall
- func (c *MockInstanceMutaterStateUnitCall) Do(f func(string) (instancemutater.Unit, error)) *MockInstanceMutaterStateUnitCall
- func (c *MockInstanceMutaterStateUnitCall) DoAndReturn(f func(string) (instancemutater.Unit, error)) *MockInstanceMutaterStateUnitCall
- func (c *MockInstanceMutaterStateUnitCall) Return(arg0 instancemutater.Unit, arg1 error) *MockInstanceMutaterStateUnitCall
- type MockInstanceMutaterStateWatchApplicationCharmsCall
- func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
- func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
- func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
- type MockInstanceMutaterStateWatchMachinesCall
- func (c *MockInstanceMutaterStateWatchMachinesCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
- func (c *MockInstanceMutaterStateWatchMachinesCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
- func (c *MockInstanceMutaterStateWatchMachinesCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
- type MockInstanceMutaterStateWatchModelMachinesCall
- func (c *MockInstanceMutaterStateWatchModelMachinesCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
- func (c *MockInstanceMutaterStateWatchModelMachinesCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
- func (c *MockInstanceMutaterStateWatchModelMachinesCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
- type MockInstanceMutaterStateWatchUnitsCall
- func (c *MockInstanceMutaterStateWatchUnitsCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
- func (c *MockInstanceMutaterStateWatchUnitsCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
- func (c *MockInstanceMutaterStateWatchUnitsCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
- type MockInstanceMutatorWatcher
- type MockInstanceMutatorWatcherMockRecorder
- type MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
- func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Do(...) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
- func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) DoAndReturn(...) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
- func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
- type MockLifer
- type MockLiferLifeCall
- type MockLiferMockRecorder
- type MockMachine
- func (m *MockMachine) ContainerType() instance.ContainerType
- func (m *MockMachine) EXPECT() *MockMachineMockRecorder
- func (m *MockMachine) Id() string
- func (m *MockMachine) IsManual() (bool, error)
- func (m *MockMachine) SetModificationStatus(arg0 status.StatusInfo) error
- func (m *MockMachine) Units() ([]instancemutater.Unit, error)
- func (m *MockMachine) WatchContainers(arg0 instance.ContainerType) state.StringsWatcher
- type MockMachineContainerTypeCall
- func (c *MockMachineContainerTypeCall) Do(f func() instance.ContainerType) *MockMachineContainerTypeCall
- func (c *MockMachineContainerTypeCall) DoAndReturn(f func() instance.ContainerType) *MockMachineContainerTypeCall
- func (c *MockMachineContainerTypeCall) Return(arg0 instance.ContainerType) *MockMachineContainerTypeCall
- type MockMachineIdCall
- type MockMachineIsManualCall
- type MockMachineMockRecorder
- func (mr *MockMachineMockRecorder) ContainerType() *MockMachineContainerTypeCall
- func (mr *MockMachineMockRecorder) Id() *MockMachineIdCall
- func (mr *MockMachineMockRecorder) IsManual() *MockMachineIsManualCall
- func (mr *MockMachineMockRecorder) SetModificationStatus(arg0 any) *MockMachineSetModificationStatusCall
- func (mr *MockMachineMockRecorder) Units() *MockMachineUnitsCall
- func (mr *MockMachineMockRecorder) WatchContainers(arg0 any) *MockMachineWatchContainersCall
- type MockMachineService
- func (m *MockMachineService) AppliedLXDProfileNames(arg0 context.Context, arg1 string) ([]string, error)
- func (m *MockMachineService) EXPECT() *MockMachineServiceMockRecorder
- func (m *MockMachineService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
- func (m *MockMachineService) InstanceID(arg0 context.Context, arg1 string) (instance.Id, error)
- func (m *MockMachineService) SetAppliedLXDProfileNames(arg0 context.Context, arg1 string, arg2 []string) error
- func (m *MockMachineService) WatchLXDProfiles(arg0 context.Context, arg1 string) (watcher.Watcher[struct{}], error)
- type MockMachineServiceAppliedLXDProfileNamesCall
- func (c *MockMachineServiceAppliedLXDProfileNamesCall) Do(f func(context.Context, string) ([]string, error)) *MockMachineServiceAppliedLXDProfileNamesCall
- func (c *MockMachineServiceAppliedLXDProfileNamesCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *MockMachineServiceAppliedLXDProfileNamesCall
- func (c *MockMachineServiceAppliedLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockMachineServiceAppliedLXDProfileNamesCall
- type MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
- func (c *MockMachineServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineServiceGetMachineUUIDCall
- type MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) Do(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) DoAndReturn(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
- func (c *MockMachineServiceInstanceIDCall) Return(arg0 instance.Id, arg1 error) *MockMachineServiceInstanceIDCall
- type MockMachineServiceMockRecorder
- func (mr *MockMachineServiceMockRecorder) AppliedLXDProfileNames(arg0, arg1 any) *MockMachineServiceAppliedLXDProfileNamesCall
- func (mr *MockMachineServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineServiceGetMachineUUIDCall
- func (mr *MockMachineServiceMockRecorder) InstanceID(arg0, arg1 any) *MockMachineServiceInstanceIDCall
- func (mr *MockMachineServiceMockRecorder) SetAppliedLXDProfileNames(arg0, arg1, arg2 any) *MockMachineServiceSetAppliedLXDProfileNamesCall
- func (mr *MockMachineServiceMockRecorder) WatchLXDProfiles(arg0, arg1 any) *MockMachineServiceWatchLXDProfilesCall
- type MockMachineServiceSetAppliedLXDProfileNamesCall
- func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) Do(f func(context.Context, string, []string) error) *MockMachineServiceSetAppliedLXDProfileNamesCall
- func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) DoAndReturn(f func(context.Context, string, []string) error) *MockMachineServiceSetAppliedLXDProfileNamesCall
- func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) Return(arg0 error) *MockMachineServiceSetAppliedLXDProfileNamesCall
- type MockMachineServiceWatchLXDProfilesCall
- func (c *MockMachineServiceWatchLXDProfilesCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockMachineServiceWatchLXDProfilesCall
- func (c *MockMachineServiceWatchLXDProfilesCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockMachineServiceWatchLXDProfilesCall
- func (c *MockMachineServiceWatchLXDProfilesCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockMachineServiceWatchLXDProfilesCall
- type MockMachineSetModificationStatusCall
- func (c *MockMachineSetModificationStatusCall) Do(f func(status.StatusInfo) error) *MockMachineSetModificationStatusCall
- func (c *MockMachineSetModificationStatusCall) DoAndReturn(f func(status.StatusInfo) error) *MockMachineSetModificationStatusCall
- func (c *MockMachineSetModificationStatusCall) Return(arg0 error) *MockMachineSetModificationStatusCall
- type MockMachineUnitsCall
- func (c *MockMachineUnitsCall) Do(f func() ([]instancemutater.Unit, error)) *MockMachineUnitsCall
- func (c *MockMachineUnitsCall) DoAndReturn(f func() ([]instancemutater.Unit, error)) *MockMachineUnitsCall
- func (c *MockMachineUnitsCall) Return(arg0 []instancemutater.Unit, arg1 error) *MockMachineUnitsCall
- type MockMachineWatchContainersCall
- func (c *MockMachineWatchContainersCall) Do(f func(instance.ContainerType) state.StringsWatcher) *MockMachineWatchContainersCall
- func (c *MockMachineWatchContainersCall) DoAndReturn(f func(instance.ContainerType) state.StringsWatcher) *MockMachineWatchContainersCall
- func (c *MockMachineWatchContainersCall) Return(arg0 state.StringsWatcher) *MockMachineWatchContainersCall
- type MockNotifyWatcher
- type MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) Do(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) DoAndReturn(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
- func (c *MockNotifyWatcherChangesCall) Return(arg0 <-chan struct{}) *MockNotifyWatcherChangesCall
- type MockNotifyWatcherErrCall
- type MockNotifyWatcherKillCall
- type MockNotifyWatcherMockRecorder
- func (mr *MockNotifyWatcherMockRecorder) Changes() *MockNotifyWatcherChangesCall
- func (mr *MockNotifyWatcherMockRecorder) Err() *MockNotifyWatcherErrCall
- func (mr *MockNotifyWatcherMockRecorder) Kill() *MockNotifyWatcherKillCall
- func (mr *MockNotifyWatcherMockRecorder) Stop() *MockNotifyWatcherStopCall
- func (mr *MockNotifyWatcherMockRecorder) Wait() *MockNotifyWatcherWaitCall
- type MockNotifyWatcherStopCall
- type MockNotifyWatcherWaitCall
- type MockStringsWatcher
- type MockStringsWatcherChangesCall
- func (c *MockStringsWatcherChangesCall) Do(f func() <-chan []string) *MockStringsWatcherChangesCall
- func (c *MockStringsWatcherChangesCall) DoAndReturn(f func() <-chan []string) *MockStringsWatcherChangesCall
- func (c *MockStringsWatcherChangesCall) Return(arg0 <-chan []string) *MockStringsWatcherChangesCall
- type MockStringsWatcherErrCall
- type MockStringsWatcherKillCall
- type MockStringsWatcherMockRecorder
- func (mr *MockStringsWatcherMockRecorder) Changes() *MockStringsWatcherChangesCall
- func (mr *MockStringsWatcherMockRecorder) Err() *MockStringsWatcherErrCall
- func (mr *MockStringsWatcherMockRecorder) Kill() *MockStringsWatcherKillCall
- func (mr *MockStringsWatcherMockRecorder) Stop() *MockStringsWatcherStopCall
- func (mr *MockStringsWatcherMockRecorder) Wait() *MockStringsWatcherWaitCall
- type MockStringsWatcherStopCall
- type MockStringsWatcherWaitCall
- type MockUnit
- func (m *MockUnit) Application() (instancemutater.Application, error)
- func (m *MockUnit) ApplicationName() string
- func (m *MockUnit) AssignedMachineId() (string, error)
- func (m *MockUnit) CharmURL() *string
- func (m *MockUnit) EXPECT() *MockUnitMockRecorder
- func (m *MockUnit) Life() state.Life
- func (m *MockUnit) Name() string
- func (m *MockUnit) PrincipalName() (string, bool)
- type MockUnitApplicationCall
- func (c *MockUnitApplicationCall) Do(f func() (instancemutater.Application, error)) *MockUnitApplicationCall
- func (c *MockUnitApplicationCall) DoAndReturn(f func() (instancemutater.Application, error)) *MockUnitApplicationCall
- func (c *MockUnitApplicationCall) Return(arg0 instancemutater.Application, arg1 error) *MockUnitApplicationCall
- type MockUnitApplicationNameCall
- type MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) Do(f func() (string, error)) *MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) DoAndReturn(f func() (string, error)) *MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) Return(arg0 string, arg1 error) *MockUnitAssignedMachineIdCall
- type MockUnitCharmURLCall
- type MockUnitLifeCall
- type MockUnitMockRecorder
- func (mr *MockUnitMockRecorder) Application() *MockUnitApplicationCall
- func (mr *MockUnitMockRecorder) ApplicationName() *MockUnitApplicationNameCall
- func (mr *MockUnitMockRecorder) AssignedMachineId() *MockUnitAssignedMachineIdCall
- func (mr *MockUnitMockRecorder) CharmURL() *MockUnitCharmURLCall
- func (mr *MockUnitMockRecorder) Life() *MockUnitLifeCall
- func (mr *MockUnitMockRecorder) Name() *MockUnitNameCall
- func (mr *MockUnitMockRecorder) PrincipalName() *MockUnitPrincipalNameCall
- type MockUnitNameCall
- type MockUnitPrincipalNameCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplication ¶
type MockApplication struct {
// contains filtered or unexported fields
}
MockApplication is a mock of Application interface.
func NewMockApplication ¶
func NewMockApplication(ctrl *gomock.Controller) *MockApplication
NewMockApplication creates a new mock instance.
func (*MockApplication) CharmURL ¶
func (m *MockApplication) CharmURL() *string
CharmURL mocks base method.
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockApplicationCharmURLCall ¶
MockApplicationCharmURLCall wrap *gomock.Call
func (*MockApplicationCharmURLCall) Do ¶
func (c *MockApplicationCharmURLCall) Do(f func() *string) *MockApplicationCharmURLCall
Do rewrite *gomock.Call.Do
func (*MockApplicationCharmURLCall) DoAndReturn ¶
func (c *MockApplicationCharmURLCall) DoAndReturn(f func() *string) *MockApplicationCharmURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationCharmURLCall) Return ¶
func (c *MockApplicationCharmURLCall) Return(arg0 *string) *MockApplicationCharmURLCall
Return rewrite *gomock.Call.Return
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication.
func (*MockApplicationMockRecorder) CharmURL ¶
func (mr *MockApplicationMockRecorder) CharmURL() *MockApplicationCharmURLCall
CharmURL indicates an expected call of CharmURL.
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) GetCharmLXDProfile ¶
func (m *MockApplicationService) GetCharmLXDProfile(arg0 context.Context, arg1 charm.CharmLocator) (charm0.LXDProfile, int, error)
GetCharmLXDProfile mocks base method.
func (*MockApplicationService) WatchCharms ¶
func (m *MockApplicationService) WatchCharms() (watcher.Watcher[[]string], error)
WatchCharms mocks base method.
type MockApplicationServiceGetCharmLXDProfileCall ¶
MockApplicationServiceGetCharmLXDProfileCall wrap *gomock.Call
func (*MockApplicationServiceGetCharmLXDProfileCall) Do ¶
func (c *MockApplicationServiceGetCharmLXDProfileCall) Do(f func(context.Context, charm.CharmLocator) (charm0.LXDProfile, int, error)) *MockApplicationServiceGetCharmLXDProfileCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceGetCharmLXDProfileCall) DoAndReturn ¶
func (c *MockApplicationServiceGetCharmLXDProfileCall) DoAndReturn(f func(context.Context, charm.CharmLocator) (charm0.LXDProfile, int, error)) *MockApplicationServiceGetCharmLXDProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceGetCharmLXDProfileCall) Return ¶
func (c *MockApplicationServiceGetCharmLXDProfileCall) Return(arg0 charm0.LXDProfile, arg1 int, arg2 error) *MockApplicationServiceGetCharmLXDProfileCall
Return rewrite *gomock.Call.Return
type MockApplicationServiceMockRecorder ¶
type MockApplicationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationServiceMockRecorder is the mock recorder for MockApplicationService.
func (*MockApplicationServiceMockRecorder) GetCharmLXDProfile ¶
func (mr *MockApplicationServiceMockRecorder) GetCharmLXDProfile(arg0, arg1 any) *MockApplicationServiceGetCharmLXDProfileCall
GetCharmLXDProfile indicates an expected call of GetCharmLXDProfile.
func (*MockApplicationServiceMockRecorder) WatchCharms ¶
func (mr *MockApplicationServiceMockRecorder) WatchCharms() *MockApplicationServiceWatchCharmsCall
WatchCharms indicates an expected call of WatchCharms.
type MockApplicationServiceWatchCharmsCall ¶
MockApplicationServiceWatchCharmsCall wrap *gomock.Call
func (*MockApplicationServiceWatchCharmsCall) Do ¶
func (c *MockApplicationServiceWatchCharmsCall) Do(f func() (watcher.Watcher[[]string], error)) *MockApplicationServiceWatchCharmsCall
Do rewrite *gomock.Call.Do
func (*MockApplicationServiceWatchCharmsCall) DoAndReturn ¶
func (c *MockApplicationServiceWatchCharmsCall) DoAndReturn(f func() (watcher.Watcher[[]string], error)) *MockApplicationServiceWatchCharmsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationServiceWatchCharmsCall) Return ¶
func (c *MockApplicationServiceWatchCharmsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockApplicationServiceWatchCharmsCall
Return rewrite *gomock.Call.Return
type MockEntity ¶
type MockEntity struct {
// contains filtered or unexported fields
}
MockEntity is a mock of Entity interface.
func NewMockEntity ¶
func NewMockEntity(ctrl *gomock.Controller) *MockEntity
NewMockEntity creates a new mock instance.
func (*MockEntity) EXPECT ¶
func (m *MockEntity) EXPECT() *MockEntityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEntityFinder ¶
type MockEntityFinder struct {
// contains filtered or unexported fields
}
MockEntityFinder is a mock of EntityFinder interface.
func NewMockEntityFinder ¶
func NewMockEntityFinder(ctrl *gomock.Controller) *MockEntityFinder
NewMockEntityFinder creates a new mock instance.
func (*MockEntityFinder) EXPECT ¶
func (m *MockEntityFinder) EXPECT() *MockEntityFinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEntityFinder) FindEntity ¶
FindEntity mocks base method.
type MockEntityFinderFindEntityCall ¶
MockEntityFinderFindEntityCall wrap *gomock.Call
func (*MockEntityFinderFindEntityCall) Do ¶
func (c *MockEntityFinderFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockEntityFinderFindEntityCall
Do rewrite *gomock.Call.Do
func (*MockEntityFinderFindEntityCall) DoAndReturn ¶
func (c *MockEntityFinderFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockEntityFinderFindEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEntityFinderFindEntityCall) Return ¶
func (c *MockEntityFinderFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockEntityFinderFindEntityCall
Return rewrite *gomock.Call.Return
type MockEntityFinderMockRecorder ¶
type MockEntityFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockEntityFinderMockRecorder is the mock recorder for MockEntityFinder.
func (*MockEntityFinderMockRecorder) FindEntity ¶
func (mr *MockEntityFinderMockRecorder) FindEntity(arg0 any) *MockEntityFinderFindEntityCall
FindEntity indicates an expected call of FindEntity.
type MockEntityMockRecorder ¶
type MockEntityMockRecorder struct {
// contains filtered or unexported fields
}
MockEntityMockRecorder is the mock recorder for MockEntity.
func (*MockEntityMockRecorder) Tag ¶
func (mr *MockEntityMockRecorder) Tag() *MockEntityTagCall
Tag indicates an expected call of Tag.
type MockEntityTagCall ¶
MockEntityTagCall wrap *gomock.Call
func (*MockEntityTagCall) Do ¶
func (c *MockEntityTagCall) Do(f func() names.Tag) *MockEntityTagCall
Do rewrite *gomock.Call.Do
func (*MockEntityTagCall) DoAndReturn ¶
func (c *MockEntityTagCall) DoAndReturn(f func() names.Tag) *MockEntityTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEntityTagCall) Return ¶
func (c *MockEntityTagCall) Return(arg0 names.Tag) *MockEntityTagCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterState ¶
type MockInstanceMutaterState struct {
// contains filtered or unexported fields
}
MockInstanceMutaterState is a mock of InstanceMutaterState interface.
func NewMockInstanceMutaterState ¶
func NewMockInstanceMutaterState(ctrl *gomock.Controller) *MockInstanceMutaterState
NewMockInstanceMutaterState creates a new mock instance.
func (*MockInstanceMutaterState) Application ¶
func (m *MockInstanceMutaterState) Application(arg0 string) (instancemutater.Application, error)
Application mocks base method.
func (*MockInstanceMutaterState) ControllerTimestamp ¶
func (m *MockInstanceMutaterState) ControllerTimestamp() (*time.Time, error)
ControllerTimestamp mocks base method.
func (*MockInstanceMutaterState) EXPECT ¶
func (m *MockInstanceMutaterState) EXPECT() *MockInstanceMutaterStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceMutaterState) FindEntity ¶
FindEntity mocks base method.
func (*MockInstanceMutaterState) Machine ¶
func (m *MockInstanceMutaterState) Machine(arg0 string) (instancemutater.Machine, error)
Machine mocks base method.
func (*MockInstanceMutaterState) ModelName ¶
func (m *MockInstanceMutaterState) ModelName() (string, error)
ModelName mocks base method.
func (*MockInstanceMutaterState) Unit ¶
func (m *MockInstanceMutaterState) Unit(arg0 string) (instancemutater.Unit, error)
Unit mocks base method.
func (*MockInstanceMutaterState) WatchApplicationCharms ¶
func (m *MockInstanceMutaterState) WatchApplicationCharms() state.StringsWatcher
WatchApplicationCharms mocks base method.
func (*MockInstanceMutaterState) WatchMachines ¶
func (m *MockInstanceMutaterState) WatchMachines() state.StringsWatcher
WatchMachines mocks base method.
func (*MockInstanceMutaterState) WatchModelMachines ¶
func (m *MockInstanceMutaterState) WatchModelMachines() state.StringsWatcher
WatchModelMachines mocks base method.
func (*MockInstanceMutaterState) WatchUnits ¶
func (m *MockInstanceMutaterState) WatchUnits() state.StringsWatcher
WatchUnits mocks base method.
type MockInstanceMutaterStateApplicationCall ¶
MockInstanceMutaterStateApplicationCall wrap *gomock.Call
func (*MockInstanceMutaterStateApplicationCall) Do ¶
func (c *MockInstanceMutaterStateApplicationCall) Do(f func(string) (instancemutater.Application, error)) *MockInstanceMutaterStateApplicationCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateApplicationCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateApplicationCall) DoAndReturn(f func(string) (instancemutater.Application, error)) *MockInstanceMutaterStateApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateApplicationCall) Return ¶
func (c *MockInstanceMutaterStateApplicationCall) Return(arg0 instancemutater.Application, arg1 error) *MockInstanceMutaterStateApplicationCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateControllerTimestampCall ¶
MockInstanceMutaterStateControllerTimestampCall wrap *gomock.Call
func (*MockInstanceMutaterStateControllerTimestampCall) Do ¶
func (c *MockInstanceMutaterStateControllerTimestampCall) Do(f func() (*time.Time, error)) *MockInstanceMutaterStateControllerTimestampCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateControllerTimestampCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateControllerTimestampCall) DoAndReturn(f func() (*time.Time, error)) *MockInstanceMutaterStateControllerTimestampCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateControllerTimestampCall) Return ¶
func (c *MockInstanceMutaterStateControllerTimestampCall) Return(arg0 *time.Time, arg1 error) *MockInstanceMutaterStateControllerTimestampCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateFindEntityCall ¶
MockInstanceMutaterStateFindEntityCall wrap *gomock.Call
func (*MockInstanceMutaterStateFindEntityCall) Do ¶
func (c *MockInstanceMutaterStateFindEntityCall) Do(f func(names.Tag) (state.Entity, error)) *MockInstanceMutaterStateFindEntityCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateFindEntityCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateFindEntityCall) DoAndReturn(f func(names.Tag) (state.Entity, error)) *MockInstanceMutaterStateFindEntityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateFindEntityCall) Return ¶
func (c *MockInstanceMutaterStateFindEntityCall) Return(arg0 state.Entity, arg1 error) *MockInstanceMutaterStateFindEntityCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateMachineCall ¶
MockInstanceMutaterStateMachineCall wrap *gomock.Call
func (*MockInstanceMutaterStateMachineCall) Do ¶
func (c *MockInstanceMutaterStateMachineCall) Do(f func(string) (instancemutater.Machine, error)) *MockInstanceMutaterStateMachineCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateMachineCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateMachineCall) DoAndReturn(f func(string) (instancemutater.Machine, error)) *MockInstanceMutaterStateMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateMachineCall) Return ¶
func (c *MockInstanceMutaterStateMachineCall) Return(arg0 instancemutater.Machine, arg1 error) *MockInstanceMutaterStateMachineCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateMockRecorder ¶
type MockInstanceMutaterStateMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMutaterStateMockRecorder is the mock recorder for MockInstanceMutaterState.
func (*MockInstanceMutaterStateMockRecorder) Application ¶
func (mr *MockInstanceMutaterStateMockRecorder) Application(arg0 any) *MockInstanceMutaterStateApplicationCall
Application indicates an expected call of Application.
func (*MockInstanceMutaterStateMockRecorder) ControllerTimestamp ¶
func (mr *MockInstanceMutaterStateMockRecorder) ControllerTimestamp() *MockInstanceMutaterStateControllerTimestampCall
ControllerTimestamp indicates an expected call of ControllerTimestamp.
func (*MockInstanceMutaterStateMockRecorder) FindEntity ¶
func (mr *MockInstanceMutaterStateMockRecorder) FindEntity(arg0 any) *MockInstanceMutaterStateFindEntityCall
FindEntity indicates an expected call of FindEntity.
func (*MockInstanceMutaterStateMockRecorder) Machine ¶
func (mr *MockInstanceMutaterStateMockRecorder) Machine(arg0 any) *MockInstanceMutaterStateMachineCall
Machine indicates an expected call of Machine.
func (*MockInstanceMutaterStateMockRecorder) ModelName ¶
func (mr *MockInstanceMutaterStateMockRecorder) ModelName() *MockInstanceMutaterStateModelNameCall
ModelName indicates an expected call of ModelName.
func (*MockInstanceMutaterStateMockRecorder) Unit ¶
func (mr *MockInstanceMutaterStateMockRecorder) Unit(arg0 any) *MockInstanceMutaterStateUnitCall
Unit indicates an expected call of Unit.
func (*MockInstanceMutaterStateMockRecorder) WatchApplicationCharms ¶
func (mr *MockInstanceMutaterStateMockRecorder) WatchApplicationCharms() *MockInstanceMutaterStateWatchApplicationCharmsCall
WatchApplicationCharms indicates an expected call of WatchApplicationCharms.
func (*MockInstanceMutaterStateMockRecorder) WatchMachines ¶
func (mr *MockInstanceMutaterStateMockRecorder) WatchMachines() *MockInstanceMutaterStateWatchMachinesCall
WatchMachines indicates an expected call of WatchMachines.
func (*MockInstanceMutaterStateMockRecorder) WatchModelMachines ¶
func (mr *MockInstanceMutaterStateMockRecorder) WatchModelMachines() *MockInstanceMutaterStateWatchModelMachinesCall
WatchModelMachines indicates an expected call of WatchModelMachines.
func (*MockInstanceMutaterStateMockRecorder) WatchUnits ¶
func (mr *MockInstanceMutaterStateMockRecorder) WatchUnits() *MockInstanceMutaterStateWatchUnitsCall
WatchUnits indicates an expected call of WatchUnits.
type MockInstanceMutaterStateModelNameCall ¶
MockInstanceMutaterStateModelNameCall wrap *gomock.Call
func (*MockInstanceMutaterStateModelNameCall) Do ¶
func (c *MockInstanceMutaterStateModelNameCall) Do(f func() (string, error)) *MockInstanceMutaterStateModelNameCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateModelNameCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateModelNameCall) DoAndReturn(f func() (string, error)) *MockInstanceMutaterStateModelNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateModelNameCall) Return ¶
func (c *MockInstanceMutaterStateModelNameCall) Return(arg0 string, arg1 error) *MockInstanceMutaterStateModelNameCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateUnitCall ¶
MockInstanceMutaterStateUnitCall wrap *gomock.Call
func (*MockInstanceMutaterStateUnitCall) Do ¶
func (c *MockInstanceMutaterStateUnitCall) Do(f func(string) (instancemutater.Unit, error)) *MockInstanceMutaterStateUnitCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateUnitCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateUnitCall) DoAndReturn(f func(string) (instancemutater.Unit, error)) *MockInstanceMutaterStateUnitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateUnitCall) Return ¶
func (c *MockInstanceMutaterStateUnitCall) Return(arg0 instancemutater.Unit, arg1 error) *MockInstanceMutaterStateUnitCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateWatchApplicationCharmsCall ¶
MockInstanceMutaterStateWatchApplicationCharmsCall wrap *gomock.Call
func (*MockInstanceMutaterStateWatchApplicationCharmsCall) Do ¶
func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateWatchApplicationCharmsCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateWatchApplicationCharmsCall) Return ¶
func (c *MockInstanceMutaterStateWatchApplicationCharmsCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchApplicationCharmsCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateWatchMachinesCall ¶
MockInstanceMutaterStateWatchMachinesCall wrap *gomock.Call
func (*MockInstanceMutaterStateWatchMachinesCall) Do ¶
func (c *MockInstanceMutaterStateWatchMachinesCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateWatchMachinesCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateWatchMachinesCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateWatchMachinesCall) Return ¶
func (c *MockInstanceMutaterStateWatchMachinesCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchMachinesCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateWatchModelMachinesCall ¶
MockInstanceMutaterStateWatchModelMachinesCall wrap *gomock.Call
func (*MockInstanceMutaterStateWatchModelMachinesCall) Do ¶
func (c *MockInstanceMutaterStateWatchModelMachinesCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateWatchModelMachinesCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateWatchModelMachinesCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateWatchModelMachinesCall) Return ¶
func (c *MockInstanceMutaterStateWatchModelMachinesCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchModelMachinesCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterStateWatchUnitsCall ¶
MockInstanceMutaterStateWatchUnitsCall wrap *gomock.Call
func (*MockInstanceMutaterStateWatchUnitsCall) Do ¶
func (c *MockInstanceMutaterStateWatchUnitsCall) Do(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterStateWatchUnitsCall) DoAndReturn ¶
func (c *MockInstanceMutaterStateWatchUnitsCall) DoAndReturn(f func() state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterStateWatchUnitsCall) Return ¶
func (c *MockInstanceMutaterStateWatchUnitsCall) Return(arg0 state.StringsWatcher) *MockInstanceMutaterStateWatchUnitsCall
Return rewrite *gomock.Call.Return
type MockInstanceMutatorWatcher ¶
type MockInstanceMutatorWatcher struct {
// contains filtered or unexported fields
}
MockInstanceMutatorWatcher is a mock of InstanceMutatorWatcher interface.
func NewMockInstanceMutatorWatcher ¶
func NewMockInstanceMutatorWatcher(ctrl *gomock.Controller) *MockInstanceMutatorWatcher
NewMockInstanceMutatorWatcher creates a new mock instance.
func (*MockInstanceMutatorWatcher) EXPECT ¶
func (m *MockInstanceMutatorWatcher) EXPECT() *MockInstanceMutatorWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceMutatorWatcher) WatchLXDProfileVerificationForMachine ¶
func (m *MockInstanceMutatorWatcher) WatchLXDProfileVerificationForMachine(arg0 context.Context, arg1 instancemutater.Machine, arg2 logger.Logger) (state.NotifyWatcher, error)
WatchLXDProfileVerificationForMachine mocks base method.
type MockInstanceMutatorWatcherMockRecorder ¶
type MockInstanceMutatorWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMutatorWatcherMockRecorder is the mock recorder for MockInstanceMutatorWatcher.
func (*MockInstanceMutatorWatcherMockRecorder) WatchLXDProfileVerificationForMachine ¶
func (mr *MockInstanceMutatorWatcherMockRecorder) WatchLXDProfileVerificationForMachine(arg0, arg1, arg2 any) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
WatchLXDProfileVerificationForMachine indicates an expected call of WatchLXDProfileVerificationForMachine.
type MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall ¶
MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall wrap *gomock.Call
func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Do ¶
func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Do(f func(context.Context, instancemutater.Machine, logger.Logger) (state.NotifyWatcher, error)) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) DoAndReturn ¶
func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) DoAndReturn(f func(context.Context, instancemutater.Machine, logger.Logger) (state.NotifyWatcher, error)) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Return ¶
func (c *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Return(arg0 state.NotifyWatcher, arg1 error) *MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall
Return rewrite *gomock.Call.Return
type MockLifer ¶
type MockLifer struct {
// contains filtered or unexported fields
}
MockLifer is a mock of Lifer interface.
func NewMockLifer ¶
func NewMockLifer(ctrl *gomock.Controller) *MockLifer
NewMockLifer creates a new mock instance.
func (*MockLifer) EXPECT ¶
func (m *MockLifer) EXPECT() *MockLiferMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLiferLifeCall ¶
MockLiferLifeCall wrap *gomock.Call
func (*MockLiferLifeCall) Do ¶
func (c *MockLiferLifeCall) Do(f func() state.Life) *MockLiferLifeCall
Do rewrite *gomock.Call.Do
func (*MockLiferLifeCall) DoAndReturn ¶
func (c *MockLiferLifeCall) DoAndReturn(f func() state.Life) *MockLiferLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLiferLifeCall) Return ¶
func (c *MockLiferLifeCall) Return(arg0 state.Life) *MockLiferLifeCall
Return rewrite *gomock.Call.Return
type MockLiferMockRecorder ¶
type MockLiferMockRecorder struct {
// contains filtered or unexported fields
}
MockLiferMockRecorder is the mock recorder for MockLifer.
func (*MockLiferMockRecorder) Life ¶
func (mr *MockLiferMockRecorder) Life() *MockLiferLifeCall
Life indicates an expected call of Life.
type MockMachine ¶
type MockMachine struct {
// contains filtered or unexported fields
}
MockMachine is a mock of Machine interface.
func NewMockMachine ¶
func NewMockMachine(ctrl *gomock.Controller) *MockMachine
NewMockMachine creates a new mock instance.
func (*MockMachine) ContainerType ¶
func (m *MockMachine) ContainerType() instance.ContainerType
ContainerType mocks base method.
func (*MockMachine) EXPECT ¶
func (m *MockMachine) EXPECT() *MockMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMachine) IsManual ¶
func (m *MockMachine) IsManual() (bool, error)
IsManual mocks base method.
func (*MockMachine) SetModificationStatus ¶
func (m *MockMachine) SetModificationStatus(arg0 status.StatusInfo) error
SetModificationStatus mocks base method.
func (*MockMachine) Units ¶
func (m *MockMachine) Units() ([]instancemutater.Unit, error)
Units mocks base method.
func (*MockMachine) WatchContainers ¶
func (m *MockMachine) WatchContainers(arg0 instance.ContainerType) state.StringsWatcher
WatchContainers mocks base method.
type MockMachineContainerTypeCall ¶
MockMachineContainerTypeCall wrap *gomock.Call
func (*MockMachineContainerTypeCall) Do ¶
func (c *MockMachineContainerTypeCall) Do(f func() instance.ContainerType) *MockMachineContainerTypeCall
Do rewrite *gomock.Call.Do
func (*MockMachineContainerTypeCall) DoAndReturn ¶
func (c *MockMachineContainerTypeCall) DoAndReturn(f func() instance.ContainerType) *MockMachineContainerTypeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineContainerTypeCall) Return ¶
func (c *MockMachineContainerTypeCall) Return(arg0 instance.ContainerType) *MockMachineContainerTypeCall
Return rewrite *gomock.Call.Return
type MockMachineIdCall ¶
MockMachineIdCall wrap *gomock.Call
func (*MockMachineIdCall) Do ¶
func (c *MockMachineIdCall) Do(f func() string) *MockMachineIdCall
Do rewrite *gomock.Call.Do
func (*MockMachineIdCall) DoAndReturn ¶
func (c *MockMachineIdCall) DoAndReturn(f func() string) *MockMachineIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineIdCall) Return ¶
func (c *MockMachineIdCall) Return(arg0 string) *MockMachineIdCall
Return rewrite *gomock.Call.Return
type MockMachineIsManualCall ¶
MockMachineIsManualCall wrap *gomock.Call
func (*MockMachineIsManualCall) Do ¶
func (c *MockMachineIsManualCall) Do(f func() (bool, error)) *MockMachineIsManualCall
Do rewrite *gomock.Call.Do
func (*MockMachineIsManualCall) DoAndReturn ¶
func (c *MockMachineIsManualCall) DoAndReturn(f func() (bool, error)) *MockMachineIsManualCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineIsManualCall) Return ¶
func (c *MockMachineIsManualCall) Return(arg0 bool, arg1 error) *MockMachineIsManualCall
Return rewrite *gomock.Call.Return
type MockMachineMockRecorder ¶
type MockMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineMockRecorder is the mock recorder for MockMachine.
func (*MockMachineMockRecorder) ContainerType ¶
func (mr *MockMachineMockRecorder) ContainerType() *MockMachineContainerTypeCall
ContainerType indicates an expected call of ContainerType.
func (*MockMachineMockRecorder) Id ¶
func (mr *MockMachineMockRecorder) Id() *MockMachineIdCall
Id indicates an expected call of Id.
func (*MockMachineMockRecorder) IsManual ¶
func (mr *MockMachineMockRecorder) IsManual() *MockMachineIsManualCall
IsManual indicates an expected call of IsManual.
func (*MockMachineMockRecorder) SetModificationStatus ¶
func (mr *MockMachineMockRecorder) SetModificationStatus(arg0 any) *MockMachineSetModificationStatusCall
SetModificationStatus indicates an expected call of SetModificationStatus.
func (*MockMachineMockRecorder) Units ¶
func (mr *MockMachineMockRecorder) Units() *MockMachineUnitsCall
Units indicates an expected call of Units.
func (*MockMachineMockRecorder) WatchContainers ¶
func (mr *MockMachineMockRecorder) WatchContainers(arg0 any) *MockMachineWatchContainersCall
WatchContainers indicates an expected call of WatchContainers.
type MockMachineService ¶
type MockMachineService struct {
// contains filtered or unexported fields
}
MockMachineService is a mock of MachineService interface.
func NewMockMachineService ¶
func NewMockMachineService(ctrl *gomock.Controller) *MockMachineService
NewMockMachineService creates a new mock instance.
func (*MockMachineService) AppliedLXDProfileNames ¶
func (m *MockMachineService) AppliedLXDProfileNames(arg0 context.Context, arg1 string) ([]string, error)
AppliedLXDProfileNames mocks base method.
func (*MockMachineService) EXPECT ¶
func (m *MockMachineService) EXPECT() *MockMachineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMachineService) GetMachineUUID ¶
func (m *MockMachineService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)
GetMachineUUID mocks base method.
func (*MockMachineService) InstanceID ¶
InstanceID mocks base method.
func (*MockMachineService) SetAppliedLXDProfileNames ¶
func (m *MockMachineService) SetAppliedLXDProfileNames(arg0 context.Context, arg1 string, arg2 []string) error
SetAppliedLXDProfileNames mocks base method.
func (*MockMachineService) WatchLXDProfiles ¶
func (m *MockMachineService) WatchLXDProfiles(arg0 context.Context, arg1 string) (watcher.Watcher[struct{}], error)
WatchLXDProfiles mocks base method.
type MockMachineServiceAppliedLXDProfileNamesCall ¶
MockMachineServiceAppliedLXDProfileNamesCall wrap *gomock.Call
func (*MockMachineServiceAppliedLXDProfileNamesCall) Do ¶
func (c *MockMachineServiceAppliedLXDProfileNamesCall) Do(f func(context.Context, string) ([]string, error)) *MockMachineServiceAppliedLXDProfileNamesCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceAppliedLXDProfileNamesCall) DoAndReturn ¶
func (c *MockMachineServiceAppliedLXDProfileNamesCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *MockMachineServiceAppliedLXDProfileNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceAppliedLXDProfileNamesCall) Return ¶
func (c *MockMachineServiceAppliedLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockMachineServiceAppliedLXDProfileNamesCall
Return rewrite *gomock.Call.Return
type MockMachineServiceGetMachineUUIDCall ¶
MockMachineServiceGetMachineUUIDCall wrap *gomock.Call
func (*MockMachineServiceGetMachineUUIDCall) Do ¶
func (c *MockMachineServiceGetMachineUUIDCall) Do(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceGetMachineUUIDCall) DoAndReturn ¶
func (c *MockMachineServiceGetMachineUUIDCall) DoAndReturn(f func(context.Context, machine.Name) (string, error)) *MockMachineServiceGetMachineUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceGetMachineUUIDCall) Return ¶
func (c *MockMachineServiceGetMachineUUIDCall) Return(arg0 string, arg1 error) *MockMachineServiceGetMachineUUIDCall
Return rewrite *gomock.Call.Return
type MockMachineServiceInstanceIDCall ¶
MockMachineServiceInstanceIDCall wrap *gomock.Call
func (*MockMachineServiceInstanceIDCall) Do ¶
func (c *MockMachineServiceInstanceIDCall) Do(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceInstanceIDCall) DoAndReturn ¶
func (c *MockMachineServiceInstanceIDCall) DoAndReturn(f func(context.Context, string) (instance.Id, error)) *MockMachineServiceInstanceIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceInstanceIDCall) Return ¶
func (c *MockMachineServiceInstanceIDCall) Return(arg0 instance.Id, arg1 error) *MockMachineServiceInstanceIDCall
Return rewrite *gomock.Call.Return
type MockMachineServiceMockRecorder ¶
type MockMachineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineServiceMockRecorder is the mock recorder for MockMachineService.
func (*MockMachineServiceMockRecorder) AppliedLXDProfileNames ¶
func (mr *MockMachineServiceMockRecorder) AppliedLXDProfileNames(arg0, arg1 any) *MockMachineServiceAppliedLXDProfileNamesCall
AppliedLXDProfileNames indicates an expected call of AppliedLXDProfileNames.
func (*MockMachineServiceMockRecorder) GetMachineUUID ¶
func (mr *MockMachineServiceMockRecorder) GetMachineUUID(arg0, arg1 any) *MockMachineServiceGetMachineUUIDCall
GetMachineUUID indicates an expected call of GetMachineUUID.
func (*MockMachineServiceMockRecorder) InstanceID ¶
func (mr *MockMachineServiceMockRecorder) InstanceID(arg0, arg1 any) *MockMachineServiceInstanceIDCall
InstanceID indicates an expected call of InstanceID.
func (*MockMachineServiceMockRecorder) SetAppliedLXDProfileNames ¶
func (mr *MockMachineServiceMockRecorder) SetAppliedLXDProfileNames(arg0, arg1, arg2 any) *MockMachineServiceSetAppliedLXDProfileNamesCall
SetAppliedLXDProfileNames indicates an expected call of SetAppliedLXDProfileNames.
func (*MockMachineServiceMockRecorder) WatchLXDProfiles ¶
func (mr *MockMachineServiceMockRecorder) WatchLXDProfiles(arg0, arg1 any) *MockMachineServiceWatchLXDProfilesCall
WatchLXDProfiles indicates an expected call of WatchLXDProfiles.
type MockMachineServiceSetAppliedLXDProfileNamesCall ¶
MockMachineServiceSetAppliedLXDProfileNamesCall wrap *gomock.Call
func (*MockMachineServiceSetAppliedLXDProfileNamesCall) Do ¶
func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) Do(f func(context.Context, string, []string) error) *MockMachineServiceSetAppliedLXDProfileNamesCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceSetAppliedLXDProfileNamesCall) DoAndReturn ¶
func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) DoAndReturn(f func(context.Context, string, []string) error) *MockMachineServiceSetAppliedLXDProfileNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceSetAppliedLXDProfileNamesCall) Return ¶
func (c *MockMachineServiceSetAppliedLXDProfileNamesCall) Return(arg0 error) *MockMachineServiceSetAppliedLXDProfileNamesCall
Return rewrite *gomock.Call.Return
type MockMachineServiceWatchLXDProfilesCall ¶
MockMachineServiceWatchLXDProfilesCall wrap *gomock.Call
func (*MockMachineServiceWatchLXDProfilesCall) Do ¶
func (c *MockMachineServiceWatchLXDProfilesCall) Do(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockMachineServiceWatchLXDProfilesCall
Do rewrite *gomock.Call.Do
func (*MockMachineServiceWatchLXDProfilesCall) DoAndReturn ¶
func (c *MockMachineServiceWatchLXDProfilesCall) DoAndReturn(f func(context.Context, string) (watcher.Watcher[struct{}], error)) *MockMachineServiceWatchLXDProfilesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineServiceWatchLXDProfilesCall) Return ¶
func (c *MockMachineServiceWatchLXDProfilesCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockMachineServiceWatchLXDProfilesCall
Return rewrite *gomock.Call.Return
type MockMachineSetModificationStatusCall ¶
MockMachineSetModificationStatusCall wrap *gomock.Call
func (*MockMachineSetModificationStatusCall) Do ¶
func (c *MockMachineSetModificationStatusCall) Do(f func(status.StatusInfo) error) *MockMachineSetModificationStatusCall
Do rewrite *gomock.Call.Do
func (*MockMachineSetModificationStatusCall) DoAndReturn ¶
func (c *MockMachineSetModificationStatusCall) DoAndReturn(f func(status.StatusInfo) error) *MockMachineSetModificationStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineSetModificationStatusCall) Return ¶
func (c *MockMachineSetModificationStatusCall) Return(arg0 error) *MockMachineSetModificationStatusCall
Return rewrite *gomock.Call.Return
type MockMachineUnitsCall ¶
MockMachineUnitsCall wrap *gomock.Call
func (*MockMachineUnitsCall) Do ¶
func (c *MockMachineUnitsCall) Do(f func() ([]instancemutater.Unit, error)) *MockMachineUnitsCall
Do rewrite *gomock.Call.Do
func (*MockMachineUnitsCall) DoAndReturn ¶
func (c *MockMachineUnitsCall) DoAndReturn(f func() ([]instancemutater.Unit, error)) *MockMachineUnitsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineUnitsCall) Return ¶
func (c *MockMachineUnitsCall) Return(arg0 []instancemutater.Unit, arg1 error) *MockMachineUnitsCall
Return rewrite *gomock.Call.Return
type MockMachineWatchContainersCall ¶
MockMachineWatchContainersCall wrap *gomock.Call
func (*MockMachineWatchContainersCall) Do ¶
func (c *MockMachineWatchContainersCall) Do(f func(instance.ContainerType) state.StringsWatcher) *MockMachineWatchContainersCall
Do rewrite *gomock.Call.Do
func (*MockMachineWatchContainersCall) DoAndReturn ¶
func (c *MockMachineWatchContainersCall) DoAndReturn(f func(instance.ContainerType) state.StringsWatcher) *MockMachineWatchContainersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineWatchContainersCall) Return ¶
func (c *MockMachineWatchContainersCall) Return(arg0 state.StringsWatcher) *MockMachineWatchContainersCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcher ¶
type MockNotifyWatcher struct {
// contains filtered or unexported fields
}
MockNotifyWatcher is a mock of NotifyWatcher interface.
func NewMockNotifyWatcher ¶
func NewMockNotifyWatcher(ctrl *gomock.Controller) *MockNotifyWatcher
NewMockNotifyWatcher creates a new mock instance.
func (*MockNotifyWatcher) Changes ¶
func (m *MockNotifyWatcher) Changes() <-chan struct{}
Changes mocks base method.
func (*MockNotifyWatcher) EXPECT ¶
func (m *MockNotifyWatcher) EXPECT() *MockNotifyWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNotifyWatcherChangesCall ¶
MockNotifyWatcherChangesCall wrap *gomock.Call
func (*MockNotifyWatcherChangesCall) Do ¶
func (c *MockNotifyWatcherChangesCall) Do(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherChangesCall) DoAndReturn ¶
func (c *MockNotifyWatcherChangesCall) DoAndReturn(f func() <-chan struct{}) *MockNotifyWatcherChangesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherChangesCall) Return ¶
func (c *MockNotifyWatcherChangesCall) Return(arg0 <-chan struct{}) *MockNotifyWatcherChangesCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherErrCall ¶
MockNotifyWatcherErrCall wrap *gomock.Call
func (*MockNotifyWatcherErrCall) Do ¶
func (c *MockNotifyWatcherErrCall) Do(f func() error) *MockNotifyWatcherErrCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherErrCall) DoAndReturn ¶
func (c *MockNotifyWatcherErrCall) DoAndReturn(f func() error) *MockNotifyWatcherErrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherErrCall) Return ¶
func (c *MockNotifyWatcherErrCall) Return(arg0 error) *MockNotifyWatcherErrCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherKillCall ¶
MockNotifyWatcherKillCall wrap *gomock.Call
func (*MockNotifyWatcherKillCall) Do ¶
func (c *MockNotifyWatcherKillCall) Do(f func()) *MockNotifyWatcherKillCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherKillCall) DoAndReturn ¶
func (c *MockNotifyWatcherKillCall) DoAndReturn(f func()) *MockNotifyWatcherKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherKillCall) Return ¶
func (c *MockNotifyWatcherKillCall) Return() *MockNotifyWatcherKillCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherMockRecorder ¶
type MockNotifyWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher.
func (*MockNotifyWatcherMockRecorder) Changes ¶
func (mr *MockNotifyWatcherMockRecorder) Changes() *MockNotifyWatcherChangesCall
Changes indicates an expected call of Changes.
func (*MockNotifyWatcherMockRecorder) Err ¶
func (mr *MockNotifyWatcherMockRecorder) Err() *MockNotifyWatcherErrCall
Err indicates an expected call of Err.
func (*MockNotifyWatcherMockRecorder) Kill ¶
func (mr *MockNotifyWatcherMockRecorder) Kill() *MockNotifyWatcherKillCall
Kill indicates an expected call of Kill.
func (*MockNotifyWatcherMockRecorder) Stop ¶
func (mr *MockNotifyWatcherMockRecorder) Stop() *MockNotifyWatcherStopCall
Stop indicates an expected call of Stop.
func (*MockNotifyWatcherMockRecorder) Wait ¶
func (mr *MockNotifyWatcherMockRecorder) Wait() *MockNotifyWatcherWaitCall
Wait indicates an expected call of Wait.
type MockNotifyWatcherStopCall ¶
MockNotifyWatcherStopCall wrap *gomock.Call
func (*MockNotifyWatcherStopCall) Do ¶
func (c *MockNotifyWatcherStopCall) Do(f func() error) *MockNotifyWatcherStopCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherStopCall) DoAndReturn ¶
func (c *MockNotifyWatcherStopCall) DoAndReturn(f func() error) *MockNotifyWatcherStopCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherStopCall) Return ¶
func (c *MockNotifyWatcherStopCall) Return(arg0 error) *MockNotifyWatcherStopCall
Return rewrite *gomock.Call.Return
type MockNotifyWatcherWaitCall ¶
MockNotifyWatcherWaitCall wrap *gomock.Call
func (*MockNotifyWatcherWaitCall) Do ¶
func (c *MockNotifyWatcherWaitCall) Do(f func() error) *MockNotifyWatcherWaitCall
Do rewrite *gomock.Call.Do
func (*MockNotifyWatcherWaitCall) DoAndReturn ¶
func (c *MockNotifyWatcherWaitCall) DoAndReturn(f func() error) *MockNotifyWatcherWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNotifyWatcherWaitCall) Return ¶
func (c *MockNotifyWatcherWaitCall) Return(arg0 error) *MockNotifyWatcherWaitCall
Return rewrite *gomock.Call.Return
type MockStringsWatcher ¶
type MockStringsWatcher struct {
// contains filtered or unexported fields
}
MockStringsWatcher is a mock of StringsWatcher interface.
func NewMockStringsWatcher ¶
func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher
NewMockStringsWatcher creates a new mock instance.
func (*MockStringsWatcher) Changes ¶
func (m *MockStringsWatcher) Changes() <-chan []string
Changes mocks base method.
func (*MockStringsWatcher) EXPECT ¶
func (m *MockStringsWatcher) EXPECT() *MockStringsWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStringsWatcherChangesCall ¶
MockStringsWatcherChangesCall wrap *gomock.Call
func (*MockStringsWatcherChangesCall) Do ¶
func (c *MockStringsWatcherChangesCall) Do(f func() <-chan []string) *MockStringsWatcherChangesCall
Do rewrite *gomock.Call.Do
func (*MockStringsWatcherChangesCall) DoAndReturn ¶
func (c *MockStringsWatcherChangesCall) DoAndReturn(f func() <-chan []string) *MockStringsWatcherChangesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStringsWatcherChangesCall) Return ¶
func (c *MockStringsWatcherChangesCall) Return(arg0 <-chan []string) *MockStringsWatcherChangesCall
Return rewrite *gomock.Call.Return
type MockStringsWatcherErrCall ¶
MockStringsWatcherErrCall wrap *gomock.Call
func (*MockStringsWatcherErrCall) Do ¶
func (c *MockStringsWatcherErrCall) Do(f func() error) *MockStringsWatcherErrCall
Do rewrite *gomock.Call.Do
func (*MockStringsWatcherErrCall) DoAndReturn ¶
func (c *MockStringsWatcherErrCall) DoAndReturn(f func() error) *MockStringsWatcherErrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStringsWatcherErrCall) Return ¶
func (c *MockStringsWatcherErrCall) Return(arg0 error) *MockStringsWatcherErrCall
Return rewrite *gomock.Call.Return
type MockStringsWatcherKillCall ¶
MockStringsWatcherKillCall wrap *gomock.Call
func (*MockStringsWatcherKillCall) Do ¶
func (c *MockStringsWatcherKillCall) Do(f func()) *MockStringsWatcherKillCall
Do rewrite *gomock.Call.Do
func (*MockStringsWatcherKillCall) DoAndReturn ¶
func (c *MockStringsWatcherKillCall) DoAndReturn(f func()) *MockStringsWatcherKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStringsWatcherKillCall) Return ¶
func (c *MockStringsWatcherKillCall) Return() *MockStringsWatcherKillCall
Return rewrite *gomock.Call.Return
type MockStringsWatcherMockRecorder ¶
type MockStringsWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher.
func (*MockStringsWatcherMockRecorder) Changes ¶
func (mr *MockStringsWatcherMockRecorder) Changes() *MockStringsWatcherChangesCall
Changes indicates an expected call of Changes.
func (*MockStringsWatcherMockRecorder) Err ¶
func (mr *MockStringsWatcherMockRecorder) Err() *MockStringsWatcherErrCall
Err indicates an expected call of Err.
func (*MockStringsWatcherMockRecorder) Kill ¶
func (mr *MockStringsWatcherMockRecorder) Kill() *MockStringsWatcherKillCall
Kill indicates an expected call of Kill.
func (*MockStringsWatcherMockRecorder) Stop ¶
func (mr *MockStringsWatcherMockRecorder) Stop() *MockStringsWatcherStopCall
Stop indicates an expected call of Stop.
func (*MockStringsWatcherMockRecorder) Wait ¶
func (mr *MockStringsWatcherMockRecorder) Wait() *MockStringsWatcherWaitCall
Wait indicates an expected call of Wait.
type MockStringsWatcherStopCall ¶
MockStringsWatcherStopCall wrap *gomock.Call
func (*MockStringsWatcherStopCall) Do ¶
func (c *MockStringsWatcherStopCall) Do(f func() error) *MockStringsWatcherStopCall
Do rewrite *gomock.Call.Do
func (*MockStringsWatcherStopCall) DoAndReturn ¶
func (c *MockStringsWatcherStopCall) DoAndReturn(f func() error) *MockStringsWatcherStopCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStringsWatcherStopCall) Return ¶
func (c *MockStringsWatcherStopCall) Return(arg0 error) *MockStringsWatcherStopCall
Return rewrite *gomock.Call.Return
type MockStringsWatcherWaitCall ¶
MockStringsWatcherWaitCall wrap *gomock.Call
func (*MockStringsWatcherWaitCall) Do ¶
func (c *MockStringsWatcherWaitCall) Do(f func() error) *MockStringsWatcherWaitCall
Do rewrite *gomock.Call.Do
func (*MockStringsWatcherWaitCall) DoAndReturn ¶
func (c *MockStringsWatcherWaitCall) DoAndReturn(f func() error) *MockStringsWatcherWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStringsWatcherWaitCall) Return ¶
func (c *MockStringsWatcherWaitCall) Return(arg0 error) *MockStringsWatcherWaitCall
Return rewrite *gomock.Call.Return
type MockUnit ¶
type MockUnit struct {
// contains filtered or unexported fields
}
MockUnit is a mock of Unit interface.
func NewMockUnit ¶
func NewMockUnit(ctrl *gomock.Controller) *MockUnit
NewMockUnit creates a new mock instance.
func (*MockUnit) Application ¶
func (m *MockUnit) Application() (instancemutater.Application, error)
Application mocks base method.
func (*MockUnit) ApplicationName ¶
ApplicationName mocks base method.
func (*MockUnit) AssignedMachineId ¶
AssignedMachineId mocks base method.
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnit) PrincipalName ¶
PrincipalName mocks base method.
type MockUnitApplicationCall ¶
MockUnitApplicationCall wrap *gomock.Call
func (*MockUnitApplicationCall) Do ¶
func (c *MockUnitApplicationCall) Do(f func() (instancemutater.Application, error)) *MockUnitApplicationCall
Do rewrite *gomock.Call.Do
func (*MockUnitApplicationCall) DoAndReturn ¶
func (c *MockUnitApplicationCall) DoAndReturn(f func() (instancemutater.Application, error)) *MockUnitApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitApplicationCall) Return ¶
func (c *MockUnitApplicationCall) Return(arg0 instancemutater.Application, arg1 error) *MockUnitApplicationCall
Return rewrite *gomock.Call.Return
type MockUnitApplicationNameCall ¶
MockUnitApplicationNameCall wrap *gomock.Call
func (*MockUnitApplicationNameCall) Do ¶
func (c *MockUnitApplicationNameCall) Do(f func() string) *MockUnitApplicationNameCall
Do rewrite *gomock.Call.Do
func (*MockUnitApplicationNameCall) DoAndReturn ¶
func (c *MockUnitApplicationNameCall) DoAndReturn(f func() string) *MockUnitApplicationNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitApplicationNameCall) Return ¶
func (c *MockUnitApplicationNameCall) Return(arg0 string) *MockUnitApplicationNameCall
Return rewrite *gomock.Call.Return
type MockUnitAssignedMachineIdCall ¶
MockUnitAssignedMachineIdCall wrap *gomock.Call
func (*MockUnitAssignedMachineIdCall) Do ¶
func (c *MockUnitAssignedMachineIdCall) Do(f func() (string, error)) *MockUnitAssignedMachineIdCall
Do rewrite *gomock.Call.Do
func (*MockUnitAssignedMachineIdCall) DoAndReturn ¶
func (c *MockUnitAssignedMachineIdCall) DoAndReturn(f func() (string, error)) *MockUnitAssignedMachineIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitAssignedMachineIdCall) Return ¶
func (c *MockUnitAssignedMachineIdCall) Return(arg0 string, arg1 error) *MockUnitAssignedMachineIdCall
Return rewrite *gomock.Call.Return
type MockUnitCharmURLCall ¶
MockUnitCharmURLCall wrap *gomock.Call
func (*MockUnitCharmURLCall) Do ¶
func (c *MockUnitCharmURLCall) Do(f func() *string) *MockUnitCharmURLCall
Do rewrite *gomock.Call.Do
func (*MockUnitCharmURLCall) DoAndReturn ¶
func (c *MockUnitCharmURLCall) DoAndReturn(f func() *string) *MockUnitCharmURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitCharmURLCall) Return ¶
func (c *MockUnitCharmURLCall) Return(arg0 *string) *MockUnitCharmURLCall
Return rewrite *gomock.Call.Return
type MockUnitLifeCall ¶
MockUnitLifeCall wrap *gomock.Call
func (*MockUnitLifeCall) Do ¶
func (c *MockUnitLifeCall) Do(f func() state.Life) *MockUnitLifeCall
Do rewrite *gomock.Call.Do
func (*MockUnitLifeCall) DoAndReturn ¶
func (c *MockUnitLifeCall) DoAndReturn(f func() state.Life) *MockUnitLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitLifeCall) Return ¶
func (c *MockUnitLifeCall) Return(arg0 state.Life) *MockUnitLifeCall
Return rewrite *gomock.Call.Return
type MockUnitMockRecorder ¶
type MockUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitMockRecorder is the mock recorder for MockUnit.
func (*MockUnitMockRecorder) Application ¶
func (mr *MockUnitMockRecorder) Application() *MockUnitApplicationCall
Application indicates an expected call of Application.
func (*MockUnitMockRecorder) ApplicationName ¶
func (mr *MockUnitMockRecorder) ApplicationName() *MockUnitApplicationNameCall
ApplicationName indicates an expected call of ApplicationName.
func (*MockUnitMockRecorder) AssignedMachineId ¶
func (mr *MockUnitMockRecorder) AssignedMachineId() *MockUnitAssignedMachineIdCall
AssignedMachineId indicates an expected call of AssignedMachineId.
func (*MockUnitMockRecorder) CharmURL ¶
func (mr *MockUnitMockRecorder) CharmURL() *MockUnitCharmURLCall
CharmURL indicates an expected call of CharmURL.
func (*MockUnitMockRecorder) Life ¶
func (mr *MockUnitMockRecorder) Life() *MockUnitLifeCall
Life indicates an expected call of Life.
func (*MockUnitMockRecorder) Name ¶
func (mr *MockUnitMockRecorder) Name() *MockUnitNameCall
Name indicates an expected call of Name.
func (*MockUnitMockRecorder) PrincipalName ¶
func (mr *MockUnitMockRecorder) PrincipalName() *MockUnitPrincipalNameCall
PrincipalName indicates an expected call of PrincipalName.
type MockUnitNameCall ¶
MockUnitNameCall wrap *gomock.Call
func (*MockUnitNameCall) Do ¶
func (c *MockUnitNameCall) Do(f func() string) *MockUnitNameCall
Do rewrite *gomock.Call.Do
func (*MockUnitNameCall) DoAndReturn ¶
func (c *MockUnitNameCall) DoAndReturn(f func() string) *MockUnitNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitNameCall) Return ¶
func (c *MockUnitNameCall) Return(arg0 string) *MockUnitNameCall
Return rewrite *gomock.Call.Return
type MockUnitPrincipalNameCall ¶
MockUnitPrincipalNameCall wrap *gomock.Call
func (*MockUnitPrincipalNameCall) Do ¶
func (c *MockUnitPrincipalNameCall) Do(f func() (string, bool)) *MockUnitPrincipalNameCall
Do rewrite *gomock.Call.Do
func (*MockUnitPrincipalNameCall) DoAndReturn ¶
func (c *MockUnitPrincipalNameCall) DoAndReturn(f func() (string, bool)) *MockUnitPrincipalNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitPrincipalNameCall) Return ¶
func (c *MockUnitPrincipalNameCall) Return(arg0 string, arg1 bool) *MockUnitPrincipalNameCall
Return rewrite *gomock.Call.Return