azurelib

package
v0.0.0-...-de93505 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalRegion = "global"

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProviderAPI

type MockProviderAPI struct {
	mock.Mock
}

MockProviderAPI is an autogenerated mock type for the ProviderAPI type

func NewMockProviderAPI

func NewMockProviderAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderAPI

NewMockProviderAPI creates a new instance of MockProviderAPI. 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 (*MockProviderAPI) EXPECT

func (*MockProviderAPI) GetAppServiceAuthSettings

func (_m *MockProviderAPI) GetAppServiceAuthSettings(ctx context.Context, webApp inventory.AzureAsset) ([]inventory.AzureAsset, error)

GetAppServiceAuthSettings provides a mock function with given fields: ctx, webApp

func (*MockProviderAPI) GetAppServiceSiteConfig

func (_m *MockProviderAPI) GetAppServiceSiteConfig(ctx context.Context, webApp inventory.AzureAsset) ([]inventory.AzureAsset, error)

GetAppServiceSiteConfig provides a mock function with given fields: ctx, webApp

func (*MockProviderAPI) GetFlexibleTLSVersionConfiguration

func (_m *MockProviderAPI) GetFlexibleTLSVersionConfiguration(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

GetFlexibleTLSVersionConfiguration provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) GetSQLBlobAuditingPolicies

func (_m *MockProviderAPI) GetSQLBlobAuditingPolicies(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

GetSQLBlobAuditingPolicies provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) GetSubscriptions

func (_m *MockProviderAPI) GetSubscriptions(ctx context.Context, cycleMetadata cycle.Metadata) (map[string]governance.Subscription, error)

GetSubscriptions provides a mock function with given fields: ctx, cycleMetadata

func (*MockProviderAPI) ListAllAssetTypesByName

func (_m *MockProviderAPI) ListAllAssetTypesByName(ctx context.Context, assetsGroup string, assets []string) ([]inventory.AzureAsset, error)

ListAllAssetTypesByName provides a mock function with given fields: ctx, assetsGroup, assets

func (*MockProviderAPI) ListAutoProvisioningSettings

func (_m *MockProviderAPI) ListAutoProvisioningSettings(ctx context.Context, subscriptionID string) ([]inventory.AzureAsset, error)

ListAutoProvisioningSettings provides a mock function with given fields: ctx, subscriptionID

func (*MockProviderAPI) ListDiagnosticSettingsAssetTypes

func (_m *MockProviderAPI) ListDiagnosticSettingsAssetTypes(ctx context.Context, cycleMetadata cycle.Metadata, subscriptionIDs []string) ([]inventory.AzureAsset, error)

ListDiagnosticSettingsAssetTypes provides a mock function with given fields: ctx, cycleMetadata, subscriptionIDs

func (*MockProviderAPI) ListFlexiblePostgresConfigurations

func (_m *MockProviderAPI) ListFlexiblePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListFlexiblePostgresConfigurations provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListFlexiblePostgresFirewallRules

func (_m *MockProviderAPI) ListFlexiblePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListFlexiblePostgresFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListKeyVaultDiagnosticSettings

