mocks

package
v0.0.0-...-71e813e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

type MockApplicationCharmURLCall

type MockApplicationCharmURLCall struct {
	*gomock.Call
}

MockApplicationCharmURLCall wrap *gomock.Call

func (*MockApplicationCharmURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationCharmURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationCharmURLCall) Return

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

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

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

type MockApplicationServiceGetCharmLXDProfileCall struct {
	*gomock.Call
}

MockApplicationServiceGetCharmLXDProfileCall wrap *gomock.Call

func (*MockApplicationServiceGetCharmLXDProfileCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationServiceGetCharmLXDProfileCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationServiceGetCharmLXDProfileCall) Return

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

GetCharmLXDProfile indicates an expected call of GetCharmLXDProfile.

func (*MockApplicationServiceMockRecorder) WatchCharms

WatchCharms indicates an expected call of WatchCharms.

type MockApplicationServiceWatchCharmsCall

type MockApplicationServiceWatchCharmsCall struct {
	*gomock.Call
}

MockApplicationServiceWatchCharmsCall wrap *gomock.Call

func (*MockApplicationServiceWatchCharmsCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationServiceWatchCharmsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationServiceWatchCharmsCall) Return

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.

func (*MockEntity) Tag

func (m *MockEntity) Tag() names.Tag

Tag mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEntityFinder) FindEntity

func (m *MockEntityFinder) FindEntity(arg0 names.Tag) (state.Entity, error)

FindEntity mocks base method.

type MockEntityFinderFindEntityCall

type MockEntityFinderFindEntityCall struct {
	*gomock.Call
}

MockEntityFinderFindEntityCall wrap *gomock.Call

func (*MockEntityFinderFindEntityCall) Do

Do rewrite *gomock.Call.Do

func (*MockEntityFinderFindEntityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEntityFinderFindEntityCall) Return

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

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

Tag indicates an expected call of Tag.

type MockEntityTagCall

type MockEntityTagCall struct {
	*gomock.Call
}

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

Application mocks base method.

func (*MockInstanceMutaterState) ControllerTimestamp

func (m *MockInstanceMutaterState) ControllerTimestamp() (*time.Time, error)

ControllerTimestamp mocks base method.

func (*MockInstanceMutaterState) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInstanceMutaterState) FindEntity

func (m *MockInstanceMutaterState) FindEntity(arg0 names.Tag) (state.Entity, error)

FindEntity mocks base method.

func (*MockInstanceMutaterState) Machine

Machine mocks base method.

func (*MockInstanceMutaterState) ModelName

func (m *MockInstanceMutaterState) ModelName() (string, error)

ModelName mocks base method.

func (*MockInstanceMutaterState) Unit

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

WatchUnits mocks base method.

type MockInstanceMutaterStateApplicationCall

type MockInstanceMutaterStateApplicationCall struct {
	*gomock.Call
}

MockInstanceMutaterStateApplicationCall wrap *gomock.Call

func (*MockInstanceMutaterStateApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateControllerTimestampCall

type MockInstanceMutaterStateControllerTimestampCall struct {
	*gomock.Call
}

MockInstanceMutaterStateControllerTimestampCall wrap *gomock.Call

func (*MockInstanceMutaterStateControllerTimestampCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateControllerTimestampCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateControllerTimestampCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateFindEntityCall

type MockInstanceMutaterStateFindEntityCall struct {
	*gomock.Call
}

MockInstanceMutaterStateFindEntityCall wrap *gomock.Call

func (*MockInstanceMutaterStateFindEntityCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateFindEntityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateFindEntityCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateMachineCall

type MockInstanceMutaterStateMachineCall struct {
	*gomock.Call
}

MockInstanceMutaterStateMachineCall wrap *gomock.Call

func (*MockInstanceMutaterStateMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateMachineCall) Return

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

Application indicates an expected call of Application.

func (*MockInstanceMutaterStateMockRecorder) ControllerTimestamp

ControllerTimestamp indicates an expected call of ControllerTimestamp.

func (*MockInstanceMutaterStateMockRecorder) FindEntity

FindEntity indicates an expected call of FindEntity.

func (*MockInstanceMutaterStateMockRecorder) Machine

Machine indicates an expected call of Machine.

func (*MockInstanceMutaterStateMockRecorder) ModelName

ModelName indicates an expected call of ModelName.

func (*MockInstanceMutaterStateMockRecorder) Unit

Unit indicates an expected call of Unit.

func (*MockInstanceMutaterStateMockRecorder) WatchApplicationCharms

WatchApplicationCharms indicates an expected call of WatchApplicationCharms.

func (*MockInstanceMutaterStateMockRecorder) WatchMachines

WatchMachines indicates an expected call of WatchMachines.

func (*MockInstanceMutaterStateMockRecorder) WatchModelMachines

WatchModelMachines indicates an expected call of WatchModelMachines.

func (*MockInstanceMutaterStateMockRecorder) WatchUnits

WatchUnits indicates an expected call of WatchUnits.

type MockInstanceMutaterStateModelNameCall

type MockInstanceMutaterStateModelNameCall struct {
	*gomock.Call
}

MockInstanceMutaterStateModelNameCall wrap *gomock.Call

func (*MockInstanceMutaterStateModelNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateModelNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateModelNameCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateUnitCall

type MockInstanceMutaterStateUnitCall struct {
	*gomock.Call
}

MockInstanceMutaterStateUnitCall wrap *gomock.Call

func (*MockInstanceMutaterStateUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateUnitCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateWatchApplicationCharmsCall

type MockInstanceMutaterStateWatchApplicationCharmsCall struct {
	*gomock.Call
}

MockInstanceMutaterStateWatchApplicationCharmsCall wrap *gomock.Call

func (*MockInstanceMutaterStateWatchApplicationCharmsCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateWatchApplicationCharmsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateWatchApplicationCharmsCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateWatchMachinesCall

type MockInstanceMutaterStateWatchMachinesCall struct {
	*gomock.Call
}

MockInstanceMutaterStateWatchMachinesCall wrap *gomock.Call

func (*MockInstanceMutaterStateWatchMachinesCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateWatchMachinesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateWatchMachinesCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateWatchModelMachinesCall

type MockInstanceMutaterStateWatchModelMachinesCall struct {
	*gomock.Call
}

MockInstanceMutaterStateWatchModelMachinesCall wrap *gomock.Call

func (*MockInstanceMutaterStateWatchModelMachinesCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateWatchModelMachinesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateWatchModelMachinesCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMutaterStateWatchUnitsCall

type MockInstanceMutaterStateWatchUnitsCall struct {
	*gomock.Call
}

MockInstanceMutaterStateWatchUnitsCall wrap *gomock.Call

func (*MockInstanceMutaterStateWatchUnitsCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutaterStateWatchUnitsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutaterStateWatchUnitsCall) Return

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

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

type MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall struct {
	*gomock.Call
}

MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall wrap *gomock.Call

func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceMutatorWatcherWatchLXDProfileVerificationForMachineCall) Return

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.

func (*MockLifer) Life

func (m *MockLifer) Life() state.Life

Life mocks base method.

type MockLiferLifeCall

type MockLiferLifeCall struct {
	*gomock.Call
}

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

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) Id

func (m *MockMachine) Id() string

Id mocks base method.

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

type MockMachineContainerTypeCall struct {
	*gomock.Call
}

MockMachineContainerTypeCall wrap *gomock.Call

func (*MockMachineContainerTypeCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineContainerTypeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineContainerTypeCall) Return

Return rewrite *gomock.Call.Return

type MockMachineIdCall

type MockMachineIdCall struct {
	*gomock.Call
}

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

type MockMachineIsManualCall struct {
	*gomock.Call
}

MockMachineIsManualCall wrap *gomock.Call

func (*MockMachineIsManualCall) Do

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

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

ContainerType indicates an expected call of ContainerType.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) IsManual

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

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

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

func (m *MockMachineService) InstanceID(arg0 context.Context, arg1 string) (instance.Id, error)

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

type MockMachineServiceAppliedLXDProfileNamesCall struct {
	*gomock.Call
}

MockMachineServiceAppliedLXDProfileNamesCall wrap *gomock.Call

func (*MockMachineServiceAppliedLXDProfileNamesCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceAppliedLXDProfileNamesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceAppliedLXDProfileNamesCall) Return

Return rewrite *gomock.Call.Return

type MockMachineServiceGetMachineUUIDCall

type MockMachineServiceGetMachineUUIDCall struct {
	*gomock.Call
}

MockMachineServiceGetMachineUUIDCall wrap *gomock.Call

func (*MockMachineServiceGetMachineUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceGetMachineUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceGetMachineUUIDCall) Return

Return rewrite *gomock.Call.Return

type MockMachineServiceInstanceIDCall

type MockMachineServiceInstanceIDCall struct {
	*gomock.Call
}

MockMachineServiceInstanceIDCall wrap *gomock.Call

func (*MockMachineServiceInstanceIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceInstanceIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceInstanceIDCall) Return

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

AppliedLXDProfileNames indicates an expected call of AppliedLXDProfileNames.

func (*MockMachineServiceMockRecorder) GetMachineUUID

GetMachineUUID indicates an expected call of GetMachineUUID.

func (*MockMachineServiceMockRecorder) InstanceID

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

WatchLXDProfiles indicates an expected call of WatchLXDProfiles.

type MockMachineServiceSetAppliedLXDProfileNamesCall

type MockMachineServiceSetAppliedLXDProfileNamesCall struct {
	*gomock.Call
}

MockMachineServiceSetAppliedLXDProfileNamesCall wrap *gomock.Call

func (*MockMachineServiceSetAppliedLXDProfileNamesCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceSetAppliedLXDProfileNamesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceSetAppliedLXDProfileNamesCall) Return

Return rewrite *gomock.Call.Return

type MockMachineServiceWatchLXDProfilesCall

type MockMachineServiceWatchLXDProfilesCall struct {
	*gomock.Call
}

MockMachineServiceWatchLXDProfilesCall wrap *gomock.Call

func (*MockMachineServiceWatchLXDProfilesCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceWatchLXDProfilesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceWatchLXDProfilesCall) Return

Return rewrite *gomock.Call.Return

type MockMachineSetModificationStatusCall

type MockMachineSetModificationStatusCall struct {
	*gomock.Call
}

MockMachineSetModificationStatusCall wrap *gomock.Call

func (*MockMachineSetModificationStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineSetModificationStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineSetModificationStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMachineUnitsCall

type MockMachineUnitsCall struct {
	*gomock.Call
}

MockMachineUnitsCall wrap *gomock.Call

func (*MockMachineUnitsCall) Do

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

Return rewrite *gomock.Call.Return

type MockMachineWatchContainersCall

type MockMachineWatchContainersCall struct {
	*gomock.Call
}

MockMachineWatchContainersCall wrap *gomock.Call

func (*MockMachineWatchContainersCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineWatchContainersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineWatchContainersCall) Return

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNotifyWatcher) Err

func (m *MockNotifyWatcher) Err() error

Err mocks base method.

func (*MockNotifyWatcher) Kill

func (m *MockNotifyWatcher) Kill()

Kill mocks base method.

func (*MockNotifyWatcher) Stop

func (m *MockNotifyWatcher) Stop() error

Stop mocks base method.

func (*MockNotifyWatcher) Wait

func (m *MockNotifyWatcher) Wait() error

Wait mocks base method.

type MockNotifyWatcherChangesCall

type MockNotifyWatcherChangesCall struct {
	*gomock.Call
}

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

type MockNotifyWatcherErrCall struct {
	*gomock.Call
}

MockNotifyWatcherErrCall wrap *gomock.Call

func (*MockNotifyWatcherErrCall) Do

Do rewrite *gomock.Call.Do

func (*MockNotifyWatcherErrCall) DoAndReturn

func (c *MockNotifyWatcherErrCall) DoAndReturn(f func() error) *MockNotifyWatcherErrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockNotifyWatcherErrCall) Return

Return rewrite *gomock.Call.Return

type MockNotifyWatcherKillCall

type MockNotifyWatcherKillCall struct {
	*gomock.Call
}

MockNotifyWatcherKillCall wrap *gomock.Call

func (*MockNotifyWatcherKillCall) Do

Do rewrite *gomock.Call.Do

func (*MockNotifyWatcherKillCall) DoAndReturn

func (c *MockNotifyWatcherKillCall) DoAndReturn(f func()) *MockNotifyWatcherKillCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockNotifyWatcherKillCall) Return

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

Changes indicates an expected call of Changes.

func (*MockNotifyWatcherMockRecorder) Err

Err indicates an expected call of Err.

func (*MockNotifyWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockNotifyWatcherMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockNotifyWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockNotifyWatcherStopCall

type MockNotifyWatcherStopCall struct {
	*gomock.Call
}

MockNotifyWatcherStopCall wrap *gomock.Call

func (*MockNotifyWatcherStopCall) Do

Do rewrite *gomock.Call.Do

func (*MockNotifyWatcherStopCall) DoAndReturn

func (c *MockNotifyWatcherStopCall) DoAndReturn(f func() error) *MockNotifyWatcherStopCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockNotifyWatcherStopCall) Return

Return rewrite *gomock.Call.Return

type MockNotifyWatcherWaitCall

type MockNotifyWatcherWaitCall struct {
	*gomock.Call
}

MockNotifyWatcherWaitCall wrap *gomock.Call

func (*MockNotifyWatcherWaitCall) Do

Do rewrite *gomock.Call.Do

func (*MockNotifyWatcherWaitCall) DoAndReturn

func (c *MockNotifyWatcherWaitCall) DoAndReturn(f func() error) *MockNotifyWatcherWaitCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockNotifyWatcherWaitCall) Return

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStringsWatcher) Err

func (m *MockStringsWatcher) Err() error

Err mocks base method.

func (*MockStringsWatcher) Kill

func (m *MockStringsWatcher) Kill()

Kill mocks base method.

func (*MockStringsWatcher) Stop

func (m *MockStringsWatcher) Stop() error

Stop mocks base method.

func (*MockStringsWatcher) Wait

func (m *MockStringsWatcher) Wait() error

Wait mocks base method.

type MockStringsWatcherChangesCall

type MockStringsWatcherChangesCall struct {
	*gomock.Call
}

MockStringsWatcherChangesCall wrap *gomock.Call

func (*MockStringsWatcherChangesCall) Do

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

Return rewrite *gomock.Call.Return

type MockStringsWatcherErrCall

type MockStringsWatcherErrCall struct {
	*gomock.Call
}

MockStringsWatcherErrCall wrap *gomock.Call

func (*MockStringsWatcherErrCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherErrCall) DoAndReturn

func (c *MockStringsWatcherErrCall) DoAndReturn(f func() error) *MockStringsWatcherErrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherErrCall) Return

