Documentation ¶
Index ¶
- type MockAzureClienter
- func (_m *MockAzureClienter) DeployTemplate(ctx context.Context, resourceGroupName string, deploymentName string, ...) (azure_interface.Pollerer, error)
- func (_m *MockAzureClienter) DestroyResourceGroup(ctx context.Context, resourceGroupName string) error
- func (_m *MockAzureClienter) EXPECT() *MockAzureClienter_Expecter
- func (_m *MockAzureClienter) GetNetworkInterface(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*armnetwork.Interface, error)
- func (_m *MockAzureClienter) GetOrCreateResourceGroup(ctx context.Context, resourceGroupName string, location string, ...) (*armresources.ResourceGroup, error)
- func (_m *MockAzureClienter) GetPublicIPAddress(ctx context.Context, resourceGroupName string, ...) (string, error)
- func (_m *MockAzureClienter) GetResources(ctx context.Context, subscriptionID string, resourceGroupName string, ...) ([]interface{}, error)
- func (_m *MockAzureClienter) GetSKUsByLocation(ctx context.Context, location string) ([]armcompute.ResourceSKU, error)
- func (_m *MockAzureClienter) GetVMExternalIP(ctx context.Context, vmName string, locationData map[string]string) (string, error)
- func (_m *MockAzureClienter) GetVirtualMachine(ctx context.Context, resourceGroupName string, vmName string) (*armcompute.VirtualMachine, error)
- func (_m *MockAzureClienter) ListAllResourceGroups(ctx context.Context) ([]*armresources.ResourceGroup, error)
- func (_m *MockAzureClienter) ListAllResourcesInSubscription(ctx context.Context, subscriptionID string, tags map[string]*string) ([]interface{}, error)
- func (_m *MockAzureClienter) NewSubscriptionListPager(ctx context.Context, options *armsubscription.SubscriptionsClientListOptions) *runtime.Pager[armsubscription.SubscriptionsClientListResponse]
- func (_m *MockAzureClienter) ResourceGroupExists(ctx context.Context, resourceGroupName string) (bool, error)
- func (_m *MockAzureClienter) ValidateMachineType(ctx context.Context, location string, vmSize string) (bool, error)
- type MockAzureClienter_DeployTemplate_Call
- func (_c *MockAzureClienter_DeployTemplate_Call) Return(_a0 azure_interface.Pollerer, _a1 error) *MockAzureClienter_DeployTemplate_Call
- func (_c *MockAzureClienter_DeployTemplate_Call) Run(...) *MockAzureClienter_DeployTemplate_Call
- func (_c *MockAzureClienter_DeployTemplate_Call) RunAndReturn(...) *MockAzureClienter_DeployTemplate_Call
- type MockAzureClienter_DestroyResourceGroup_Call
- func (_c *MockAzureClienter_DestroyResourceGroup_Call) Return(_a0 error) *MockAzureClienter_DestroyResourceGroup_Call
- func (_c *MockAzureClienter_DestroyResourceGroup_Call) Run(run func(ctx context.Context, resourceGroupName string)) *MockAzureClienter_DestroyResourceGroup_Call
- func (_c *MockAzureClienter_DestroyResourceGroup_Call) RunAndReturn(run func(context.Context, string) error) *MockAzureClienter_DestroyResourceGroup_Call
- type MockAzureClienter_Expecter
- func (_e *MockAzureClienter_Expecter) DeployTemplate(ctx interface{}, resourceGroupName interface{}, deploymentName interface{}, ...) *MockAzureClienter_DeployTemplate_Call
- func (_e *MockAzureClienter_Expecter) DestroyResourceGroup(ctx interface{}, resourceGroupName interface{}) *MockAzureClienter_DestroyResourceGroup_Call
- func (_e *MockAzureClienter_Expecter) GetNetworkInterface(ctx interface{}, resourceGroupName interface{}, ...) *MockAzureClienter_GetNetworkInterface_Call
- func (_e *MockAzureClienter_Expecter) GetOrCreateResourceGroup(ctx interface{}, resourceGroupName interface{}, location interface{}, ...) *MockAzureClienter_GetOrCreateResourceGroup_Call
- func (_e *MockAzureClienter_Expecter) GetPublicIPAddress(ctx interface{}, resourceGroupName interface{}, publicIPAddress interface{}) *MockAzureClienter_GetPublicIPAddress_Call
- func (_e *MockAzureClienter_Expecter) GetResources(ctx interface{}, subscriptionID interface{}, resourceGroupName interface{}, ...) *MockAzureClienter_GetResources_Call
- func (_e *MockAzureClienter_Expecter) GetSKUsByLocation(ctx interface{}, location interface{}) *MockAzureClienter_GetSKUsByLocation_Call
- func (_e *MockAzureClienter_Expecter) GetVMExternalIP(ctx interface{}, vmName interface{}, locationData interface{}) *MockAzureClienter_GetVMExternalIP_Call
- func (_e *MockAzureClienter_Expecter) GetVirtualMachine(ctx interface{}, resourceGroupName interface{}, vmName interface{}) *MockAzureClienter_GetVirtualMachine_Call
- func (_e *MockAzureClienter_Expecter) ListAllResourceGroups(ctx interface{}) *MockAzureClienter_ListAllResourceGroups_Call
- func (_e *MockAzureClienter_Expecter) ListAllResourcesInSubscription(ctx interface{}, subscriptionID interface{}, tags interface{}) *MockAzureClienter_ListAllResourcesInSubscription_Call
- func (_e *MockAzureClienter_Expecter) NewSubscriptionListPager(ctx interface{}, options interface{}) *MockAzureClienter_NewSubscriptionListPager_Call
- func (_e *MockAzureClienter_Expecter) ResourceGroupExists(ctx interface{}, resourceGroupName interface{}) *MockAzureClienter_ResourceGroupExists_Call
- func (_e *MockAzureClienter_Expecter) ValidateMachineType(ctx interface{}, location interface{}, vmSize interface{}) *MockAzureClienter_ValidateMachineType_Call
- type MockAzureClienter_GetNetworkInterface_Call
- func (_c *MockAzureClienter_GetNetworkInterface_Call) Return(_a0 *armnetwork.Interface, _a1 error) *MockAzureClienter_GetNetworkInterface_Call
- func (_c *MockAzureClienter_GetNetworkInterface_Call) Run(...) *MockAzureClienter_GetNetworkInterface_Call
- func (_c *MockAzureClienter_GetNetworkInterface_Call) RunAndReturn(run func(context.Context, string, string) (*armnetwork.Interface, error)) *MockAzureClienter_GetNetworkInterface_Call
- type MockAzureClienter_GetOrCreateResourceGroup_Call
- func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) Return(_a0 *armresources.ResourceGroup, _a1 error) *MockAzureClienter_GetOrCreateResourceGroup_Call
- func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) Run(run func(ctx context.Context, resourceGroupName string, location string, ...)) *MockAzureClienter_GetOrCreateResourceGroup_Call
- func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) RunAndReturn(...) *MockAzureClienter_GetOrCreateResourceGroup_Call
- type MockAzureClienter_GetPublicIPAddress_Call
- func (_c *MockAzureClienter_GetPublicIPAddress_Call) Return(_a0 string, _a1 error) *MockAzureClienter_GetPublicIPAddress_Call
- func (_c *MockAzureClienter_GetPublicIPAddress_Call) Run(run func(ctx context.Context, resourceGroupName string, ...)) *MockAzureClienter_GetPublicIPAddress_Call
- func (_c *MockAzureClienter_GetPublicIPAddress_Call) RunAndReturn(run func(context.Context, string, *armnetwork.PublicIPAddress) (string, error)) *MockAzureClienter_GetPublicIPAddress_Call
- type MockAzureClienter_GetResources_Call
- func (_c *MockAzureClienter_GetResources_Call) Return(_a0 []interface{}, _a1 error) *MockAzureClienter_GetResources_Call
- func (_c *MockAzureClienter_GetResources_Call) Run(...) *MockAzureClienter_GetResources_Call
- func (_c *MockAzureClienter_GetResources_Call) RunAndReturn(...) *MockAzureClienter_GetResources_Call
- type MockAzureClienter_GetSKUsByLocation_Call
- func (_c *MockAzureClienter_GetSKUsByLocation_Call) Return(_a0 []armcompute.ResourceSKU, _a1 error) *MockAzureClienter_GetSKUsByLocation_Call
- func (_c *MockAzureClienter_GetSKUsByLocation_Call) Run(run func(ctx context.Context, location string)) *MockAzureClienter_GetSKUsByLocation_Call
- func (_c *MockAzureClienter_GetSKUsByLocation_Call) RunAndReturn(run func(context.Context, string) ([]armcompute.ResourceSKU, error)) *MockAzureClienter_GetSKUsByLocation_Call
- type MockAzureClienter_GetVMExternalIP_Call
- func (_c *MockAzureClienter_GetVMExternalIP_Call) Return(_a0 string, _a1 error) *MockAzureClienter_GetVMExternalIP_Call
- func (_c *MockAzureClienter_GetVMExternalIP_Call) Run(run func(ctx context.Context, vmName string, locationData map[string]string)) *MockAzureClienter_GetVMExternalIP_Call
- func (_c *MockAzureClienter_GetVMExternalIP_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *MockAzureClienter_GetVMExternalIP_Call
- type MockAzureClienter_GetVirtualMachine_Call
- func (_c *MockAzureClienter_GetVirtualMachine_Call) Return(_a0 *armcompute.VirtualMachine, _a1 error) *MockAzureClienter_GetVirtualMachine_Call
- func (_c *MockAzureClienter_GetVirtualMachine_Call) Run(run func(ctx context.Context, resourceGroupName string, vmName string)) *MockAzureClienter_GetVirtualMachine_Call
- func (_c *MockAzureClienter_GetVirtualMachine_Call) RunAndReturn(run func(context.Context, string, string) (*armcompute.VirtualMachine, error)) *MockAzureClienter_GetVirtualMachine_Call
- type MockAzureClienter_ListAllResourceGroups_Call
- func (_c *MockAzureClienter_ListAllResourceGroups_Call) Return(_a0 []*armresources.ResourceGroup, _a1 error) *MockAzureClienter_ListAllResourceGroups_Call
- func (_c *MockAzureClienter_ListAllResourceGroups_Call) Run(run func(ctx context.Context)) *MockAzureClienter_ListAllResourceGroups_Call
- func (_c *MockAzureClienter_ListAllResourceGroups_Call) RunAndReturn(run func(context.Context) ([]*armresources.ResourceGroup, error)) *MockAzureClienter_ListAllResourceGroups_Call
- type MockAzureClienter_ListAllResourcesInSubscription_Call
- func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) Return(_a0 []interface{}, _a1 error) *MockAzureClienter_ListAllResourcesInSubscription_Call
- func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) Run(run func(ctx context.Context, subscriptionID string, tags map[string]*string)) *MockAzureClienter_ListAllResourcesInSubscription_Call
- func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) RunAndReturn(run func(context.Context, string, map[string]*string) ([]interface{}, error)) *MockAzureClienter_ListAllResourcesInSubscription_Call
- type MockAzureClienter_NewSubscriptionListPager_Call
- func (_c *MockAzureClienter_NewSubscriptionListPager_Call) Return(_a0 *runtime.Pager[armsubscription.SubscriptionsClientListResponse]) *MockAzureClienter_NewSubscriptionListPager_Call
- func (_c *MockAzureClienter_NewSubscriptionListPager_Call) Run(...) *MockAzureClienter_NewSubscriptionListPager_Call
- func (_c *MockAzureClienter_NewSubscriptionListPager_Call) RunAndReturn(...) *MockAzureClienter_NewSubscriptionListPager_Call
- type MockAzureClienter_ResourceGroupExists_Call
- func (_c *MockAzureClienter_ResourceGroupExists_Call) Return(_a0 bool, _a1 error) *MockAzureClienter_ResourceGroupExists_Call
- func (_c *MockAzureClienter_ResourceGroupExists_Call) Run(run func(ctx context.Context, resourceGroupName string)) *MockAzureClienter_ResourceGroupExists_Call
- func (_c *MockAzureClienter_ResourceGroupExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockAzureClienter_ResourceGroupExists_Call
- type MockAzureClienter_ValidateMachineType_Call
- func (_c *MockAzureClienter_ValidateMachineType_Call) Return(_a0 bool, _a1 error) *MockAzureClienter_ValidateMachineType_Call
- func (_c *MockAzureClienter_ValidateMachineType_Call) Run(run func(ctx context.Context, location string, vmSize string)) *MockAzureClienter_ValidateMachineType_Call
- func (_c *MockAzureClienter_ValidateMachineType_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockAzureClienter_ValidateMachineType_Call
- type MockPollerer
- func (_m *MockPollerer) Done() bool
- func (_m *MockPollerer) EXPECT() *MockPollerer_Expecter
- func (_m *MockPollerer) Poll(ctx context.Context) (*http.Response, error)
- func (_m *MockPollerer) PollUntilDone(ctx context.Context, options *runtime.PollUntilDoneOptions) (armresources.DeploymentsClientCreateOrUpdateResponse, error)
- func (_m *MockPollerer) Result(ctx context.Context) (armresources.DeploymentsClientCreateOrUpdateResponse, error)
- func (_m *MockPollerer) ResumeToken() (string, error)
- type MockPollerer_Done_Call
- type MockPollerer_Expecter
- func (_e *MockPollerer_Expecter) Done() *MockPollerer_Done_Call
- func (_e *MockPollerer_Expecter) Poll(ctx interface{}) *MockPollerer_Poll_Call
- func (_e *MockPollerer_Expecter) PollUntilDone(ctx interface{}, options interface{}) *MockPollerer_PollUntilDone_Call
- func (_e *MockPollerer_Expecter) Result(ctx interface{}) *MockPollerer_Result_Call
- func (_e *MockPollerer_Expecter) ResumeToken() *MockPollerer_ResumeToken_Call
- type MockPollerer_PollUntilDone_Call
- func (_c *MockPollerer_PollUntilDone_Call) Return(_a0 armresources.DeploymentsClientCreateOrUpdateResponse, _a1 error) *MockPollerer_PollUntilDone_Call
- func (_c *MockPollerer_PollUntilDone_Call) Run(run func(ctx context.Context, options *runtime.PollUntilDoneOptions)) *MockPollerer_PollUntilDone_Call
- func (_c *MockPollerer_PollUntilDone_Call) RunAndReturn(...) *MockPollerer_PollUntilDone_Call
- type MockPollerer_Poll_Call
- func (_c *MockPollerer_Poll_Call) Return(_a0 *http.Response, _a1 error) *MockPollerer_Poll_Call
- func (_c *MockPollerer_Poll_Call) Run(run func(ctx context.Context)) *MockPollerer_Poll_Call
- func (_c *MockPollerer_Poll_Call) RunAndReturn(run func(context.Context) (*http.Response, error)) *MockPollerer_Poll_Call
- type MockPollerer_Result_Call
- func (_c *MockPollerer_Result_Call) Return(_a0 armresources.DeploymentsClientCreateOrUpdateResponse, _a1 error) *MockPollerer_Result_Call
- func (_c *MockPollerer_Result_Call) Run(run func(ctx context.Context)) *MockPollerer_Result_Call
- func (_c *MockPollerer_Result_Call) RunAndReturn(...) *MockPollerer_Result_Call
- type MockPollerer_ResumeToken_Call
- func (_c *MockPollerer_ResumeToken_Call) Return(_a0 string, _a1 error) *MockPollerer_ResumeToken_Call
- func (_c *MockPollerer_ResumeToken_Call) Run(run func()) *MockPollerer_ResumeToken_Call
- func (_c *MockPollerer_ResumeToken_Call) RunAndReturn(run func() (string, error)) *MockPollerer_ResumeToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAzureClienter ¶
MockAzureClienter is an autogenerated mock type for the AzureClienter type
func NewMockAzureClienter ¶
func NewMockAzureClienter(t interface { mock.TestingT Cleanup(func()) }) *MockAzureClienter
NewMockAzureClienter creates a new instance of MockAzureClienter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAzureClienter) DeployTemplate ¶
func (_m *MockAzureClienter) DeployTemplate(ctx context.Context, resourceGroupName string, deploymentName string, template map[string]interface{}, params map[string]interface{}, tags map[string]*string) (azure_interface.Pollerer, error)
DeployTemplate provides a mock function with given fields: ctx, resourceGroupName, deploymentName, template, params, tags
func (*MockAzureClienter) DestroyResourceGroup ¶
func (_m *MockAzureClienter) DestroyResourceGroup(ctx context.Context, resourceGroupName string) error
DestroyResourceGroup provides a mock function with given fields: ctx, resourceGroupName
func (*MockAzureClienter) EXPECT ¶
func (_m *MockAzureClienter) EXPECT() *MockAzureClienter_Expecter
func (*MockAzureClienter) GetNetworkInterface ¶
func (_m *MockAzureClienter) GetNetworkInterface(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*armnetwork.Interface, error)
GetNetworkInterface provides a mock function with given fields: ctx, resourceGroupName, networkInterfaceName
func (*MockAzureClienter) GetOrCreateResourceGroup ¶
func (_m *MockAzureClienter) GetOrCreateResourceGroup(ctx context.Context, resourceGroupName string, location string, tags map[string]string) (*armresources.ResourceGroup, error)
GetOrCreateResourceGroup provides a mock function with given fields: ctx, resourceGroupName, location, tags
func (*MockAzureClienter) GetPublicIPAddress ¶
func (_m *MockAzureClienter) GetPublicIPAddress(ctx context.Context, resourceGroupName string, publicIPAddress *armnetwork.PublicIPAddress) (string, error)
GetPublicIPAddress provides a mock function with given fields: ctx, resourceGroupName, publicIPAddress
func (*MockAzureClienter) GetResources ¶
func (_m *MockAzureClienter) GetResources(ctx context.Context, subscriptionID string, resourceGroupName string, tags map[string]*string) ([]interface{}, error)
GetResources provides a mock function with given fields: ctx, subscriptionID, resourceGroupName, tags
func (*MockAzureClienter) GetSKUsByLocation ¶
func (_m *MockAzureClienter) GetSKUsByLocation(ctx context.Context, location string) ([]armcompute.ResourceSKU, error)
GetSKUsByLocation provides a mock function with given fields: ctx, location
func (*MockAzureClienter) GetVMExternalIP ¶
func (_m *MockAzureClienter) GetVMExternalIP(ctx context.Context, vmName string, locationData map[string]string) (string, error)
GetVMExternalIP provides a mock function with given fields: ctx, vmName, locationData
func (*MockAzureClienter) GetVirtualMachine ¶
func (_m *MockAzureClienter) GetVirtualMachine(ctx context.Context, resourceGroupName string, vmName string) (*armcompute.VirtualMachine, error)
GetVirtualMachine provides a mock function with given fields: ctx, resourceGroupName, vmName
func (*MockAzureClienter) ListAllResourceGroups ¶
func (_m *MockAzureClienter) ListAllResourceGroups(ctx context.Context) ([]*armresources.ResourceGroup, error)
ListAllResourceGroups provides a mock function with given fields: ctx
func (*MockAzureClienter) ListAllResourcesInSubscription ¶
func (_m *MockAzureClienter) ListAllResourcesInSubscription(ctx context.Context, subscriptionID string, tags map[string]*string) ([]interface{}, error)
ListAllResourcesInSubscription provides a mock function with given fields: ctx, subscriptionID, tags
func (*MockAzureClienter) NewSubscriptionListPager ¶
func (_m *MockAzureClienter) NewSubscriptionListPager(ctx context.Context, options *armsubscription.SubscriptionsClientListOptions) *runtime.Pager[armsubscription.SubscriptionsClientListResponse]
NewSubscriptionListPager provides a mock function with given fields: ctx, options
func (*MockAzureClienter) ResourceGroupExists ¶
func (_m *MockAzureClienter) ResourceGroupExists(ctx context.Context, resourceGroupName string) (bool, error)
ResourceGroupExists provides a mock function with given fields: ctx, resourceGroupName
func (*MockAzureClienter) ValidateMachineType ¶
func (_m *MockAzureClienter) ValidateMachineType(ctx context.Context, location string, vmSize string) (bool, error)
ValidateMachineType provides a mock function with given fields: ctx, location, vmSize
type MockAzureClienter_DeployTemplate_Call ¶
MockAzureClienter_DeployTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeployTemplate'
func (*MockAzureClienter_DeployTemplate_Call) Return ¶
func (_c *MockAzureClienter_DeployTemplate_Call) Return(_a0 azure_interface.Pollerer, _a1 error) *MockAzureClienter_DeployTemplate_Call
func (*MockAzureClienter_DeployTemplate_Call) Run ¶
func (_c *MockAzureClienter_DeployTemplate_Call) Run(run func(ctx context.Context, resourceGroupName string, deploymentName string, template map[string]interface{}, params map[string]interface{}, tags map[string]*string)) *MockAzureClienter_DeployTemplate_Call
func (*MockAzureClienter_DeployTemplate_Call) RunAndReturn ¶
func (_c *MockAzureClienter_DeployTemplate_Call) RunAndReturn(run func(context.Context, string, string, map[string]interface{}, map[string]interface{}, map[string]*string) (azure_interface.Pollerer, error)) *MockAzureClienter_DeployTemplate_Call
type MockAzureClienter_DestroyResourceGroup_Call ¶
MockAzureClienter_DestroyResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestroyResourceGroup'
func (*MockAzureClienter_DestroyResourceGroup_Call) Return ¶
func (_c *MockAzureClienter_DestroyResourceGroup_Call) Return(_a0 error) *MockAzureClienter_DestroyResourceGroup_Call
func (*MockAzureClienter_DestroyResourceGroup_Call) Run ¶
func (_c *MockAzureClienter_DestroyResourceGroup_Call) Run(run func(ctx context.Context, resourceGroupName string)) *MockAzureClienter_DestroyResourceGroup_Call
func (*MockAzureClienter_DestroyResourceGroup_Call) RunAndReturn ¶
func (_c *MockAzureClienter_DestroyResourceGroup_Call) RunAndReturn(run func(context.Context, string) error) *MockAzureClienter_DestroyResourceGroup_Call
type MockAzureClienter_Expecter ¶
type MockAzureClienter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAzureClienter_Expecter) DeployTemplate ¶
func (_e *MockAzureClienter_Expecter) DeployTemplate(ctx interface{}, resourceGroupName interface{}, deploymentName interface{}, template interface{}, params interface{}, tags interface{}) *MockAzureClienter_DeployTemplate_Call
DeployTemplate is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
- deploymentName string
- template map[string]interface{}
- params map[string]interface{}
- tags map[string]*string
func (*MockAzureClienter_Expecter) DestroyResourceGroup ¶
func (_e *MockAzureClienter_Expecter) DestroyResourceGroup(ctx interface{}, resourceGroupName interface{}) *MockAzureClienter_DestroyResourceGroup_Call
DestroyResourceGroup is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
func (*MockAzureClienter_Expecter) GetNetworkInterface ¶
func (_e *MockAzureClienter_Expecter) GetNetworkInterface(ctx interface{}, resourceGroupName interface{}, networkInterfaceName interface{}) *MockAzureClienter_GetNetworkInterface_Call
GetNetworkInterface is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
- networkInterfaceName string
func (*MockAzureClienter_Expecter) GetOrCreateResourceGroup ¶
func (_e *MockAzureClienter_Expecter) GetOrCreateResourceGroup(ctx interface{}, resourceGroupName interface{}, location interface{}, tags interface{}) *MockAzureClienter_GetOrCreateResourceGroup_Call
GetOrCreateResourceGroup is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
- location string
- tags map[string]string
func (*MockAzureClienter_Expecter) GetPublicIPAddress ¶
func (_e *MockAzureClienter_Expecter) GetPublicIPAddress(ctx interface{}, resourceGroupName interface{}, publicIPAddress interface{}) *MockAzureClienter_GetPublicIPAddress_Call
GetPublicIPAddress is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
- publicIPAddress *armnetwork.PublicIPAddress
func (*MockAzureClienter_Expecter) GetResources ¶
func (_e *MockAzureClienter_Expecter) GetResources(ctx interface{}, subscriptionID interface{}, resourceGroupName interface{}, tags interface{}) *MockAzureClienter_GetResources_Call
GetResources is a helper method to define mock.On call
- ctx context.Context
- subscriptionID string
- resourceGroupName string
- tags map[string]*string
func (*MockAzureClienter_Expecter) GetSKUsByLocation ¶
func (_e *MockAzureClienter_Expecter) GetSKUsByLocation(ctx interface{}, location interface{}) *MockAzureClienter_GetSKUsByLocation_Call
GetSKUsByLocation is a helper method to define mock.On call
- ctx context.Context
- location string
func (*MockAzureClienter_Expecter) GetVMExternalIP ¶
func (_e *MockAzureClienter_Expecter) GetVMExternalIP(ctx interface{}, vmName interface{}, locationData interface{}) *MockAzureClienter_GetVMExternalIP_Call
GetVMExternalIP is a helper method to define mock.On call
- ctx context.Context
- vmName string
- locationData map[string]string
func (*MockAzureClienter_Expecter) GetVirtualMachine ¶
func (_e *MockAzureClienter_Expecter) GetVirtualMachine(ctx interface{}, resourceGroupName interface{}, vmName interface{}) *MockAzureClienter_GetVirtualMachine_Call
GetVirtualMachine is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
- vmName string
func (*MockAzureClienter_Expecter) ListAllResourceGroups ¶
func (_e *MockAzureClienter_Expecter) ListAllResourceGroups(ctx interface{}) *MockAzureClienter_ListAllResourceGroups_Call
ListAllResourceGroups is a helper method to define mock.On call
- ctx context.Context
func (*MockAzureClienter_Expecter) ListAllResourcesInSubscription ¶
func (_e *MockAzureClienter_Expecter) ListAllResourcesInSubscription(ctx interface{}, subscriptionID interface{}, tags interface{}) *MockAzureClienter_ListAllResourcesInSubscription_Call
ListAllResourcesInSubscription is a helper method to define mock.On call
- ctx context.Context
- subscriptionID string
- tags map[string]*string
func (*MockAzureClienter_Expecter) NewSubscriptionListPager ¶
func (_e *MockAzureClienter_Expecter) NewSubscriptionListPager(ctx interface{}, options interface{}) *MockAzureClienter_NewSubscriptionListPager_Call
NewSubscriptionListPager is a helper method to define mock.On call
- ctx context.Context
- options *armsubscription.SubscriptionsClientListOptions
func (*MockAzureClienter_Expecter) ResourceGroupExists ¶
func (_e *MockAzureClienter_Expecter) ResourceGroupExists(ctx interface{}, resourceGroupName interface{}) *MockAzureClienter_ResourceGroupExists_Call
ResourceGroupExists is a helper method to define mock.On call
- ctx context.Context
- resourceGroupName string
func (*MockAzureClienter_Expecter) ValidateMachineType ¶
func (_e *MockAzureClienter_Expecter) ValidateMachineType(ctx interface{}, location interface{}, vmSize interface{}) *MockAzureClienter_ValidateMachineType_Call
ValidateMachineType is a helper method to define mock.On call
- ctx context.Context
- location string
- vmSize string
type MockAzureClienter_GetNetworkInterface_Call ¶
MockAzureClienter_GetNetworkInterface_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetworkInterface'
func (*MockAzureClienter_GetNetworkInterface_Call) Return ¶
func (_c *MockAzureClienter_GetNetworkInterface_Call) Return(_a0 *armnetwork.Interface, _a1 error) *MockAzureClienter_GetNetworkInterface_Call
func (*MockAzureClienter_GetNetworkInterface_Call) Run ¶
func (_c *MockAzureClienter_GetNetworkInterface_Call) Run(run func(ctx context.Context, resourceGroupName string, networkInterfaceName string)) *MockAzureClienter_GetNetworkInterface_Call
func (*MockAzureClienter_GetNetworkInterface_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetNetworkInterface_Call) RunAndReturn(run func(context.Context, string, string) (*armnetwork.Interface, error)) *MockAzureClienter_GetNetworkInterface_Call
type MockAzureClienter_GetOrCreateResourceGroup_Call ¶
MockAzureClienter_GetOrCreateResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreateResourceGroup'
func (*MockAzureClienter_GetOrCreateResourceGroup_Call) Return ¶
func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) Return(_a0 *armresources.ResourceGroup, _a1 error) *MockAzureClienter_GetOrCreateResourceGroup_Call
func (*MockAzureClienter_GetOrCreateResourceGroup_Call) Run ¶
func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) Run(run func(ctx context.Context, resourceGroupName string, location string, tags map[string]string)) *MockAzureClienter_GetOrCreateResourceGroup_Call
func (*MockAzureClienter_GetOrCreateResourceGroup_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetOrCreateResourceGroup_Call) RunAndReturn(run func(context.Context, string, string, map[string]string) (*armresources.ResourceGroup, error)) *MockAzureClienter_GetOrCreateResourceGroup_Call
type MockAzureClienter_GetPublicIPAddress_Call ¶
MockAzureClienter_GetPublicIPAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublicIPAddress'
func (*MockAzureClienter_GetPublicIPAddress_Call) Return ¶
func (_c *MockAzureClienter_GetPublicIPAddress_Call) Return(_a0 string, _a1 error) *MockAzureClienter_GetPublicIPAddress_Call
func (*MockAzureClienter_GetPublicIPAddress_Call) Run ¶
func (_c *MockAzureClienter_GetPublicIPAddress_Call) Run(run func(ctx context.Context, resourceGroupName string, publicIPAddress *armnetwork.PublicIPAddress)) *MockAzureClienter_GetPublicIPAddress_Call
func (*MockAzureClienter_GetPublicIPAddress_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetPublicIPAddress_Call) RunAndReturn(run func(context.Context, string, *armnetwork.PublicIPAddress) (string, error)) *MockAzureClienter_GetPublicIPAddress_Call
type MockAzureClienter_GetResources_Call ¶
MockAzureClienter_GetResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResources'
func (*MockAzureClienter_GetResources_Call) Return ¶
func (_c *MockAzureClienter_GetResources_Call) Return(_a0 []interface{}, _a1 error) *MockAzureClienter_GetResources_Call
func (*MockAzureClienter_GetResources_Call) Run ¶
func (_c *MockAzureClienter_GetResources_Call) Run(run func(ctx context.Context, subscriptionID string, resourceGroupName string, tags map[string]*string)) *MockAzureClienter_GetResources_Call
func (*MockAzureClienter_GetResources_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetResources_Call) RunAndReturn(run func(context.Context, string, string, map[string]*string) ([]interface{}, error)) *MockAzureClienter_GetResources_Call
type MockAzureClienter_GetSKUsByLocation_Call ¶
MockAzureClienter_GetSKUsByLocation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSKUsByLocation'
func (*MockAzureClienter_GetSKUsByLocation_Call) Return ¶
func (_c *MockAzureClienter_GetSKUsByLocation_Call) Return(_a0 []armcompute.ResourceSKU, _a1 error) *MockAzureClienter_GetSKUsByLocation_Call
func (*MockAzureClienter_GetSKUsByLocation_Call) Run ¶
func (_c *MockAzureClienter_GetSKUsByLocation_Call) Run(run func(ctx context.Context, location string)) *MockAzureClienter_GetSKUsByLocation_Call
func (*MockAzureClienter_GetSKUsByLocation_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetSKUsByLocation_Call) RunAndReturn(run func(context.Context, string) ([]armcompute.ResourceSKU, error)) *MockAzureClienter_GetSKUsByLocation_Call
type MockAzureClienter_GetVMExternalIP_Call ¶
MockAzureClienter_GetVMExternalIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVMExternalIP'
func (*MockAzureClienter_GetVMExternalIP_Call) Return ¶
func (_c *MockAzureClienter_GetVMExternalIP_Call) Return(_a0 string, _a1 error) *MockAzureClienter_GetVMExternalIP_Call
func (*MockAzureClienter_GetVMExternalIP_Call) Run ¶
func (_c *MockAzureClienter_GetVMExternalIP_Call) Run(run func(ctx context.Context, vmName string, locationData map[string]string)) *MockAzureClienter_GetVMExternalIP_Call
func (*MockAzureClienter_GetVMExternalIP_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetVMExternalIP_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *MockAzureClienter_GetVMExternalIP_Call
type MockAzureClienter_GetVirtualMachine_Call ¶
MockAzureClienter_GetVirtualMachine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVirtualMachine'
func (*MockAzureClienter_GetVirtualMachine_Call) Return ¶
func (_c *MockAzureClienter_GetVirtualMachine_Call) Return(_a0 *armcompute.VirtualMachine, _a1 error) *MockAzureClienter_GetVirtualMachine_Call
func (*MockAzureClienter_GetVirtualMachine_Call) Run ¶
func (_c *MockAzureClienter_GetVirtualMachine_Call) Run(run func(ctx context.Context, resourceGroupName string, vmName string)) *MockAzureClienter_GetVirtualMachine_Call
func (*MockAzureClienter_GetVirtualMachine_Call) RunAndReturn ¶
func (_c *MockAzureClienter_GetVirtualMachine_Call) RunAndReturn(run func(context.Context, string, string) (*armcompute.VirtualMachine, error)) *MockAzureClienter_GetVirtualMachine_Call
type MockAzureClienter_ListAllResourceGroups_Call ¶
MockAzureClienter_ListAllResourceGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllResourceGroups'
func (*MockAzureClienter_ListAllResourceGroups_Call) Return ¶
func (_c *MockAzureClienter_ListAllResourceGroups_Call) Return(_a0 []*armresources.ResourceGroup, _a1 error) *MockAzureClienter_ListAllResourceGroups_Call
func (*MockAzureClienter_ListAllResourceGroups_Call) Run ¶
func (_c *MockAzureClienter_ListAllResourceGroups_Call) Run(run func(ctx context.Context)) *MockAzureClienter_ListAllResourceGroups_Call
func (*MockAzureClienter_ListAllResourceGroups_Call) RunAndReturn ¶
func (_c *MockAzureClienter_ListAllResourceGroups_Call) RunAndReturn(run func(context.Context) ([]*armresources.ResourceGroup, error)) *MockAzureClienter_ListAllResourceGroups_Call
type MockAzureClienter_ListAllResourcesInSubscription_Call ¶
MockAzureClienter_ListAllResourcesInSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllResourcesInSubscription'
func (*MockAzureClienter_ListAllResourcesInSubscription_Call) Return ¶
func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) Return(_a0 []interface{}, _a1 error) *MockAzureClienter_ListAllResourcesInSubscription_Call
func (*MockAzureClienter_ListAllResourcesInSubscription_Call) Run ¶
func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) Run(run func(ctx context.Context, subscriptionID string, tags map[string]*string)) *MockAzureClienter_ListAllResourcesInSubscription_Call
func (*MockAzureClienter_ListAllResourcesInSubscription_Call) RunAndReturn ¶
func (_c *MockAzureClienter_ListAllResourcesInSubscription_Call) RunAndReturn(run func(context.Context, string, map[string]*string) ([]interface{}, error)) *MockAzureClienter_ListAllResourcesInSubscription_Call
type MockAzureClienter_NewSubscriptionListPager_Call ¶
MockAzureClienter_NewSubscriptionListPager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSubscriptionListPager'
func (*MockAzureClienter_NewSubscriptionListPager_Call) Run ¶
func (_c *MockAzureClienter_NewSubscriptionListPager_Call) Run(run func(ctx context.Context, options *armsubscription.SubscriptionsClientListOptions)) *MockAzureClienter_NewSubscriptionListPager_Call
func (*MockAzureClienter_NewSubscriptionListPager_Call) RunAndReturn ¶
type MockAzureClienter_ResourceGroupExists_Call ¶
MockAzureClienter_ResourceGroupExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResourceGroupExists'
func (*MockAzureClienter_ResourceGroupExists_Call) Return ¶
func (_c *MockAzureClienter_ResourceGroupExists_Call) Return(_a0 bool, _a1 error) *MockAzureClienter_ResourceGroupExists_Call
func (*MockAzureClienter_ResourceGroupExists_Call) Run ¶
func (_c *MockAzureClienter_ResourceGroupExists_Call) Run(run func(ctx context.Context, resourceGroupName string)) *MockAzureClienter_ResourceGroupExists_Call
func (*MockAzureClienter_ResourceGroupExists_Call) RunAndReturn ¶
func (_c *MockAzureClienter_ResourceGroupExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockAzureClienter_ResourceGroupExists_Call
type MockAzureClienter_ValidateMachineType_Call ¶
MockAzureClienter_ValidateMachineType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateMachineType'
func (*MockAzureClienter_ValidateMachineType_Call) Return ¶
func (_c *MockAzureClienter_ValidateMachineType_Call) Return(_a0 bool, _a1 error) *MockAzureClienter_ValidateMachineType_Call
func (*MockAzureClienter_ValidateMachineType_Call) Run ¶
func (_c *MockAzureClienter_ValidateMachineType_Call) Run(run func(ctx context.Context, location string, vmSize string)) *MockAzureClienter_ValidateMachineType_Call
func (*MockAzureClienter_ValidateMachineType_Call) RunAndReturn ¶
func (_c *MockAzureClienter_ValidateMachineType_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockAzureClienter_ValidateMachineType_Call
type MockPollerer ¶
MockPollerer is an autogenerated mock type for the Pollerer type
func NewMockPollerer ¶
func NewMockPollerer(t interface { mock.TestingT Cleanup(func()) }) *MockPollerer
NewMockPollerer creates a new instance of MockPollerer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockPollerer) Done ¶
func (_m *MockPollerer) Done() bool
Done provides a mock function with given fields:
func (*MockPollerer) EXPECT ¶
func (_m *MockPollerer) EXPECT() *MockPollerer_Expecter
func (*MockPollerer) PollUntilDone ¶
func (_m *MockPollerer) PollUntilDone(ctx context.Context, options *runtime.PollUntilDoneOptions) (armresources.DeploymentsClientCreateOrUpdateResponse, error)
PollUntilDone provides a mock function with given fields: ctx, options
func (*MockPollerer) Result ¶
func (_m *MockPollerer) Result(ctx context.Context) (armresources.DeploymentsClientCreateOrUpdateResponse, error)
Result provides a mock function with given fields: ctx
func (*MockPollerer) ResumeToken ¶
func (_m *MockPollerer) ResumeToken() (string, error)
ResumeToken provides a mock function with given fields:
type MockPollerer_Done_Call ¶
MockPollerer_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*MockPollerer_Done_Call) Return ¶
func (_c *MockPollerer_Done_Call) Return(_a0 bool) *MockPollerer_Done_Call
func (*MockPollerer_Done_Call) Run ¶
func (_c *MockPollerer_Done_Call) Run(run func()) *MockPollerer_Done_Call
func (*MockPollerer_Done_Call) RunAndReturn ¶
func (_c *MockPollerer_Done_Call) RunAndReturn(run func() bool) *MockPollerer_Done_Call
type MockPollerer_Expecter ¶
type MockPollerer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPollerer_Expecter) Done ¶
func (_e *MockPollerer_Expecter) Done() *MockPollerer_Done_Call
Done is a helper method to define mock.On call
func (*MockPollerer_Expecter) Poll ¶
func (_e *MockPollerer_Expecter) Poll(ctx interface{}) *MockPollerer_Poll_Call
Poll is a helper method to define mock.On call
- ctx context.Context
func (*MockPollerer_Expecter) PollUntilDone ¶
func (_e *MockPollerer_Expecter) PollUntilDone(ctx interface{}, options interface{}) *MockPollerer_PollUntilDone_Call
PollUntilDone is a helper method to define mock.On call
- ctx context.Context
- options *runtime.PollUntilDoneOptions
func (*MockPollerer_Expecter) Result ¶
func (_e *MockPollerer_Expecter) Result(ctx interface{}) *MockPollerer_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
func (*MockPollerer_Expecter) ResumeToken ¶
func (_e *MockPollerer_Expecter) ResumeToken() *MockPollerer_ResumeToken_Call
ResumeToken is a helper method to define mock.On call
type MockPollerer_PollUntilDone_Call ¶
MockPollerer_PollUntilDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PollUntilDone'
func (*MockPollerer_PollUntilDone_Call) Return ¶
func (_c *MockPollerer_PollUntilDone_Call) Return(_a0 armresources.DeploymentsClientCreateOrUpdateResponse, _a1 error) *MockPollerer_PollUntilDone_Call
func (*MockPollerer_PollUntilDone_Call) Run ¶
func (_c *MockPollerer_PollUntilDone_Call) Run(run func(ctx context.Context, options *runtime.PollUntilDoneOptions)) *MockPollerer_PollUntilDone_Call
func (*MockPollerer_PollUntilDone_Call) RunAndReturn ¶
func (_c *MockPollerer_PollUntilDone_Call) RunAndReturn(run func(context.Context, *runtime.PollUntilDoneOptions) (armresources.DeploymentsClientCreateOrUpdateResponse, error)) *MockPollerer_PollUntilDone_Call
type MockPollerer_Poll_Call ¶
MockPollerer_Poll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Poll'
func (*MockPollerer_Poll_Call) Return ¶
func (_c *MockPollerer_Poll_Call) Return(_a0 *http.Response, _a1 error) *MockPollerer_Poll_Call
func (*MockPollerer_Poll_Call) Run ¶
func (_c *MockPollerer_Poll_Call) Run(run func(ctx context.Context)) *MockPollerer_Poll_Call
func (*MockPollerer_Poll_Call) RunAndReturn ¶
func (_c *MockPollerer_Poll_Call) RunAndReturn(run func(context.Context) (*http.Response, error)) *MockPollerer_Poll_Call
type MockPollerer_Result_Call ¶
MockPollerer_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*MockPollerer_Result_Call) Return ¶
func (_c *MockPollerer_Result_Call) Return(_a0 armresources.DeploymentsClientCreateOrUpdateResponse, _a1 error) *MockPollerer_Result_Call
func (*MockPollerer_Result_Call) Run ¶
func (_c *MockPollerer_Result_Call) Run(run func(ctx context.Context)) *MockPollerer_Result_Call
func (*MockPollerer_Result_Call) RunAndReturn ¶
func (_c *MockPollerer_Result_Call) RunAndReturn(run func(context.Context) (armresources.DeploymentsClientCreateOrUpdateResponse, error)) *MockPollerer_Result_Call
type MockPollerer_ResumeToken_Call ¶
MockPollerer_ResumeToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResumeToken'
func (*MockPollerer_ResumeToken_Call) Return ¶
func (_c *MockPollerer_ResumeToken_Call) Return(_a0 string, _a1 error) *MockPollerer_ResumeToken_Call
func (*MockPollerer_ResumeToken_Call) Run ¶
func (_c *MockPollerer_ResumeToken_Call) Run(run func()) *MockPollerer_ResumeToken_Call
func (*MockPollerer_ResumeToken_Call) RunAndReturn ¶
func (_c *MockPollerer_ResumeToken_Call) RunAndReturn(run func() (string, error)) *MockPollerer_ResumeToken_Call