func (_m *MockProviderAPI) ListKeyVaultDiagnosticSettings(ctx context.Context, vault inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListKeyVaultDiagnosticSettings provides a mock function with given fields: ctx, vault

func (*MockProviderAPI) ListKeyVaultKeys

func (_m *MockProviderAPI) ListKeyVaultKeys(ctx context.Context, vault inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListKeyVaultKeys provides a mock function with given fields: ctx, vault

func (*MockProviderAPI) ListKeyVaultSecrets

func (_m *MockProviderAPI) ListKeyVaultSecrets(ctx context.Context, vault inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListKeyVaultSecrets provides a mock function with given fields: ctx, vault

func (*MockProviderAPI) ListLocations

func (_m *MockProviderAPI) ListLocations(ctx context.Context, subID string) ([]inventory.AzureAsset, error)

ListLocations provides a mock function with given fields: ctx, subID

func (*MockProviderAPI) ListSQLAdvancedThreatProtectionSettings

func (_m *MockProviderAPI) ListSQLAdvancedThreatProtectionSettings(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSQLAdvancedThreatProtectionSettings provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListSQLEncryptionProtector

func (_m *MockProviderAPI) ListSQLEncryptionProtector(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSQLEncryptionProtector provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListSQLFirewallRules

func (_m *MockProviderAPI) ListSQLFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSQLFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListSQLTransparentDataEncryptions

func (_m *MockProviderAPI) ListSQLTransparentDataEncryptions(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSQLTransparentDataEncryptions provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListSecurityContacts

func (_m *MockProviderAPI) ListSecurityContacts(ctx context.Context, subscriptionID string) ([]inventory.AzureAsset, error)

ListSecurityContacts provides a mock function with given fields: ctx, subscriptionID

func (*MockProviderAPI) ListSinglePostgresConfigurations

func (_m *MockProviderAPI) ListSinglePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSinglePostgresConfigurations provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListSinglePostgresFirewallRules

func (_m *MockProviderAPI) ListSinglePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]inventory.AzureAsset, error)

ListSinglePostgresFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName

func (*MockProviderAPI) ListStorageAccountBlobServices

func (_m *MockProviderAPI) ListStorageAccountBlobServices(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountBlobServices provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListStorageAccountQueueServices

func (_m *MockProviderAPI) ListStorageAccountQueueServices(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountQueueServices provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListStorageAccountQueues

func (_m *MockProviderAPI) ListStorageAccountQueues(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountQueues provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListStorageAccounts

func (_m *MockProviderAPI) ListStorageAccounts(ctx context.Context, storageAccountsSubscriptionsIds []string) ([]inventory.AzureAsset, error)

ListStorageAccounts provides a mock function with given fields: ctx, storageAccountsSubscriptionsIds

func (*MockProviderAPI) ListStorageAccountsBlobDiagnosticSettings

func (_m *MockProviderAPI) ListStorageAccountsBlobDiagnosticSettings(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountsBlobDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListStorageAccountsQueueDiagnosticSettings

func (_m *MockProviderAPI) ListStorageAccountsQueueDiagnosticSettings(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountsQueueDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListStorageAccountsTableDiagnosticSettings

func (_m *MockProviderAPI) ListStorageAccountsTableDiagnosticSettings(ctx context.Context, storageAccounts []inventory.AzureAsset) ([]inventory.AzureAsset, error)

ListStorageAccountsTableDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts

func (*MockProviderAPI) ListSubscriptions

func (_m *MockProviderAPI) ListSubscriptions(ctx context.Context) ([]inventory.AzureAsset, error)

ListSubscriptions provides a mock function with given fields: ctx

func (*MockProviderAPI) ListTenants

func (_m *MockProviderAPI) ListTenants(ctx context.Context) ([]inventory.AzureAsset, error)

ListTenants provides a mock function with given fields: ctx

type MockProviderAPI_Expecter

type MockProviderAPI_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockProviderAPI_Expecter) GetAppServiceAuthSettings

func (_e *MockProviderAPI_Expecter) GetAppServiceAuthSettings(ctx interface{}, webApp interface{}) *MockProviderAPI_GetAppServiceAuthSettings_Call

GetAppServiceAuthSettings is a helper method to define mock.On call

  • ctx context.Context
  • webApp inventory.AzureAsset

func (*MockProviderAPI_Expecter) GetAppServiceSiteConfig

func (_e *MockProviderAPI_Expecter) GetAppServiceSiteConfig(ctx interface{}, webApp interface{}) *MockProviderAPI_GetAppServiceSiteConfig_Call

GetAppServiceSiteConfig is a helper method to define mock.On call

  • ctx context.Context
  • webApp inventory.AzureAsset

func (*MockProviderAPI_Expecter) GetFlexibleTLSVersionConfiguration

func (_e *MockProviderAPI_Expecter) GetFlexibleTLSVersionConfiguration(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call

GetFlexibleTLSVersionConfiguration is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) GetSQLBlobAuditingPolicies

func (_e *MockProviderAPI_Expecter) GetSQLBlobAuditingPolicies(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_GetSQLBlobAuditingPolicies_Call

GetSQLBlobAuditingPolicies is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) GetSubscriptions

func (_e *MockProviderAPI_Expecter) GetSubscriptions(ctx interface{}, cycleMetadata interface{}) *MockProviderAPI_GetSubscriptions_Call

GetSubscriptions is a helper method to define mock.On call

  • ctx context.Context
  • cycleMetadata cycle.Metadata

func (*MockProviderAPI_Expecter) ListAllAssetTypesByName

func (_e *MockProviderAPI_Expecter) ListAllAssetTypesByName(ctx interface{}, assetsGroup interface{}, assets interface{}) *MockProviderAPI_ListAllAssetTypesByName_Call

ListAllAssetTypesByName is a helper method to define mock.On call

  • ctx context.Context
  • assetsGroup string
  • assets []string

func (*MockProviderAPI_Expecter) ListAutoProvisioningSettings

func (_e *MockProviderAPI_Expecter) ListAutoProvisioningSettings(ctx interface{}, subscriptionID interface{}) *MockProviderAPI_ListAutoProvisioningSettings_Call

ListAutoProvisioningSettings is a helper method to define mock.On call

  • ctx context.Context
  • subscriptionID string

func (*MockProviderAPI_Expecter) ListDiagnosticSettingsAssetTypes

func (_e *MockProviderAPI_Expecter) ListDiagnosticSettingsAssetTypes(ctx interface{}, cycleMetadata interface{}, subscriptionIDs interface{}) *MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call

ListDiagnosticSettingsAssetTypes is a helper method to define mock.On call

  • ctx context.Context
  • cycleMetadata cycle.Metadata
  • subscriptionIDs []string

func (*MockProviderAPI_Expecter) ListFlexiblePostgresConfigurations

func (_e *MockProviderAPI_Expecter) ListFlexiblePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListFlexiblePostgresConfigurations_Call

ListFlexiblePostgresConfigurations is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListFlexiblePostgresFirewallRules

func (_e *MockProviderAPI_Expecter) ListFlexiblePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListFlexiblePostgresFirewallRules_Call

ListFlexiblePostgresFirewallRules is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListKeyVaultDiagnosticSettings

func (_e *MockProviderAPI_Expecter) ListKeyVaultDiagnosticSettings(ctx interface{}, vault interface{}) *MockProviderAPI_ListKeyVaultDiagnosticSettings_Call

ListKeyVaultDiagnosticSettings is a helper method to define mock.On call

  • ctx context.Context
  • vault inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListKeyVaultKeys

func (_e *MockProviderAPI_Expecter) ListKeyVaultKeys(ctx interface{}, vault interface{}) *MockProviderAPI_ListKeyVaultKeys_Call

ListKeyVaultKeys is a helper method to define mock.On call

  • ctx context.Context
  • vault inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListKeyVaultSecrets

func (_e *MockProviderAPI_Expecter) ListKeyVaultSecrets(ctx interface{}, vault interface{}) *MockProviderAPI_ListKeyVaultSecrets_Call

ListKeyVaultSecrets is a helper method to define mock.On call

  • ctx context.Context
  • vault inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListLocations

func (_e *MockProviderAPI_Expecter) ListLocations(ctx interface{}, subID interface{}) *MockProviderAPI_ListLocations_Call

ListLocations is a helper method to define mock.On call

  • ctx context.Context
  • subID string

func (*MockProviderAPI_Expecter) ListSQLAdvancedThreatProtectionSettings

func (_e *MockProviderAPI_Expecter) ListSQLAdvancedThreatProtectionSettings(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call

ListSQLAdvancedThreatProtectionSettings is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListSQLEncryptionProtector

func (_e *MockProviderAPI_Expecter) ListSQLEncryptionProtector(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSQLEncryptionProtector_Call

ListSQLEncryptionProtector is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListSQLFirewallRules

func (_e *MockProviderAPI_Expecter) ListSQLFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSQLFirewallRules_Call

ListSQLFirewallRules is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListSQLTransparentDataEncryptions

func (_e *MockProviderAPI_Expecter) ListSQLTransparentDataEncryptions(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSQLTransparentDataEncryptions_Call

ListSQLTransparentDataEncryptions is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListSecurityContacts

func (_e *MockProviderAPI_Expecter) ListSecurityContacts(ctx interface{}, subscriptionID interface{}) *MockProviderAPI_ListSecurityContacts_Call

ListSecurityContacts is a helper method to define mock.On call

  • ctx context.Context
  • subscriptionID string

func (*MockProviderAPI_Expecter) ListSinglePostgresConfigurations

func (_e *MockProviderAPI_Expecter) ListSinglePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSinglePostgresConfigurations_Call

ListSinglePostgresConfigurations is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListSinglePostgresFirewallRules

func (_e *MockProviderAPI_Expecter) ListSinglePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockProviderAPI_ListSinglePostgresFirewallRules_Call

ListSinglePostgresFirewallRules is a helper method to define mock.On call

  • ctx context.Context
  • subID string
  • resourceGroup string
  • serverName string

func (*MockProviderAPI_Expecter) ListStorageAccountBlobServices

func (_e *MockProviderAPI_Expecter) ListStorageAccountBlobServices(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountBlobServices_Call

ListStorageAccountBlobServices is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListStorageAccountQueueServices

func (_e *MockProviderAPI_Expecter) ListStorageAccountQueueServices(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountQueueServices_Call

ListStorageAccountQueueServices is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListStorageAccountQueues

func (_e *MockProviderAPI_Expecter) ListStorageAccountQueues(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountQueues_Call

ListStorageAccountQueues is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListStorageAccounts

func (_e *MockProviderAPI_Expecter) ListStorageAccounts(ctx interface{}, storageAccountsSubscriptionsIds interface{}) *MockProviderAPI_ListStorageAccounts_Call

ListStorageAccounts is a helper method to define mock.On call

  • ctx context.Context
  • storageAccountsSubscriptionsIds []string

func (*MockProviderAPI_Expecter) ListStorageAccountsBlobDiagnosticSettings

func (_e *MockProviderAPI_Expecter) ListStorageAccountsBlobDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call

ListStorageAccountsBlobDiagnosticSettings is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListStorageAccountsQueueDiagnosticSettings

func (_e *MockProviderAPI_Expecter) ListStorageAccountsQueueDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call

ListStorageAccountsQueueDiagnosticSettings is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListStorageAccountsTableDiagnosticSettings

func (_e *MockProviderAPI_Expecter) ListStorageAccountsTableDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call

ListStorageAccountsTableDiagnosticSettings is a helper method to define mock.On call

  • ctx context.Context
  • storageAccounts []inventory.AzureAsset

func (*MockProviderAPI_Expecter) ListSubscriptions

func (_e *MockProviderAPI_Expecter) ListSubscriptions(ctx interface{}) *MockProviderAPI_ListSubscriptions_Call

ListSubscriptions is a helper method to define mock.On call

  • ctx context.Context

func (*MockProviderAPI_Expecter) ListTenants

func (_e *MockProviderAPI_Expecter) ListTenants(ctx interface{}) *MockProviderAPI_ListTenants_Call

ListTenants is a helper method to define mock.On call

  • ctx context.Context

type MockProviderAPI_GetAppServiceAuthSettings_Call

type MockProviderAPI_GetAppServiceAuthSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_GetAppServiceAuthSettings_Call) Return

func (*MockProviderAPI_GetAppServiceAuthSettings_Call) Run

func (*MockProviderAPI_GetAppServiceAuthSettings_Call) RunAndReturn

type MockProviderAPI_GetAppServiceSiteConfig_Call

type MockProviderAPI_GetAppServiceSiteConfig_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_GetAppServiceSiteConfig_Call) Return

func (*MockProviderAPI_GetAppServiceSiteConfig_Call) Run

func (*MockProviderAPI_GetAppServiceSiteConfig_Call) RunAndReturn

type MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call

type MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Return

func (*MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Run

func (*MockProviderAPI_GetFlexibleTLSVersionConfiguration_Call) RunAndReturn

type MockProviderAPI_GetSQLBlobAuditingPolicies_Call

type MockProviderAPI_GetSQLBlobAuditingPolicies_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_GetSQLBlobAuditingPolicies_Call) Return

func (*MockProviderAPI_GetSQLBlobAuditingPolicies_Call) Run

func (*MockProviderAPI_GetSQLBlobAuditingPolicies_Call) RunAndReturn

type MockProviderAPI_GetSubscriptions_Call

type MockProviderAPI_GetSubscriptions_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_GetSubscriptions_Call) Return

func (*MockProviderAPI_GetSubscriptions_Call) Run

func (*MockProviderAPI_GetSubscriptions_Call) RunAndReturn

type MockProviderAPI_ListAllAssetTypesByName_Call

type MockProviderAPI_ListAllAssetTypesByName_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListAllAssetTypesByName_Call) Return

func (*MockProviderAPI_ListAllAssetTypesByName_Call) Run

func (*MockProviderAPI_ListAllAssetTypesByName_Call) RunAndReturn

type MockProviderAPI_ListAutoProvisioningSettings_Call

type MockProviderAPI_ListAutoProvisioningSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListAutoProvisioningSettings_Call) Return

func (*MockProviderAPI_ListAutoProvisioningSettings_Call) Run

func (*MockProviderAPI_ListAutoProvisioningSettings_Call) RunAndReturn

type MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call

type MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Return

func (*MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Run

func (*MockProviderAPI_ListDiagnosticSettingsAssetTypes_Call) RunAndReturn

type MockProviderAPI_ListFlexiblePostgresConfigurations_Call

type MockProviderAPI_ListFlexiblePostgresConfigurations_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListFlexiblePostgresConfigurations_Call) Return

func (*MockProviderAPI_ListFlexiblePostgresConfigurations_Call) Run

func (*MockProviderAPI_ListFlexiblePostgresConfigurations_Call) RunAndReturn

type MockProviderAPI_ListFlexiblePostgresFirewallRules_Call

type MockProviderAPI_ListFlexiblePostgresFirewallRules_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListFlexiblePostgresFirewallRules_Call) Return

func (*MockProviderAPI_ListFlexiblePostgresFirewallRules_Call) Run

func (*MockProviderAPI_ListFlexiblePostgresFirewallRules_Call) RunAndReturn

type MockProviderAPI_ListKeyVaultDiagnosticSettings_Call

type MockProviderAPI_ListKeyVaultDiagnosticSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListKeyVaultDiagnosticSettings_Call) Return

func (*MockProviderAPI_ListKeyVaultDiagnosticSettings_Call) Run

type MockProviderAPI_ListKeyVaultKeys_Call

type MockProviderAPI_ListKeyVaultKeys_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListKeyVaultKeys_Call) Return

func (*MockProviderAPI_ListKeyVaultKeys_Call) Run

func (*MockProviderAPI_ListKeyVaultKeys_Call) RunAndReturn

type MockProviderAPI_ListKeyVaultSecrets_Call

type MockProviderAPI_ListKeyVaultSecrets_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListKeyVaultSecrets_Call) Return

func (*MockProviderAPI_ListKeyVaultSecrets_Call) Run

func (*MockProviderAPI_ListKeyVaultSecrets_Call) RunAndReturn

type MockProviderAPI_ListLocations_Call

type MockProviderAPI_ListLocations_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListLocations_Call) Return

func (*MockProviderAPI_ListLocations_Call) Run

func (*MockProviderAPI_ListLocations_Call) RunAndReturn

type MockProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call

type MockProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Return

func (*MockProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Run

type MockProviderAPI_ListSQLEncryptionProtector_Call

type MockProviderAPI_ListSQLEncryptionProtector_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSQLEncryptionProtector_Call) Return

func (*MockProviderAPI_ListSQLEncryptionProtector_Call) Run

func (*MockProviderAPI_ListSQLEncryptionProtector_Call) RunAndReturn

type MockProviderAPI_ListSQLFirewallRules_Call

type MockProviderAPI_ListSQLFirewallRules_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSQLFirewallRules_Call) Return

func (*MockProviderAPI_ListSQLFirewallRules_Call) Run

func (*MockProviderAPI_ListSQLFirewallRules_Call) RunAndReturn

type MockProviderAPI_ListSQLTransparentDataEncryptions_Call

type MockProviderAPI_ListSQLTransparentDataEncryptions_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSQLTransparentDataEncryptions_Call) Return

func (*MockProviderAPI_ListSQLTransparentDataEncryptions_Call) Run

func (*MockProviderAPI_ListSQLTransparentDataEncryptions_Call) RunAndReturn

type MockProviderAPI_ListSecurityContacts_Call

type MockProviderAPI_ListSecurityContacts_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSecurityContacts_Call) Return

func (*MockProviderAPI_ListSecurityContacts_Call) Run

func (*MockProviderAPI_ListSecurityContacts_Call) RunAndReturn

type MockProviderAPI_ListSinglePostgresConfigurations_Call

type MockProviderAPI_ListSinglePostgresConfigurations_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSinglePostgresConfigurations_Call) Return

