Documentation ¶
Overview ¶
Package mock_virtualmachines is a generated GoMock package.
Run go generate to regenerate this mock.
Package mock_virtualmachines is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CreateOrUpdate(arg0 context.Context, arg1, arg2 string, arg3 compute.VirtualMachine) error
- func (m *MockClient) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Get(arg0 context.Context, arg1, arg2 string) (compute.VirtualMachine, error)
- type MockClientMockRecorder
- type MockVMScope
- func (m *MockVMScope) AdditionalTags() v1alpha4.Tags
- func (m *MockVMScope) Authorizer() autorest.Authorizer
- func (m *MockVMScope) AvailabilitySet() (string, bool)
- func (m *MockVMScope) AvailabilitySetEnabled() bool
- func (m *MockVMScope) BaseURI() string
- func (m *MockVMScope) ClientID() string
- func (m *MockVMScope) ClientSecret() string
- func (m *MockVMScope) CloudEnvironment() string
- func (m *MockVMScope) CloudProviderConfigOverrides() *v1alpha4.CloudProviderConfigOverrides
- func (m *MockVMScope) ClusterName() string
- func (m *MockVMScope) EXPECT() *MockVMScopeMockRecorder
- func (m *MockVMScope) Enabled() bool
- func (m *MockVMScope) Error(err error, msg string, keysAndValues ...interface{})
- func (m *MockVMScope) GetBootstrapData(ctx context.Context) (string, error)
- func (m *MockVMScope) GetVMImage() (*v1alpha4.Image, error)
- func (m *MockVMScope) HashKey() string
- func (m *MockVMScope) Info(msg string, keysAndValues ...interface{})
- func (m *MockVMScope) Location() string
- func (m *MockVMScope) ProviderID() string
- func (m *MockVMScope) ResourceGroup() string
- func (m *MockVMScope) SetAddresses(arg0 []v1.NodeAddress)
- func (m *MockVMScope) SetAnnotation(arg0, arg1 string)
- func (m *MockVMScope) SetProviderID(arg0 string)
- func (m *MockVMScope) SetVMState(arg0 v1alpha4.ProvisioningState)
- func (m *MockVMScope) SubscriptionID() string
- func (m *MockVMScope) TenantID() string
- func (m *MockVMScope) UpdateStatus()
- func (m *MockVMScope) V(level int) logr.Logger
- func (m *MockVMScope) VMSpec() azure.VMSpec
- func (m *MockVMScope) WithName(name string) logr.Logger
- func (m *MockVMScope) WithValues(keysAndValues ...interface{}) logr.Logger
- type MockVMScopeMockRecorder
- func (mr *MockVMScopeMockRecorder) AdditionalTags() *gomock.Call
- func (mr *MockVMScopeMockRecorder) Authorizer() *gomock.Call
- func (mr *MockVMScopeMockRecorder) AvailabilitySet() *gomock.Call
- func (mr *MockVMScopeMockRecorder) AvailabilitySetEnabled() *gomock.Call
- func (mr *MockVMScopeMockRecorder) BaseURI() *gomock.Call
- func (mr *MockVMScopeMockRecorder) ClientID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) ClientSecret() *gomock.Call
- func (mr *MockVMScopeMockRecorder) CloudEnvironment() *gomock.Call
- func (mr *MockVMScopeMockRecorder) CloudProviderConfigOverrides() *gomock.Call
- func (mr *MockVMScopeMockRecorder) ClusterName() *gomock.Call
- func (mr *MockVMScopeMockRecorder) Enabled() *gomock.Call
- func (mr *MockVMScopeMockRecorder) Error(err, msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) GetBootstrapData(ctx interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) GetVMImage() *gomock.Call
- func (mr *MockVMScopeMockRecorder) HashKey() *gomock.Call
- func (mr *MockVMScopeMockRecorder) Info(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) Location() *gomock.Call
- func (mr *MockVMScopeMockRecorder) ProviderID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) ResourceGroup() *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetAddresses(arg0 interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetAnnotation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetProviderID(arg0 interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetVMState(arg0 interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SubscriptionID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) TenantID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) UpdateStatus() *gomock.Call
- func (mr *MockVMScopeMockRecorder) V(level interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) VMSpec() *gomock.Call
- func (mr *MockVMScopeMockRecorder) WithName(name interface{}) *gomock.Call
- func (mr *MockVMScopeMockRecorder) WithValues(keysAndValues ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CreateOrUpdate ¶
func (m *MockClient) CreateOrUpdate(arg0 context.Context, arg1, arg2 string, arg3 compute.VirtualMachine) error
CreateOrUpdate mocks base method.
func (*MockClient) Delete ¶
func (m *MockClient) Delete(arg0 context.Context, arg1, arg2 string) error
Delete mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Get ¶
func (m *MockClient) Get(arg0 context.Context, arg1, arg2 string) (compute.VirtualMachine, error)
Get mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CreateOrUpdate ¶
func (mr *MockClientMockRecorder) CreateOrUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateOrUpdate indicates an expected call of CreateOrUpdate.
func (*MockClientMockRecorder) Delete ¶
func (mr *MockClientMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockClientMockRecorder) Get ¶
func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockVMScope ¶
type MockVMScope struct {
// contains filtered or unexported fields
}
MockVMScope is a mock of VMScope interface.
func NewMockVMScope ¶
func NewMockVMScope(ctrl *gomock.Controller) *MockVMScope
NewMockVMScope creates a new mock instance.
func (*MockVMScope) AdditionalTags ¶
func (m *MockVMScope) AdditionalTags() v1alpha4.Tags
AdditionalTags mocks base method.
func (*MockVMScope) Authorizer ¶
func (m *MockVMScope) Authorizer() autorest.Authorizer
Authorizer mocks base method.
func (*MockVMScope) AvailabilitySet ¶
func (m *MockVMScope) AvailabilitySet() (string, bool)
AvailabilitySet mocks base method.
func (*MockVMScope) AvailabilitySetEnabled ¶
func (m *MockVMScope) AvailabilitySetEnabled() bool
AvailabilitySetEnabled mocks base method.
func (*MockVMScope) ClientSecret ¶
func (m *MockVMScope) ClientSecret() string
ClientSecret mocks base method.
func (*MockVMScope) CloudEnvironment ¶
func (m *MockVMScope) CloudEnvironment() string
CloudEnvironment mocks base method.
func (*MockVMScope) CloudProviderConfigOverrides ¶
func (m *MockVMScope) CloudProviderConfigOverrides() *v1alpha4.CloudProviderConfigOverrides
CloudProviderConfigOverrides mocks base method.
func (*MockVMScope) ClusterName ¶
func (m *MockVMScope) ClusterName() string
ClusterName mocks base method.
func (*MockVMScope) EXPECT ¶
func (m *MockVMScope) EXPECT() *MockVMScopeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVMScope) Error ¶
func (m *MockVMScope) Error(err error, msg string, keysAndValues ...interface{})
Error mocks base method.
func (*MockVMScope) GetBootstrapData ¶
func (m *MockVMScope) GetBootstrapData(ctx context.Context) (string, error)
GetBootstrapData mocks base method.
func (*MockVMScope) GetVMImage ¶
func (m *MockVMScope) GetVMImage() (*v1alpha4.Image, error)
GetVMImage mocks base method.
func (*MockVMScope) Info ¶
func (m *MockVMScope) Info(msg string, keysAndValues ...interface{})
Info mocks base method.
func (*MockVMScope) ProviderID ¶
func (m *MockVMScope) ProviderID() string
ProviderID mocks base method.
func (*MockVMScope) ResourceGroup ¶
func (m *MockVMScope) ResourceGroup() string
ResourceGroup mocks base method.
func (*MockVMScope) SetAddresses ¶
func (m *MockVMScope) SetAddresses(arg0 []v1.NodeAddress)
SetAddresses mocks base method.
func (*MockVMScope) SetAnnotation ¶
func (m *MockVMScope) SetAnnotation(arg0, arg1 string)
SetAnnotation mocks base method.
func (*MockVMScope) SetProviderID ¶
func (m *MockVMScope) SetProviderID(arg0 string)
SetProviderID mocks base method.
func (*MockVMScope) SetVMState ¶
func (m *MockVMScope) SetVMState(arg0 v1alpha4.ProvisioningState)
SetVMState mocks base method.
func (*MockVMScope) SubscriptionID ¶
func (m *MockVMScope) SubscriptionID() string
SubscriptionID mocks base method.
func (*MockVMScope) UpdateStatus ¶
func (m *MockVMScope) UpdateStatus()
UpdateStatus mocks base method.
func (*MockVMScope) WithName ¶
func (m *MockVMScope) WithName(name string) logr.Logger
WithName mocks base method.
func (*MockVMScope) WithValues ¶
func (m *MockVMScope) WithValues(keysAndValues ...interface{}) logr.Logger
WithValues mocks base method.
type MockVMScopeMockRecorder ¶
type MockVMScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockVMScopeMockRecorder is the mock recorder for MockVMScope.
func (*MockVMScopeMockRecorder) AdditionalTags ¶
func (mr *MockVMScopeMockRecorder) AdditionalTags() *gomock.Call
AdditionalTags indicates an expected call of AdditionalTags.
func (*MockVMScopeMockRecorder) Authorizer ¶
func (mr *MockVMScopeMockRecorder) Authorizer() *gomock.Call
Authorizer indicates an expected call of Authorizer.
func (*MockVMScopeMockRecorder) AvailabilitySet ¶
func (mr *MockVMScopeMockRecorder) AvailabilitySet() *gomock.Call
AvailabilitySet indicates an expected call of AvailabilitySet.
func (*MockVMScopeMockRecorder) AvailabilitySetEnabled ¶
func (mr *MockVMScopeMockRecorder) AvailabilitySetEnabled() *gomock.Call
AvailabilitySetEnabled indicates an expected call of AvailabilitySetEnabled.
func (*MockVMScopeMockRecorder) BaseURI ¶
func (mr *MockVMScopeMockRecorder) BaseURI() *gomock.Call
BaseURI indicates an expected call of BaseURI.
func (*MockVMScopeMockRecorder) ClientID ¶
func (mr *MockVMScopeMockRecorder) ClientID() *gomock.Call
ClientID indicates an expected call of ClientID.
func (*MockVMScopeMockRecorder) ClientSecret ¶
func (mr *MockVMScopeMockRecorder) ClientSecret() *gomock.Call
ClientSecret indicates an expected call of ClientSecret.
func (*MockVMScopeMockRecorder) CloudEnvironment ¶
func (mr *MockVMScopeMockRecorder) CloudEnvironment() *gomock.Call
CloudEnvironment indicates an expected call of CloudEnvironment.
func (*MockVMScopeMockRecorder) CloudProviderConfigOverrides ¶
func (mr *MockVMScopeMockRecorder) CloudProviderConfigOverrides() *gomock.Call
CloudProviderConfigOverrides indicates an expected call of CloudProviderConfigOverrides.
func (*MockVMScopeMockRecorder) ClusterName ¶
func (mr *MockVMScopeMockRecorder) ClusterName() *gomock.Call
ClusterName indicates an expected call of ClusterName.
func (*MockVMScopeMockRecorder) Enabled ¶
func (mr *MockVMScopeMockRecorder) Enabled() *gomock.Call
Enabled indicates an expected call of Enabled.
func (*MockVMScopeMockRecorder) Error ¶
func (mr *MockVMScopeMockRecorder) Error(err, msg interface{}, keysAndValues ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockVMScopeMockRecorder) GetBootstrapData ¶
func (mr *MockVMScopeMockRecorder) GetBootstrapData(ctx interface{}) *gomock.Call
GetBootstrapData indicates an expected call of GetBootstrapData.
func (*MockVMScopeMockRecorder) GetVMImage ¶
func (mr *MockVMScopeMockRecorder) GetVMImage() *gomock.Call
GetVMImage indicates an expected call of GetVMImage.
func (*MockVMScopeMockRecorder) HashKey ¶
func (mr *MockVMScopeMockRecorder) HashKey() *gomock.Call
HashKey indicates an expected call of HashKey.
func (*MockVMScopeMockRecorder) Info ¶
func (mr *MockVMScopeMockRecorder) Info(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockVMScopeMockRecorder) Location ¶
func (mr *MockVMScopeMockRecorder) Location() *gomock.Call
Location indicates an expected call of Location.
func (*MockVMScopeMockRecorder) ProviderID ¶
func (mr *MockVMScopeMockRecorder) ProviderID() *gomock.Call
ProviderID indicates an expected call of ProviderID.
func (*MockVMScopeMockRecorder) ResourceGroup ¶
func (mr *MockVMScopeMockRecorder) ResourceGroup() *gomock.Call
ResourceGroup indicates an expected call of ResourceGroup.
func (*MockVMScopeMockRecorder) SetAddresses ¶
func (mr *MockVMScopeMockRecorder) SetAddresses(arg0 interface{}) *gomock.Call
SetAddresses indicates an expected call of SetAddresses.
func (*MockVMScopeMockRecorder) SetAnnotation ¶
func (mr *MockVMScopeMockRecorder) SetAnnotation(arg0, arg1 interface{}) *gomock.Call
SetAnnotation indicates an expected call of SetAnnotation.
func (*MockVMScopeMockRecorder) SetProviderID ¶
func (mr *MockVMScopeMockRecorder) SetProviderID(arg0 interface{}) *gomock.Call
SetProviderID indicates an expected call of SetProviderID.
func (*MockVMScopeMockRecorder) SetVMState ¶
func (mr *MockVMScopeMockRecorder) SetVMState(arg0 interface{}) *gomock.Call
SetVMState indicates an expected call of SetVMState.
func (*MockVMScopeMockRecorder) SubscriptionID ¶
func (mr *MockVMScopeMockRecorder) SubscriptionID() *gomock.Call
SubscriptionID indicates an expected call of SubscriptionID.
func (*MockVMScopeMockRecorder) TenantID ¶
func (mr *MockVMScopeMockRecorder) TenantID() *gomock.Call
TenantID indicates an expected call of TenantID.
func (*MockVMScopeMockRecorder) UpdateStatus ¶
func (mr *MockVMScopeMockRecorder) UpdateStatus() *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockVMScopeMockRecorder) V ¶
func (mr *MockVMScopeMockRecorder) V(level interface{}) *gomock.Call
V indicates an expected call of V.
func (*MockVMScopeMockRecorder) VMSpec ¶
func (mr *MockVMScopeMockRecorder) VMSpec() *gomock.Call
VMSpec indicates an expected call of VMSpec.
func (*MockVMScopeMockRecorder) WithName ¶
func (mr *MockVMScopeMockRecorder) WithName(name interface{}) *gomock.Call
WithName indicates an expected call of WithName.
func (*MockVMScopeMockRecorder) WithValues ¶
func (mr *MockVMScopeMockRecorder) WithValues(keysAndValues ...interface{}) *gomock.Call
WithValues indicates an expected call of WithValues.