Return rewrite *gomock.Call.Return

type MockStringsWatcherKillCall

type MockStringsWatcherKillCall struct {
	*gomock.Call
}

MockStringsWatcherKillCall wrap *gomock.Call

func (*MockStringsWatcherKillCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherKillCall) DoAndReturn

func (c *MockStringsWatcherKillCall) DoAndReturn(f func()) *MockStringsWatcherKillCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherKillCall) Return

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

Changes indicates an expected call of Changes.

func (*MockStringsWatcherMockRecorder) Err

Err indicates an expected call of Err.

func (*MockStringsWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockStringsWatcherMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockStringsWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockStringsWatcherStopCall

type MockStringsWatcherStopCall struct {
	*gomock.Call
}

MockStringsWatcherStopCall wrap *gomock.Call

func (*MockStringsWatcherStopCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherStopCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherStopCall) Return

Return rewrite *gomock.Call.Return

type MockStringsWatcherWaitCall

type MockStringsWatcherWaitCall struct {
	*gomock.Call
}

MockStringsWatcherWaitCall wrap *gomock.Call

func (*MockStringsWatcherWaitCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherWaitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherWaitCall) Return

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

func (m *MockUnit) ApplicationName() string

ApplicationName mocks base method.

func (*MockUnit) AssignedMachineId

func (m *MockUnit) AssignedMachineId() (string, error)

AssignedMachineId mocks base method.

func (*MockUnit) CharmURL

func (m *MockUnit) CharmURL() *string

CharmURL 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) Life

func (m *MockUnit) Life() state.Life

Life mocks base method.

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) PrincipalName

func (m *MockUnit) PrincipalName() (string, bool)

PrincipalName mocks base method.

type MockUnitApplicationCall

type MockUnitApplicationCall struct {
	*gomock.Call
}

MockUnitApplicationCall wrap *gomock.Call

func (*MockUnitApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockUnitApplicationNameCall

type MockUnitApplicationNameCall struct {
	*gomock.Call
}

MockUnitApplicationNameCall wrap *gomock.Call

func (*MockUnitApplicationNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationNameCall) Return

Return rewrite *gomock.Call.Return

type MockUnitAssignedMachineIdCall

type MockUnitAssignedMachineIdCall struct {
	*gomock.Call
}

MockUnitAssignedMachineIdCall wrap *gomock.Call

func (*MockUnitAssignedMachineIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitAssignedMachineIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitAssignedMachineIdCall) Return

Return rewrite *gomock.Call.Return

type MockUnitCharmURLCall

type MockUnitCharmURLCall struct {
	*gomock.Call
}

MockUnitCharmURLCall wrap *gomock.Call

func (*MockUnitCharmURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitCharmURLCall) DoAndReturn

func (c *MockUnitCharmURLCall) DoAndReturn(f func() *string) *MockUnitCharmURLCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitCharmURLCall) Return

Return rewrite *gomock.Call.Return

type MockUnitLifeCall

type MockUnitLifeCall struct {
	*gomock.Call
}

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

CharmURL indicates an expected call of CharmURL.

func (*MockUnitMockRecorder) Life

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) Name

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) PrincipalName

func (mr *MockUnitMockRecorder) PrincipalName() *MockUnitPrincipalNameCall

PrincipalName indicates an expected call of PrincipalName.

type MockUnitNameCall

type MockUnitNameCall struct {
	*gomock.Call
}

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

type MockUnitPrincipalNameCall struct {
	*gomock.Call
}

MockUnitPrincipalNameCall wrap *gomock.Call

func (*MockUnitPrincipalNameCall) Do

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

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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