func (*MockProviderAPI_ListSinglePostgresConfigurations_Call) Run

func (*MockProviderAPI_ListSinglePostgresConfigurations_Call) RunAndReturn

type MockProviderAPI_ListSinglePostgresFirewallRules_Call

type MockProviderAPI_ListSinglePostgresFirewallRules_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSinglePostgresFirewallRules_Call) Return

func (*MockProviderAPI_ListSinglePostgresFirewallRules_Call) Run

func (*MockProviderAPI_ListSinglePostgresFirewallRules_Call) RunAndReturn

type MockProviderAPI_ListStorageAccountBlobServices_Call

type MockProviderAPI_ListStorageAccountBlobServices_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountBlobServices_Call) Return

func (*MockProviderAPI_ListStorageAccountBlobServices_Call) Run

func (*MockProviderAPI_ListStorageAccountBlobServices_Call) RunAndReturn

type MockProviderAPI_ListStorageAccountQueueServices_Call

type MockProviderAPI_ListStorageAccountQueueServices_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountQueueServices_Call) Return

func (*MockProviderAPI_ListStorageAccountQueueServices_Call) Run

func (*MockProviderAPI_ListStorageAccountQueueServices_Call) RunAndReturn

type MockProviderAPI_ListStorageAccountQueues_Call

