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 MockCredentialAPI
- type MockCredentialAPIMockRecorder
- type MockEnviron
- type MockEnvironMockRecorder
- type MockInstance
- type MockInstanceMockRecorder
- type MockMachine
- func (m *MockMachine) EXPECT() *MockMachineMockRecorder
- func (m *MockMachine) Id() string
- func (m *MockMachine) InstanceId() (instance.Id, error)
- func (m *MockMachine) InstanceStatus() (params.StatusResult, error)
- func (m *MockMachine) IsManual() (bool, error)
- func (m *MockMachine) Life() life.Value
- func (m *MockMachine) Refresh() error
- func (m *MockMachine) SetInstanceStatus(arg0 status.Status, arg1 string, arg2 map[string]any) error
- func (m *MockMachine) SetProviderNetworkConfig(arg0 network.InterfaceInfos) (network.ProviderAddresses, bool, error)
- func (m *MockMachine) Status() (params.StatusResult, error)
- func (m *MockMachine) String() string
- type MockMachineMockRecorder
- func (mr *MockMachineMockRecorder) Id() *gomock.Call
- func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call
- func (mr *MockMachineMockRecorder) InstanceStatus() *gomock.Call
- func (mr *MockMachineMockRecorder) IsManual() *gomock.Call
- func (mr *MockMachineMockRecorder) Life() *gomock.Call
- func (mr *MockMachineMockRecorder) Refresh() *gomock.Call
- func (mr *MockMachineMockRecorder) SetInstanceStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMachineMockRecorder) SetProviderNetworkConfig(arg0 any) *gomock.Call
- func (mr *MockMachineMockRecorder) Status() *gomock.Call
- func (mr *MockMachineMockRecorder) String() *gomock.Call
- type MockStringsWatcher
- type MockStringsWatcherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCredentialAPI ¶
type MockCredentialAPI struct {
// contains filtered or unexported fields
}
MockCredentialAPI is a mock of CredentialAPI interface.
func NewMockCredentialAPI ¶
func NewMockCredentialAPI(ctrl *gomock.Controller) *MockCredentialAPI
NewMockCredentialAPI creates a new mock instance.
func (*MockCredentialAPI) EXPECT ¶
func (m *MockCredentialAPI) EXPECT() *MockCredentialAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCredentialAPI) InvalidateModelCredential ¶
func (m *MockCredentialAPI) InvalidateModelCredential(arg0 string) error
InvalidateModelCredential mocks base method.
type MockCredentialAPIMockRecorder ¶
type MockCredentialAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockCredentialAPIMockRecorder is the mock recorder for MockCredentialAPI.
func (*MockCredentialAPIMockRecorder) InvalidateModelCredential ¶
func (mr *MockCredentialAPIMockRecorder) InvalidateModelCredential(arg0 any) *gomock.Call
InvalidateModelCredential indicates an expected call of InvalidateModelCredential.
type MockEnviron ¶
type MockEnviron struct {
// contains filtered or unexported fields
}
MockEnviron is a mock of Environ interface.
func NewMockEnviron ¶
func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron
NewMockEnviron creates a new mock instance.
func (*MockEnviron) EXPECT ¶
func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnviron) Instances ¶
func (m *MockEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method.
func (*MockEnviron) NetworkInterfaces ¶
func (m *MockEnviron) NetworkInterfaces(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]network.InterfaceInfos, error)
NetworkInterfaces mocks base method.
type MockEnvironMockRecorder ¶
type MockEnvironMockRecorder struct {
// contains filtered or unexported fields
}
MockEnvironMockRecorder is the mock recorder for MockEnviron.
func (*MockEnvironMockRecorder) Instances ¶
func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call
Instances indicates an expected call of Instances.
func (*MockEnvironMockRecorder) NetworkInterfaces ¶
func (mr *MockEnvironMockRecorder) NetworkInterfaces(arg0, arg1 any) *gomock.Call
NetworkInterfaces indicates an expected call of NetworkInterfaces.
type MockInstance ¶
type MockInstance struct {
// contains filtered or unexported fields
}
MockInstance is a mock of Instance interface.
func NewMockInstance ¶
func NewMockInstance(ctrl *gomock.Controller) *MockInstance
NewMockInstance creates a new mock instance.
func (*MockInstance) Addresses ¶
func (m *MockInstance) Addresses(arg0 context.ProviderCallContext) (network.ProviderAddresses, error)
Addresses mocks base method.
func (*MockInstance) EXPECT ¶
func (m *MockInstance) EXPECT() *MockInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstance) Status ¶
func (m *MockInstance) Status(arg0 context.ProviderCallContext) instance.Status
Status mocks base method.
type MockInstanceMockRecorder ¶
type MockInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMockRecorder is the mock recorder for MockInstance.
func (*MockInstanceMockRecorder) Addresses ¶
func (mr *MockInstanceMockRecorder) Addresses(arg0 any) *gomock.Call
Addresses indicates an expected call of Addresses.
func (*MockInstanceMockRecorder) Id ¶
func (mr *MockInstanceMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
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) 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) InstanceStatus ¶
func (m *MockMachine) InstanceStatus() (params.StatusResult, error)
InstanceStatus mocks base method.
func (*MockMachine) IsManual ¶
func (m *MockMachine) IsManual() (bool, error)
IsManual mocks base method.
func (*MockMachine) SetInstanceStatus ¶
SetInstanceStatus mocks base method.
func (*MockMachine) SetProviderNetworkConfig ¶
func (m *MockMachine) SetProviderNetworkConfig(arg0 network.InterfaceInfos) (network.ProviderAddresses, bool, error)
SetProviderNetworkConfig mocks base method.
func (*MockMachine) Status ¶
func (m *MockMachine) Status() (params.StatusResult, error)
Status mocks base method.
type MockMachineMockRecorder ¶
type MockMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineMockRecorder is the mock recorder for MockMachine.
func (*MockMachineMockRecorder) Id ¶
func (mr *MockMachineMockRecorder) Id() *gomock.Call
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) InstanceStatus ¶
func (mr *MockMachineMockRecorder) InstanceStatus() *gomock.Call
InstanceStatus indicates an expected call of InstanceStatus.
func (*MockMachineMockRecorder) IsManual ¶
func (mr *MockMachineMockRecorder) IsManual() *gomock.Call
IsManual indicates an expected call of IsManual.
func (*MockMachineMockRecorder) Life ¶
func (mr *MockMachineMockRecorder) Life() *gomock.Call
Life indicates an expected call of Life.
func (*MockMachineMockRecorder) Refresh ¶
func (mr *MockMachineMockRecorder) Refresh() *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockMachineMockRecorder) SetInstanceStatus ¶
func (mr *MockMachineMockRecorder) SetInstanceStatus(arg0, arg1, arg2 any) *gomock.Call
SetInstanceStatus indicates an expected call of SetInstanceStatus.
func (*MockMachineMockRecorder) SetProviderNetworkConfig ¶
func (mr *MockMachineMockRecorder) SetProviderNetworkConfig(arg0 any) *gomock.Call
SetProviderNetworkConfig indicates an expected call of SetProviderNetworkConfig.
func (*MockMachineMockRecorder) Status ¶
func (mr *MockMachineMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockMachineMockRecorder) String ¶
func (mr *MockMachineMockRecorder) String() *gomock.Call
String indicates an expected call of String.
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() watcher.StringsChannel
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) Wait ¶
func (mr *MockStringsWatcherMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.