mocks

package
v0.0.0-...-298751d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 9 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 MockApplicationMockRecorder

type MockApplicationMockRecorder struct {
	// contains filtered or unexported fields
}

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) CharmURL

func (mr *MockApplicationMockRecorder) CharmURL() *gomock.Call

CharmURL indicates an expected call of CharmURL.

type MockCharm

type MockCharm struct {
	// contains filtered or unexported fields
}

MockCharm is a mock of Charm interface.

func NewMockCharm

func NewMockCharm(ctrl *gomock.Controller) *MockCharm

NewMockCharm creates a new mock instance.

func (*MockCharm) EXPECT

func (m *MockCharm) EXPECT() *MockCharmMockRecorder

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

func (*MockCharm) LXDProfile

func (m *MockCharm) LXDProfile() lxdprofile.Profile

LXDProfile mocks base method.

func (*MockCharm) Revision

func (m *MockCharm) Revision() int

Revision mocks base method.

type MockCharmMockRecorder

type MockCharmMockRecorder struct {
	// contains filtered or unexported fields
}

MockCharmMockRecorder is the mock recorder for MockCharm.

func (*MockCharmMockRecorder) LXDProfile

func (mr *MockCharmMockRecorder) LXDProfile() *gomock.Call

LXDProfile indicates an expected call of LXDProfile.

func (*MockCharmMockRecorder) Revision

func (mr *MockCharmMockRecorder) Revision() *gomock.Call

Revision indicates an expected call of Revision.

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 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) *gomock.Call

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() *gomock.Call

Tag indicates an expected call of Tag.

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

Charm 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) WatchCharms

WatchCharms 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 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) *gomock.Call

Application indicates an expected call of Application.

func (*MockInstanceMutaterStateMockRecorder) Charm

Charm indicates an expected call of Charm.

func (*MockInstanceMutaterStateMockRecorder) ControllerTimestamp

func (mr *MockInstanceMutaterStateMockRecorder) ControllerTimestamp() *gomock.Call

ControllerTimestamp indicates an expected call of ControllerTimestamp.

func (*MockInstanceMutaterStateMockRecorder) FindEntity

func (mr *MockInstanceMutaterStateMockRecorder) FindEntity(arg0 any) *gomock.Call

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

func (mr *MockInstanceMutaterStateMockRecorder) WatchApplicationCharms() *gomock.Call

WatchApplicationCharms indicates an expected call of WatchApplicationCharms.

func (*MockInstanceMutaterStateMockRecorder) WatchCharms

WatchCharms indicates an expected call of WatchCharms.

func (*MockInstanceMutaterStateMockRecorder) WatchMachines

func (mr *MockInstanceMutaterStateMockRecorder) WatchMachines() *gomock.Call

WatchMachines indicates an expected call of WatchMachines.

func (*MockInstanceMutaterStateMockRecorder) WatchModelMachines

func (mr *MockInstanceMutaterStateMockRecorder) WatchModelMachines() *gomock.Call

WatchModelMachines indicates an expected call of WatchModelMachines.

func (*MockInstanceMutaterStateMockRecorder) WatchUnits

WatchUnits indicates an expected call of WatchUnits.

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 instancemutater.Machine) (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 any) *gomock.Call

WatchLXDProfileVerificationForMachine indicates an expected call of WatchLXDProfileVerificationForMachine.

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 MockLiferMockRecorder

type MockLiferMockRecorder struct {
	// contains filtered or unexported fields
}

MockLiferMockRecorder is the mock recorder for MockLifer.

func (*MockLiferMockRecorder) Life

func (mr *MockLiferMockRecorder) Life() *gomock.Call

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

func (m *MockMachine) CharmProfiles() ([]string, error)

CharmProfiles mocks base method.

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

func (m *MockMachine) InstanceId() (instance.Id, error)

InstanceId mocks base method.

func (*MockMachine) IsManual

func (m *MockMachine) IsManual() (bool, error)

IsManual mocks base method.

func (*MockMachine) SetCharmProfiles

func (m *MockMachine) SetCharmProfiles(arg0 []string) error

SetCharmProfiles 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.

func (*MockMachine) WatchInstanceData

func (m *MockMachine) WatchInstanceData() state.NotifyWatcher

WatchInstanceData mocks base method.

type MockMachineMockRecorder

type MockMachineMockRecorder struct {
	// contains filtered or unexported fields
}

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) CharmProfiles

func (mr *MockMachineMockRecorder) CharmProfiles() *gomock.Call

CharmProfiles indicates an expected call of CharmProfiles.

func (*MockMachineMockRecorder) ContainerType

func (mr *MockMachineMockRecorder) ContainerType() *gomock.Call

ContainerType indicates an expected call of ContainerType.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) InstanceId

func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call

InstanceId indicates an expected call of InstanceId.

func (*MockMachineMockRecorder) IsManual

func (mr *MockMachineMockRecorder) IsManual() *gomock.Call

IsManual indicates an expected call of IsManual.

func (*MockMachineMockRecorder) SetCharmProfiles

func (mr *MockMachineMockRecorder) SetCharmProfiles(arg0 any) *gomock.Call

SetCharmProfiles indicates an expected call of SetCharmProfiles.

func (*MockMachineMockRecorder) SetModificationStatus

func (mr *MockMachineMockRecorder) SetModificationStatus(arg0 any) *gomock.Call

SetModificationStatus indicates an expected call of SetModificationStatus.

func (*MockMachineMockRecorder) Units

func (mr *MockMachineMockRecorder) Units() *gomock.Call

Units indicates an expected call of Units.

func (*MockMachineMockRecorder) WatchContainers

func (mr *MockMachineMockRecorder) WatchContainers(arg0 any) *gomock.Call

WatchContainers indicates an expected call of WatchContainers.

func (*MockMachineMockRecorder) WatchInstanceData

func (mr *MockMachineMockRecorder) WatchInstanceData() *gomock.Call

WatchInstanceData indicates an expected call of WatchInstanceData.

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 MockNotifyWatcherMockRecorder

type MockNotifyWatcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher.

func (*MockNotifyWatcherMockRecorder) Changes

func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call

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 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 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 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 MockUnitMockRecorder

type MockUnitMockRecorder struct {
	// contains filtered or unexported fields
}

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) Application

func (mr *MockUnitMockRecorder) Application() *gomock.Call

Application indicates an expected call of Application.

func (*MockUnitMockRecorder) ApplicationName

func (mr *MockUnitMockRecorder) ApplicationName() *gomock.Call

ApplicationName indicates an expected call of ApplicationName.

func (*MockUnitMockRecorder) AssignedMachineId

func (mr *MockUnitMockRecorder) AssignedMachineId() *gomock.Call

AssignedMachineId indicates an expected call of AssignedMachineId.

func (*MockUnitMockRecorder) CharmURL

func (mr *MockUnitMockRecorder) CharmURL() *gomock.Call

CharmURL indicates an expected call of CharmURL.

func (*MockUnitMockRecorder) Life

func (mr *MockUnitMockRecorder) Life() *gomock.Call

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) Name

func (mr *MockUnitMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) PrincipalName

func (mr *MockUnitMockRecorder) PrincipalName() *gomock.Call

PrincipalName indicates an expected call of PrincipalName.

Jump to

Keyboard shortcuts

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