type MockProviderAPI_ListStorageAccountQueues_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountQueues_Call) Return

func (*MockProviderAPI_ListStorageAccountQueues_Call) Run

func (*MockProviderAPI_ListStorageAccountQueues_Call) RunAndReturn

type MockProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call

type MockProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Return

func (*MockProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Run

type MockProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call

type MockProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Return

func (*MockProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Run

type MockProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call

type MockProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Return

func (*MockProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Run

type MockProviderAPI_ListStorageAccounts_Call

type MockProviderAPI_ListStorageAccounts_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListStorageAccounts_Call) Return

func (*MockProviderAPI_ListStorageAccounts_Call) Run

func (_c *MockProviderAPI_ListStorageAccounts_Call) Run(run func(ctx context.Context, storageAccountsSubscriptionsIds []string)) *MockProviderAPI_ListStorageAccounts_Call

func (*MockProviderAPI_ListStorageAccounts_Call) RunAndReturn

type MockProviderAPI_ListSubscriptions_Call

type MockProviderAPI_ListSubscriptions_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListSubscriptions_Call) Return

func (*MockProviderAPI_ListSubscriptions_Call) Run

func (*MockProviderAPI_ListSubscriptions_Call) RunAndReturn

type MockProviderAPI_ListTenants_Call

type MockProviderAPI_ListTenants_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListTenants_Call) Return

