Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../client.go
Generated by this command:
mockgen -destination client_mock.go -package mock_virtualmachines -source ../client.go Client
Package mock_virtualmachines is a generated GoMock package.
Run go generate to regenerate this mock.
Code generated by MockGen. DO NOT EDIT. Source: ../virtualmachines.go
Generated by this command:
mockgen -destination virtualmachines_mock.go -package mock_virtualmachines -source ../virtualmachines.go VMScope
Package mock_virtualmachines is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string, ...) (any, *runtime.Poller[armcompute.VirtualMachinesClientCreateOrUpdateResponse], ...)
- func (m *MockClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string) (*runtime.Poller[armcompute.VirtualMachinesClientDeleteResponse], error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Get(arg0 context.Context, arg1 azure.ResourceSpecGetter) (any, error)
- type MockClientMockRecorder
- type MockVMScope
- func (m *MockVMScope) BaseURI() string
- func (m *MockVMScope) ClientID() string
- func (m *MockVMScope) ClientSecret() string
- func (m *MockVMScope) CloudEnvironment() string
- func (m *MockVMScope) DeleteLongRunningOperationState(arg0, arg1, arg2 string)
- func (m *MockVMScope) EXPECT() *MockVMScopeMockRecorder
- func (m *MockVMScope) GetLongRunningOperationState(arg0, arg1, arg2 string) *v1beta1.Future
- func (m *MockVMScope) HashKey() string
- func (m *MockVMScope) SetAddresses(arg0 []v1.NodeAddress)
- func (m *MockVMScope) SetAnnotation(arg0, arg1 string)
- func (m *MockVMScope) SetConditionFalse(arg0 v1beta10.ConditionType, arg1 string, arg2 v1beta10.ConditionSeverity, ...)
- func (m *MockVMScope) SetLongRunningOperationState(arg0 *v1beta1.Future)
- func (m *MockVMScope) SetProviderID(arg0 string)
- func (m *MockVMScope) SetVMState(arg0 v1beta1.ProvisioningState)
- func (m *MockVMScope) SubscriptionID() string
- func (m *MockVMScope) TenantID() string
- func (m *MockVMScope) Token() azcore.TokenCredential
- func (m *MockVMScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
- func (m *MockVMScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
- func (m *MockVMScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
- func (m *MockVMScope) VMSpec() azure.ResourceSpecGetter
- type MockVMScopeMockRecorder
- 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) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) HashKey() *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetAddresses(arg0 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetAnnotation(arg0, arg1 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetConditionFalse(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetProviderID(arg0 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SetVMState(arg0 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) SubscriptionID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) TenantID() *gomock.Call
- func (mr *MockVMScopeMockRecorder) Token() *gomock.Call
- func (mr *MockVMScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockVMScopeMockRecorder) VMSpec() *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) CreateOrUpdateAsync ¶ added in v1.1.0
func (m *MockClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string, parameters any) (any, *runtime.Poller[armcompute.VirtualMachinesClientCreateOrUpdateResponse], error)
CreateOrUpdateAsync mocks base method.
func (*MockClient) DeleteAsync ¶ added in v1.1.0
func (m *MockClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string) (*runtime.Poller[armcompute.VirtualMachinesClientDeleteResponse], error)
DeleteAsync 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 azure.ResourceSpecGetter) (any, error)
Get mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CreateOrUpdateAsync ¶ added in v1.1.0
func (mr *MockClientMockRecorder) CreateOrUpdateAsync(ctx, spec, resumeToken, parameters any) *gomock.Call
CreateOrUpdateAsync indicates an expected call of CreateOrUpdateAsync.
func (*MockClientMockRecorder) DeleteAsync ¶ added in v1.1.0
func (mr *MockClientMockRecorder) DeleteAsync(ctx, spec, resumeToken any) *gomock.Call
DeleteAsync indicates an expected call of DeleteAsync.
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) ClientSecret ¶
func (m *MockVMScope) ClientSecret() string
ClientSecret mocks base method.
func (*MockVMScope) CloudEnvironment ¶
func (m *MockVMScope) CloudEnvironment() string
CloudEnvironment mocks base method.
func (*MockVMScope) DeleteLongRunningOperationState ¶ added in v1.1.0
func (m *MockVMScope) DeleteLongRunningOperationState(arg0, arg1, arg2 string)
DeleteLongRunningOperationState 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) GetLongRunningOperationState ¶ added in v1.1.0
func (m *MockVMScope) GetLongRunningOperationState(arg0, arg1, arg2 string) *v1beta1.Future
GetLongRunningOperationState 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) SetConditionFalse ¶ added in v1.7.0
func (m *MockVMScope) SetConditionFalse(arg0 v1beta10.ConditionType, arg1 string, arg2 v1beta10.ConditionSeverity, arg3 string)
SetConditionFalse mocks base method.
func (*MockVMScope) SetLongRunningOperationState ¶ added in v1.1.0
func (m *MockVMScope) SetLongRunningOperationState(arg0 *v1beta1.Future)
SetLongRunningOperationState mocks base method.
func (*MockVMScope) SetProviderID ¶
func (m *MockVMScope) SetProviderID(arg0 string)
SetProviderID mocks base method.
func (*MockVMScope) SetVMState ¶
func (m *MockVMScope) SetVMState(arg0 v1beta1.ProvisioningState)
SetVMState mocks base method.
func (*MockVMScope) SubscriptionID ¶
func (m *MockVMScope) SubscriptionID() string
SubscriptionID mocks base method.
func (*MockVMScope) Token ¶ added in v1.11.0
func (m *MockVMScope) Token() azcore.TokenCredential
Token mocks base method.
func (*MockVMScope) UpdateDeleteStatus ¶ added in v1.1.0
func (m *MockVMScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
UpdateDeleteStatus mocks base method.
func (*MockVMScope) UpdatePatchStatus ¶ added in v1.1.0
func (m *MockVMScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
UpdatePatchStatus mocks base method.
func (*MockVMScope) UpdatePutStatus ¶ added in v1.1.0
func (m *MockVMScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error)
UpdatePutStatus mocks base method.
func (*MockVMScope) VMSpec ¶
func (m *MockVMScope) VMSpec() azure.ResourceSpecGetter
VMSpec mocks base method.
type MockVMScopeMockRecorder ¶
type MockVMScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockVMScopeMockRecorder is the mock recorder for MockVMScope.
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) DeleteLongRunningOperationState ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call
DeleteLongRunningOperationState indicates an expected call of DeleteLongRunningOperationState.
func (*MockVMScopeMockRecorder) GetLongRunningOperationState ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call
GetLongRunningOperationState indicates an expected call of GetLongRunningOperationState.
func (*MockVMScopeMockRecorder) HashKey ¶
func (mr *MockVMScopeMockRecorder) HashKey() *gomock.Call
HashKey indicates an expected call of HashKey.
func (*MockVMScopeMockRecorder) SetAddresses ¶
func (mr *MockVMScopeMockRecorder) SetAddresses(arg0 any) *gomock.Call
SetAddresses indicates an expected call of SetAddresses.
func (*MockVMScopeMockRecorder) SetAnnotation ¶
func (mr *MockVMScopeMockRecorder) SetAnnotation(arg0, arg1 any) *gomock.Call
SetAnnotation indicates an expected call of SetAnnotation.
func (*MockVMScopeMockRecorder) SetConditionFalse ¶ added in v1.7.0
func (mr *MockVMScopeMockRecorder) SetConditionFalse(arg0, arg1, arg2, arg3 any) *gomock.Call
SetConditionFalse indicates an expected call of SetConditionFalse.
func (*MockVMScopeMockRecorder) SetLongRunningOperationState ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call
SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState.
func (*MockVMScopeMockRecorder) SetProviderID ¶
func (mr *MockVMScopeMockRecorder) SetProviderID(arg0 any) *gomock.Call
SetProviderID indicates an expected call of SetProviderID.
func (*MockVMScopeMockRecorder) SetVMState ¶
func (mr *MockVMScopeMockRecorder) SetVMState(arg0 any) *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) Token ¶ added in v1.11.0
func (mr *MockVMScopeMockRecorder) Token() *gomock.Call
Token indicates an expected call of Token.
func (*MockVMScopeMockRecorder) UpdateDeleteStatus ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call
UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
func (*MockVMScopeMockRecorder) UpdatePatchStatus ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call
UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
func (*MockVMScopeMockRecorder) UpdatePutStatus ¶ added in v1.1.0
func (mr *MockVMScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call
UpdatePutStatus indicates an expected call of UpdatePutStatus.
func (*MockVMScopeMockRecorder) VMSpec ¶
func (mr *MockVMScopeMockRecorder) VMSpec() *gomock.Call
VMSpec indicates an expected call of VMSpec.