Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockControllerConfigAPI
- type MockControllerConfigAPIMockRecorder
- type MockNotifyWatcher
- type MockNotifyWatcherMockRecorder
- func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Err() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Kill() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Stop() *gomock.Call
- func (mr *MockNotifyWatcherMockRecorder) Wait() *gomock.Call
- type MockState
- func (m *MockState) AllEndpointBindings() (map[string]map[string]string, error)
- func (m *MockState) Application(arg0 string) (firewall.Application, error)
- func (m *MockState) ControllerConfig() (controller.Config, error)
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) FindEntity(arg0 names.Tag) (state.Entity, error)
- func (m *MockState) GetMacaroon(arg0 names.Tag) (*macaroon.Macaroon, error)
- func (m *MockState) IsController() bool
- func (m *MockState) KeyRelation(arg0 string) (firewall.Relation, error)
- func (m *MockState) Machine(arg0 string) (firewall.Machine, error)
- func (m *MockState) ModelConfig() (*config.Config, error)
- func (m *MockState) ModelUUID() string
- func (m *MockState) SpaceInfos() (network.SpaceInfos, error)
- func (m *MockState) Unit(arg0 string) (firewall.Unit, error)
- func (m *MockState) WatchForModelConfigChanges() state.NotifyWatcher
- func (m *MockState) WatchModelMachineStartTimes(arg0 time.Duration) state.StringsWatcher
- func (m *MockState) WatchModelMachines() state.StringsWatcher
- func (m *MockState) WatchOpenedPorts() state.StringsWatcher
- func (m *MockState) WatchSubnets(arg0 func(any) bool) state.StringsWatcher
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) AllEndpointBindings() *gomock.Call
- func (mr *MockStateMockRecorder) Application(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockStateMockRecorder) FindEntity(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) GetMacaroon(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) IsController() *gomock.Call
- func (mr *MockStateMockRecorder) KeyRelation(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) Machine(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) ModelConfig() *gomock.Call
- func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call
- func (mr *MockStateMockRecorder) SpaceInfos() *gomock.Call
- func (mr *MockStateMockRecorder) Unit(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) WatchForModelConfigChanges() *gomock.Call
- func (mr *MockStateMockRecorder) WatchModelMachineStartTimes(arg0 any) *gomock.Call
- func (mr *MockStateMockRecorder) WatchModelMachines() *gomock.Call
- func (mr *MockStateMockRecorder) WatchOpenedPorts() *gomock.Call
- func (mr *MockStateMockRecorder) WatchSubnets(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockControllerConfigAPI ¶
type MockControllerConfigAPI struct {
// contains filtered or unexported fields
}
MockControllerConfigAPI is a mock of ControllerConfigAPI interface.
func NewMockControllerConfigAPI ¶
func NewMockControllerConfigAPI(ctrl *gomock.Controller) *MockControllerConfigAPI
NewMockControllerConfigAPI creates a new mock instance.
func (*MockControllerConfigAPI) ControllerAPIInfoForModels ¶
func (m *MockControllerConfigAPI) ControllerAPIInfoForModels(arg0 params.Entities) (params.ControllerAPIInfoResults, error)
ControllerAPIInfoForModels mocks base method.
func (*MockControllerConfigAPI) ControllerConfig ¶
func (m *MockControllerConfigAPI) ControllerConfig() (params.ControllerConfigResult, error)
ControllerConfig mocks base method.
func (*MockControllerConfigAPI) EXPECT ¶
func (m *MockControllerConfigAPI) EXPECT() *MockControllerConfigAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockControllerConfigAPIMockRecorder ¶
type MockControllerConfigAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerConfigAPIMockRecorder is the mock recorder for MockControllerConfigAPI.
func (*MockControllerConfigAPIMockRecorder) ControllerAPIInfoForModels ¶
func (mr *MockControllerConfigAPIMockRecorder) ControllerAPIInfoForModels(arg0 any) *gomock.Call
ControllerAPIInfoForModels indicates an expected call of ControllerAPIInfoForModels.
func (*MockControllerConfigAPIMockRecorder) ControllerConfig ¶
func (mr *MockControllerConfigAPIMockRecorder) ControllerConfig() *gomock.Call
ControllerConfig indicates an expected call of ControllerConfig.
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) Err ¶
func (mr *MockNotifyWatcherMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
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 MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface.
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance.
func (*MockState) AllEndpointBindings ¶
AllEndpointBindings mocks base method.
func (*MockState) Application ¶
func (m *MockState) Application(arg0 string) (firewall.Application, error)
Application mocks base method.
func (*MockState) ControllerConfig ¶
func (m *MockState) ControllerConfig() (controller.Config, error)
ControllerConfig mocks base method.
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) FindEntity ¶
FindEntity mocks base method.
func (*MockState) GetMacaroon ¶
GetMacaroon mocks base method.
func (*MockState) IsController ¶
IsController mocks base method.
func (*MockState) KeyRelation ¶
KeyRelation mocks base method.
func (*MockState) ModelConfig ¶
ModelConfig mocks base method.
func (*MockState) SpaceInfos ¶
func (m *MockState) SpaceInfos() (network.SpaceInfos, error)
SpaceInfos mocks base method.
func (*MockState) WatchForModelConfigChanges ¶
func (m *MockState) WatchForModelConfigChanges() state.NotifyWatcher
WatchForModelConfigChanges mocks base method.
func (*MockState) WatchModelMachineStartTimes ¶
func (m *MockState) WatchModelMachineStartTimes(arg0 time.Duration) state.StringsWatcher
WatchModelMachineStartTimes mocks base method.
func (*MockState) WatchModelMachines ¶
func (m *MockState) WatchModelMachines() state.StringsWatcher
WatchModelMachines mocks base method.
func (*MockState) WatchOpenedPorts ¶
func (m *MockState) WatchOpenedPorts() state.StringsWatcher
WatchOpenedPorts mocks base method.
func (*MockState) WatchSubnets ¶
func (m *MockState) WatchSubnets(arg0 func(any) bool) state.StringsWatcher
WatchSubnets mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) AllEndpointBindings ¶
func (mr *MockStateMockRecorder) AllEndpointBindings() *gomock.Call
AllEndpointBindings indicates an expected call of AllEndpointBindings.
func (*MockStateMockRecorder) Application ¶
func (mr *MockStateMockRecorder) Application(arg0 any) *gomock.Call
Application indicates an expected call of Application.
func (*MockStateMockRecorder) ControllerConfig ¶
func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
ControllerConfig indicates an expected call of ControllerConfig.
func (*MockStateMockRecorder) FindEntity ¶
func (mr *MockStateMockRecorder) FindEntity(arg0 any) *gomock.Call
FindEntity indicates an expected call of FindEntity.
func (*MockStateMockRecorder) GetMacaroon ¶
func (mr *MockStateMockRecorder) GetMacaroon(arg0 any) *gomock.Call
GetMacaroon indicates an expected call of GetMacaroon.
func (*MockStateMockRecorder) IsController ¶
func (mr *MockStateMockRecorder) IsController() *gomock.Call
IsController indicates an expected call of IsController.
func (*MockStateMockRecorder) KeyRelation ¶
func (mr *MockStateMockRecorder) KeyRelation(arg0 any) *gomock.Call
KeyRelation indicates an expected call of KeyRelation.
func (*MockStateMockRecorder) Machine ¶
func (mr *MockStateMockRecorder) Machine(arg0 any) *gomock.Call
Machine indicates an expected call of Machine.
func (*MockStateMockRecorder) ModelConfig ¶
func (mr *MockStateMockRecorder) ModelConfig() *gomock.Call
ModelConfig indicates an expected call of ModelConfig.
func (*MockStateMockRecorder) ModelUUID ¶
func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call
ModelUUID indicates an expected call of ModelUUID.
func (*MockStateMockRecorder) SpaceInfos ¶
func (mr *MockStateMockRecorder) SpaceInfos() *gomock.Call
SpaceInfos indicates an expected call of SpaceInfos.
func (*MockStateMockRecorder) Unit ¶
func (mr *MockStateMockRecorder) Unit(arg0 any) *gomock.Call
Unit indicates an expected call of Unit.
func (*MockStateMockRecorder) WatchForModelConfigChanges ¶
func (mr *MockStateMockRecorder) WatchForModelConfigChanges() *gomock.Call
WatchForModelConfigChanges indicates an expected call of WatchForModelConfigChanges.
func (*MockStateMockRecorder) WatchModelMachineStartTimes ¶
func (mr *MockStateMockRecorder) WatchModelMachineStartTimes(arg0 any) *gomock.Call
WatchModelMachineStartTimes indicates an expected call of WatchModelMachineStartTimes.
func (*MockStateMockRecorder) WatchModelMachines ¶
func (mr *MockStateMockRecorder) WatchModelMachines() *gomock.Call
WatchModelMachines indicates an expected call of WatchModelMachines.
func (*MockStateMockRecorder) WatchOpenedPorts ¶
func (mr *MockStateMockRecorder) WatchOpenedPorts() *gomock.Call
WatchOpenedPorts indicates an expected call of WatchOpenedPorts.
func (*MockStateMockRecorder) WatchSubnets ¶
func (mr *MockStateMockRecorder) WatchSubnets(arg0 any) *gomock.Call
WatchSubnets indicates an expected call of WatchSubnets.