func (*MockProviderAPI_ListTenants_Call) Run

func (*MockProviderAPI_ListTenants_Call) RunAndReturn

type MockProviderInitializerAPI

type MockProviderInitializerAPI struct {
	mock.Mock
}

MockProviderInitializerAPI is an autogenerated mock type for the ProviderInitializerAPI type

func NewMockProviderInitializerAPI

func NewMockProviderInitializerAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderInitializerAPI

NewMockProviderInitializerAPI creates a new instance of MockProviderInitializerAPI. 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 (*MockProviderInitializerAPI) EXPECT

func (*MockProviderInitializerAPI) Init

Init provides a mock function with given fields: log, azureConfig

type MockProviderInitializerAPI_Expecter

type MockProviderInitializerAPI_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockProviderInitializerAPI_Expecter) Init

func (_e *MockProviderInitializerAPI_Expecter) Init(log interface{}, azureConfig interface{}) *MockProviderInitializerAPI_Init_Call

Init is a helper method to define mock.On call

  • log *logp.Logger
  • azureConfig auth.AzureFactoryConfig

type MockProviderInitializerAPI_Init_Call

type MockProviderInitializerAPI_Init_Call struct {
	*mock.Call
}

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

func (*MockProviderInitializerAPI_Init_Call) Return

func (*MockProviderInitializerAPI_Init_Call) Run

func (*MockProviderInitializerAPI_Init_Call) RunAndReturn

type ProviderInitializer

type ProviderInitializer struct{}

func (*ProviderInitializer) Init

func (p *ProviderInitializer) Init(log *logp.Logger, azureConfig auth.AzureFactoryConfig) (ProviderAPI, error)

type ProviderInitializerAPI

type ProviderInitializerAPI interface {
	// Init initializes the Azure clients
	Init(log *logp.Logger, azureConfig auth.AzureFactoryConfig) (ProviderAPI, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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