mocks

package
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAzureClienter

type MockAzureClienter struct {
	mock.Mock
}

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 (*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

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

type MockAzureClienter_DeployTemplate_Call struct {
	*mock.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 (*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

type MockAzureClienter_DestroyResourceGroup_Call

type MockAzureClienter_DestroyResourceGroup_Call struct {
	*mock.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 (*MockAzureClienter_DestroyResourceGroup_Call) Run

func (*MockAzureClienter_DestroyResourceGroup_Call) RunAndReturn

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

type MockAzureClienter_GetNetworkInterface_Call struct {
	*mock.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 (*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

type MockAzureClienter_GetOrCreateResourceGroup_Call

type MockAzureClienter_GetOrCreateResourceGroup_Call struct {
	*mock.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 (*MockAzureClienter_GetOrCreateResourceGroup_Call) Run

type MockAzureClienter_GetPublicIPAddress_Call

type MockAzureClienter_GetPublicIPAddress_Call struct {
	*mock.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 (*MockAzureClienter_GetPublicIPAddress_Call) Run

func (*MockAzureClienter_GetPublicIPAddress_Call) RunAndReturn

type MockAzureClienter_GetResources_Call

type MockAzureClienter_GetResources_Call struct {
	*mock.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 (*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

type MockAzureClienter_GetSKUsByLocation_Call

type MockAzureClienter_GetSKUsByLocation_Call struct {
	*mock.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 (*MockAzureClienter_GetSKUsByLocation_Call) Run

func (*MockAzureClienter_GetSKUsByLocation_Call) RunAndReturn

type MockAzureClienter_GetVMExternalIP_Call

type MockAzureClienter_GetVMExternalIP_Call struct {
	*mock.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 (*MockAzureClienter_GetVMExternalIP_Call) Run

func (*MockAzureClienter_GetVMExternalIP_Call) RunAndReturn

type MockAzureClienter_GetVirtualMachine_Call

type MockAzureClienter_GetVirtualMachine_Call struct {
	*mock.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 (*MockAzureClienter_GetVirtualMachine_Call) Run

func (*MockAzureClienter_GetVirtualMachine_Call) RunAndReturn

type MockAzureClienter_ListAllResourceGroups_Call

type MockAzureClienter_ListAllResourceGroups_Call struct {
	*mock.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 (*MockAzureClienter_ListAllResourceGroups_Call) Run

func (*MockAzureClienter_ListAllResourceGroups_Call) RunAndReturn

type MockAzureClienter_ListAllResourcesInSubscription_Call

type MockAzureClienter_ListAllResourcesInSubscription_Call struct {
	*mock.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 (*MockAzureClienter_ListAllResourcesInSubscription_Call) Run

func (*MockAzureClienter_ListAllResourcesInSubscription_Call) RunAndReturn

type MockAzureClienter_NewSubscriptionListPager_Call

type MockAzureClienter_NewSubscriptionListPager_Call struct {
	*mock.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

type MockAzureClienter_ResourceGroupExists_Call

type MockAzureClienter_ResourceGroupExists_Call struct {
	*mock.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 (*MockAzureClienter_ResourceGroupExists_Call) Run

func (*MockAzureClienter_ResourceGroupExists_Call) RunAndReturn

type MockAzureClienter_ValidateMachineType_Call

type MockAzureClienter_ValidateMachineType_Call struct {
	*mock.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 (*MockAzureClienter_ValidateMachineType_Call) Run

func (*MockAzureClienter_ValidateMachineType_Call) RunAndReturn

type MockPollerer

type MockPollerer struct {
	mock.Mock
}

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) Poll

func (_m *MockPollerer) Poll(ctx context.Context) (*http.Response, error)

Poll provides a mock function with given fields: ctx

func (*MockPollerer) PollUntilDone

PollUntilDone provides a mock function with given fields: ctx, options

func (*MockPollerer) Result

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

type MockPollerer_Done_Call struct {
	*mock.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 (*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

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

ResumeToken is a helper method to define mock.On call

type MockPollerer_PollUntilDone_Call

type MockPollerer_PollUntilDone_Call struct {
	*mock.Call
}

MockPollerer_PollUntilDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PollUntilDone'

func (*MockPollerer_PollUntilDone_Call) Run

type MockPollerer_Poll_Call

type MockPollerer_Poll_Call struct {
	*mock.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 (*MockPollerer_Poll_Call) Run

func (*MockPollerer_Poll_Call) RunAndReturn

type MockPollerer_Result_Call

type MockPollerer_Result_Call struct {
	*mock.Call
}

MockPollerer_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'

func (*MockPollerer_Result_Call) Run

type MockPollerer_ResumeToken_Call

type MockPollerer_ResumeToken_Call struct {
	*mock.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 (*MockPollerer_ResumeToken_Call) Run

func (*MockPollerer_ResumeToken_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL