Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
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 MockApplicationMockRecorder
- type MockCharm
- type MockCharmMockRecorder
- type MockEntity
- type MockEntityFinder
- type MockEntityFinderMockRecorder
- type MockEntityMockRecorder
- type MockInstanceMutaterState
- func (m *MockInstanceMutaterState) Application(arg0 string) (instancemutater.Application, error)
- func (m *MockInstanceMutaterState) Charm(arg0 *charm.URL) (instancemutater.Charm, error)
- func (m *MockInstanceMutaterState) ControllerTimestamp() (*time.Time, error)
- func (m *MockInstanceMutaterState) EXPECT() *MockInstanceMutaterStateMockRecorder
- func (m *MockInstanceMutaterState) FindEntity(arg0 names.Tag) (state.Entity, error)
- type MockInstanceMutaterStateMockRecorder
- func (mr *MockInstanceMutaterStateMockRecorder) Application(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMutaterStateMockRecorder) Charm(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMutaterStateMockRecorder) ControllerTimestamp() *gomock.Call
- func (mr *MockInstanceMutaterStateMockRecorder) FindEntity(arg0 interface{}) *gomock.Call
- type MockLifer
- type MockLiferMockRecorder
- type MockMachine
- func (m *MockMachine) CharmProfiles() ([]string, error)
- func (m *MockMachine) EXPECT() *MockMachineMockRecorder
- func (m *MockMachine) InstanceId() (instance.Id, error)
- func (m *MockMachine) SetCharmProfiles(arg0 []string) error
- func (m *MockMachine) SetModificationStatus(arg0 status.StatusInfo) error
- func (m *MockMachine) Units() ([]instancemutater.Unit, error)
- type MockMachineMockRecorder
- func (mr *MockMachineMockRecorder) CharmProfiles() *gomock.Call
- func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call
- func (mr *MockMachineMockRecorder) SetCharmProfiles(arg0 interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) SetModificationStatus(arg0 interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) Units() *gomock.Call
- type MockModelCache
- type MockModelCacheMachine
- func (m *MockModelCacheMachine) ContainerType() instance.ContainerType
- func (m *MockModelCacheMachine) EXPECT() *MockModelCacheMachineMockRecorder
- func (m *MockModelCacheMachine) IsManual() bool
- func (m *MockModelCacheMachine) WatchContainers() (cache.StringsWatcher, error)
- func (m *MockModelCacheMachine) WatchLXDProfileVerificationNeeded() (cache.NotifyWatcher, error)
- type MockModelCacheMachineMockRecorder
- func (mr *MockModelCacheMachineMockRecorder) ContainerType() *gomock.Call
- func (mr *MockModelCacheMachineMockRecorder) IsManual() *gomock.Call
- func (mr *MockModelCacheMachineMockRecorder) WatchContainers() *gomock.Call
- func (mr *MockModelCacheMachineMockRecorder) WatchLXDProfileVerificationNeeded() *gomock.Call
- type MockModelCacheMockRecorder
- type MockNotifyWatcher
- type MockNotifyWatcherMockRecorder
- type MockStringsWatcher
- type MockStringsWatcherMockRecorder
- type MockUnit
- type MockUnitMockRecorder
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() *charm.URL
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 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
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
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 MockEntityFinderMockRecorder ¶
type MockEntityFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockEntityFinderMockRecorder is the mock recorder for MockEntityFinder
func (*MockEntityFinderMockRecorder) FindEntity ¶
func (mr *MockEntityFinderMockRecorder) FindEntity(arg0 interface{}) *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 ¶
func (m *MockInstanceMutaterState) Application(arg0 string) (instancemutater.Application, error)
Application mocks base method
func (*MockInstanceMutaterState) Charm ¶
func (m *MockInstanceMutaterState) Charm(arg0 *charm.URL) (instancemutater.Charm, error)
Charm 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
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 interface{}) *gomock.Call
Application indicates an expected call of Application
func (*MockInstanceMutaterStateMockRecorder) Charm ¶
func (mr *MockInstanceMutaterStateMockRecorder) Charm(arg0 interface{}) *gomock.Call
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 interface{}) *gomock.Call
FindEntity indicates an expected call of FindEntity
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 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) EXPECT ¶
func (m *MockMachine) EXPECT() *MockMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMachine) InstanceId ¶
func (m *MockMachine) InstanceId() (instance.Id, error)
InstanceId 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
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) InstanceId ¶
func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call
InstanceId indicates an expected call of InstanceId
func (*MockMachineMockRecorder) SetCharmProfiles ¶
func (mr *MockMachineMockRecorder) SetCharmProfiles(arg0 interface{}) *gomock.Call
SetCharmProfiles indicates an expected call of SetCharmProfiles
func (*MockMachineMockRecorder) SetModificationStatus ¶
func (mr *MockMachineMockRecorder) SetModificationStatus(arg0 interface{}) *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
type MockModelCache ¶
type MockModelCache struct {
// contains filtered or unexported fields
}
MockModelCache is a mock of ModelCache interface
func NewMockModelCache ¶
func NewMockModelCache(ctrl *gomock.Controller) *MockModelCache
NewMockModelCache creates a new mock instance
func (*MockModelCache) EXPECT ¶
func (m *MockModelCache) EXPECT() *MockModelCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockModelCache) Machine ¶
func (m *MockModelCache) Machine(arg0 string) (instancemutater.ModelCacheMachine, error)
Machine mocks base method
func (*MockModelCache) WatchMachines ¶
func (m *MockModelCache) WatchMachines() (cache.StringsWatcher, error)
WatchMachines mocks base method
type MockModelCacheMachine ¶
type MockModelCacheMachine struct {
// contains filtered or unexported fields
}
MockModelCacheMachine is a mock of ModelCacheMachine interface
func NewMockModelCacheMachine ¶
func NewMockModelCacheMachine(ctrl *gomock.Controller) *MockModelCacheMachine
NewMockModelCacheMachine creates a new mock instance
func (*MockModelCacheMachine) ContainerType ¶
func (m *MockModelCacheMachine) ContainerType() instance.ContainerType
ContainerType mocks base method
func (*MockModelCacheMachine) EXPECT ¶
func (m *MockModelCacheMachine) EXPECT() *MockModelCacheMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockModelCacheMachine) IsManual ¶
func (m *MockModelCacheMachine) IsManual() bool
IsManual mocks base method
func (*MockModelCacheMachine) WatchContainers ¶
func (m *MockModelCacheMachine) WatchContainers() (cache.StringsWatcher, error)
WatchContainers mocks base method
func (*MockModelCacheMachine) WatchLXDProfileVerificationNeeded ¶
func (m *MockModelCacheMachine) WatchLXDProfileVerificationNeeded() (cache.NotifyWatcher, error)
WatchLXDProfileVerificationNeeded mocks base method
type MockModelCacheMachineMockRecorder ¶
type MockModelCacheMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockModelCacheMachineMockRecorder is the mock recorder for MockModelCacheMachine
func (*MockModelCacheMachineMockRecorder) ContainerType ¶
func (mr *MockModelCacheMachineMockRecorder) ContainerType() *gomock.Call
ContainerType indicates an expected call of ContainerType
func (*MockModelCacheMachineMockRecorder) IsManual ¶
func (mr *MockModelCacheMachineMockRecorder) IsManual() *gomock.Call
IsManual indicates an expected call of IsManual
func (*MockModelCacheMachineMockRecorder) WatchContainers ¶
func (mr *MockModelCacheMachineMockRecorder) WatchContainers() *gomock.Call
WatchContainers indicates an expected call of WatchContainers
func (*MockModelCacheMachineMockRecorder) WatchLXDProfileVerificationNeeded ¶
func (mr *MockModelCacheMachineMockRecorder) WatchLXDProfileVerificationNeeded() *gomock.Call
WatchLXDProfileVerificationNeeded indicates an expected call of WatchLXDProfileVerificationNeeded
type MockModelCacheMockRecorder ¶
type MockModelCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockModelCacheMockRecorder is the mock recorder for MockModelCache
func (*MockModelCacheMockRecorder) Machine ¶
func (mr *MockModelCacheMockRecorder) Machine(arg0 interface{}) *gomock.Call
Machine indicates an expected call of Machine
func (*MockModelCacheMockRecorder) Name ¶
func (mr *MockModelCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockModelCacheMockRecorder) WatchMachines ¶
func (mr *MockModelCacheMockRecorder) WatchMachines() *gomock.Call
WatchMachines indicates an expected call of WatchMachines
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 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) Kill ¶
func (mr *MockNotifyWatcherMockRecorder) Kill() *gomock.Call
Kill indicates an expected call of Kill
func (*MockNotifyWatcherMockRecorder) Stop ¶
func (mr *MockNotifyWatcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockNotifyWatcherMockRecorder) Wait ¶
func (mr *MockNotifyWatcherMockRecorder) Wait() *gomock.Call
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 ¶
func (m *MockStringsWatcher) EXPECT() *MockStringsWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStringsWatcherMockRecorder ¶
type MockStringsWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher
func (*MockStringsWatcherMockRecorder) Changes ¶
func (mr *MockStringsWatcherMockRecorder) Changes() *gomock.Call
Changes indicates an expected call of Changes
func (*MockStringsWatcherMockRecorder) Kill ¶
func (mr *MockStringsWatcherMockRecorder) Kill() *gomock.Call
Kill indicates an expected call of Kill
func (*MockStringsWatcherMockRecorder) Stop ¶
func (mr *MockStringsWatcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockStringsWatcherMockRecorder) Wait ¶
func (mr *MockStringsWatcherMockRecorder) Wait() *gomock.Call
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 ¶
Application mocks base method
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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