Documentation ¶
Index ¶
- Constants
- type AppServiceProviderAPI
- type AzureAsset
- type KeyVaultProviderAPI
- type MockAppServiceProviderAPI
- func (_m *MockAppServiceProviderAPI) EXPECT() *MockAppServiceProviderAPI_Expecter
- func (_m *MockAppServiceProviderAPI) GetAppServiceAuthSettings(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error)
- func (_m *MockAppServiceProviderAPI) GetAppServiceSiteConfig(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error)
- type MockAppServiceProviderAPI_Expecter
- func (_e *MockAppServiceProviderAPI_Expecter) GetAppServiceAuthSettings(ctx interface{}, webApp interface{}) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
- func (_e *MockAppServiceProviderAPI_Expecter) GetAppServiceSiteConfig(ctx interface{}, webApp interface{}) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
- type MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Run(run func(ctx context.Context, webApp AzureAsset)) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
- type MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Return(_a0 []AzureAsset, _a1 error) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Run(run func(ctx context.Context, webApp AzureAsset)) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
- func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
- type MockKeyVaultProviderAPI
- func (_m *MockKeyVaultProviderAPI) EXPECT() *MockKeyVaultProviderAPI_Expecter
- func (_m *MockKeyVaultProviderAPI) ListKeyVaultDiagnosticSettings(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
- func (_m *MockKeyVaultProviderAPI) ListKeyVaultKeys(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
- func (_m *MockKeyVaultProviderAPI) ListKeyVaultSecrets(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
- type MockKeyVaultProviderAPI_Expecter
- func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultDiagnosticSettings(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
- func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultKeys(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
- func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultSecrets(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
- type MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
- type MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
- type MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
- func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
- type MockMysqlProviderAPI
- type MockMysqlProviderAPI_Expecter
- type MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
- func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Return(_a0 []AzureAsset, _a1 error) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
- func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Run(...) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
- func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
- type MockPostgresqlProviderAPI
- func (_m *MockPostgresqlProviderAPI) EXPECT() *MockPostgresqlProviderAPI_Expecter
- func (_m *MockPostgresqlProviderAPI) ListFlexiblePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockPostgresqlProviderAPI) ListFlexiblePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockPostgresqlProviderAPI) ListSinglePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockPostgresqlProviderAPI) ListSinglePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- type MockPostgresqlProviderAPI_Expecter
- func (_e *MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
- func (_e *MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
- func (_e *MockPostgresqlProviderAPI_Expecter) ListSinglePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
- func (_e *MockPostgresqlProviderAPI_Expecter) ListSinglePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
- type MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Return(_a0 []AzureAsset, _a1 error) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Run(...) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
- type MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Return(_a0 []AzureAsset, _a1 error) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Run(...) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
- type MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Return(_a0 []AzureAsset, _a1 error) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Run(...) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
- type MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Return(_a0 []AzureAsset, _a1 error) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Run(...) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
- func (_c *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
- type MockResourceGraphProviderAPI
- type MockResourceGraphProviderAPI_Expecter
- type MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
- func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Return(_a0 []AzureAsset, _a1 error) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
- func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Run(run func(ctx context.Context, assetsGroup string, assets []string)) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
- func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) RunAndReturn(run func(context.Context, string, []string) ([]AzureAsset, error)) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
- type MockSQLProviderAPI
- func (_m *MockSQLProviderAPI) EXPECT() *MockSQLProviderAPI_Expecter
- func (_m *MockSQLProviderAPI) GetSQLBlobAuditingPolicies(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockSQLProviderAPI) ListSQLAdvancedThreatProtectionSettings(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockSQLProviderAPI) ListSQLEncryptionProtector(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockSQLProviderAPI) ListSQLFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- func (_m *MockSQLProviderAPI) ListSQLTransparentDataEncryptions(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
- type MockSQLProviderAPI_Expecter
- func (_e *MockSQLProviderAPI_Expecter) GetSQLBlobAuditingPolicies(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
- func (_e *MockSQLProviderAPI_Expecter) ListSQLAdvancedThreatProtectionSettings(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
- func (_e *MockSQLProviderAPI_Expecter) ListSQLEncryptionProtector(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
- func (_e *MockSQLProviderAPI_Expecter) ListSQLFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockSQLProviderAPI_ListSQLFirewallRules_Call
- func (_e *MockSQLProviderAPI_Expecter) ListSQLTransparentDataEncryptions(ctx interface{}, subID interface{}, resourceGroup interface{}, ...) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
- type MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
- func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
- func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Run(...) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
- func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
- type MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
- func (_c *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
- func (_c *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Run(...) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
- func (_c *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
- type MockSQLProviderAPI_ListSQLEncryptionProtector_Call
- func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
- func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Run(...) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
- func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
- type MockSQLProviderAPI_ListSQLFirewallRules_Call
- func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLFirewallRules_Call
- func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) Run(...) *MockSQLProviderAPI_ListSQLFirewallRules_Call
- func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLFirewallRules_Call
- type MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
- func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
- func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Run(...) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
- func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
- type MockSecurityContactsProviderAPI
- func (_m *MockSecurityContactsProviderAPI) EXPECT() *MockSecurityContactsProviderAPI_Expecter
- func (_m *MockSecurityContactsProviderAPI) ListAutoProvisioningSettings(ctx context.Context, subscriptionID string) ([]AzureAsset, error)
- func (_m *MockSecurityContactsProviderAPI) ListSecurityContacts(ctx context.Context, subscriptionID string) ([]AzureAsset, error)
- type MockSecurityContactsProviderAPI_Expecter
- func (_e *MockSecurityContactsProviderAPI_Expecter) ListAutoProvisioningSettings(ctx interface{}, subscriptionID interface{}) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
- func (_e *MockSecurityContactsProviderAPI_Expecter) ListSecurityContacts(ctx interface{}, subscriptionID interface{}) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
- type MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
- func (_c *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
- func (_c *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Run(run func(ctx context.Context, subscriptionID string)) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
- func (_c *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
- type MockSecurityContactsProviderAPI_ListSecurityContacts_Call
- func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Return(_a0 []AzureAsset, _a1 error) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
- func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Run(run func(ctx context.Context, subscriptionID string)) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
- func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
- type MockStorageAccountProviderAPI
- func (_m *MockStorageAccountProviderAPI) EXPECT() *MockStorageAccountProviderAPI_Expecter
- func (_m *MockStorageAccountProviderAPI) ListDiagnosticSettingsAssetTypes(ctx context.Context, cycleMetadata cycle.Metadata, subscriptionIDs []string) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountBlobServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountQueueServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountQueues(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccounts(ctx context.Context, storageAccountsSubscriptionsIds []string) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountsBlobDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountsQueueDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- func (_m *MockStorageAccountProviderAPI) ListStorageAccountsTableDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
- type MockStorageAccountProviderAPI_Expecter
- func (_e *MockStorageAccountProviderAPI_Expecter) ListDiagnosticSettingsAssetTypes(ctx interface{}, cycleMetadata interface{}, subscriptionIDs interface{}) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountBlobServices(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueueServices(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueues(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccounts(ctx interface{}, storageAccountsSubscriptionsIds interface{}) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsBlobDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsQueueDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
- func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsTableDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
- type MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
- func (_c *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
- func (_c *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Run(...) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
- func (_c *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) RunAndReturn(run func(context.Context, cycle.Metadata, []string) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
- type MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
- type MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
- type MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
- type MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
- type MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
- type MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
- type MockStorageAccountProviderAPI_ListStorageAccounts_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) Run(run func(ctx context.Context, storageAccountsSubscriptionsIds []string)) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
- func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) RunAndReturn(run func(context.Context, []string) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
- type MockSubscriptionProviderAPI
- func (_m *MockSubscriptionProviderAPI) EXPECT() *MockSubscriptionProviderAPI_Expecter
- func (_m *MockSubscriptionProviderAPI) ListLocations(ctx context.Context, subID string) ([]AzureAsset, error)
- func (_m *MockSubscriptionProviderAPI) ListSubscriptions(ctx context.Context) ([]AzureAsset, error)
- func (_m *MockSubscriptionProviderAPI) ListTenants(ctx context.Context) ([]AzureAsset, error)
- type MockSubscriptionProviderAPI_Expecter
- func (_e *MockSubscriptionProviderAPI_Expecter) ListLocations(ctx interface{}, subID interface{}) *MockSubscriptionProviderAPI_ListLocations_Call
- func (_e *MockSubscriptionProviderAPI_Expecter) ListSubscriptions(ctx interface{}) *MockSubscriptionProviderAPI_ListSubscriptions_Call
- func (_e *MockSubscriptionProviderAPI_Expecter) ListTenants(ctx interface{}) *MockSubscriptionProviderAPI_ListTenants_Call
- type MockSubscriptionProviderAPI_ListLocations_Call
- func (_c *MockSubscriptionProviderAPI_ListLocations_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListLocations_Call
- func (_c *MockSubscriptionProviderAPI_ListLocations_Call) Run(run func(ctx context.Context, subID string)) *MockSubscriptionProviderAPI_ListLocations_Call
- func (_c *MockSubscriptionProviderAPI_ListLocations_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListLocations_Call
- type MockSubscriptionProviderAPI_ListSubscriptions_Call
- func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListSubscriptions_Call
- func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) Run(run func(ctx context.Context)) *MockSubscriptionProviderAPI_ListSubscriptions_Call
- func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) RunAndReturn(run func(context.Context) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListSubscriptions_Call
- type MockSubscriptionProviderAPI_ListTenants_Call
- func (_c *MockSubscriptionProviderAPI_ListTenants_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListTenants_Call
- func (_c *MockSubscriptionProviderAPI_ListTenants_Call) Run(run func(ctx context.Context)) *MockSubscriptionProviderAPI_ListTenants_Call
- func (_c *MockSubscriptionProviderAPI_ListTenants_Call) RunAndReturn(run func(context.Context) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListTenants_Call
- type MysqlProviderAPI
- type PostgresqlProviderAPI
- type ResourceGraphAzureClientWrapper
- type ResourceGraphProvider
- type ResourceGraphProviderAPI
- type SQLProviderAPI
- type SecurityContactsProviderAPI
- type StorageAccountProviderAPI
- type SubscriptionProviderAPI
Constants ¶
const ( // Resources group ActivityLogAlertAssetType = "microsoft.insights/activitylogalerts" ApplicationInsights = "microsoft.insights/components" BastionAssetType = "microsoft.network/bastionhosts" BlobServiceAssetType = "microsoft.storage/storageaccounts/blobservices" ClassicStorageAccountAssetType = "microsoft.classicstorage/storageaccounts" ContainerRegistryAssetType = "microsoft.containerregistry/registries" CosmosDBForSQLDatabaseAssetType = "microsoft.dbforpostgresql/servergroupsv2" DiagnosticSettingsAssetType = "microsoft.insights/diagnosticSettings" DiskAssetType = "microsoft.compute/disks" DocumentDBDatabaseAccountAssetType = "microsoft.documentdb/databaseaccounts" ElasticPoolAssetType = "microsoft.sql/servers/elasticpools" FlexibleMySQLDBAssetType = "microsoft.dbformysql/flexibleservers" FlexiblePostgreSQLDBAssetType = "microsoft.dbforpostgresql/flexibleservers" MySQLDBAssetType = "microsoft.dbformysql/servers" MySQLDatabaseAssetType = "microsoft.sql/servers/databases" NetworkSecurityGroupAssetType = "microsoft.network/networksecuritygroups" NetworkWatchersAssetType = "microsoft.network/networkwatchers" NetworkWatchersFlowLogAssetType = "microsoft.network/networkwatchers/flowlogs" PostgreSQLDBAssetType = "microsoft.dbforpostgresql/servers" ResouceGroupAssetType = "microsoft.resources/subscriptions/resourcegroups" SQLServersAssetType = "microsoft.sql/servers" SecurityAutoProvisioningSettingsType = "microsoft.security/autoprovisioningsettings" SecurityContactsAssetType = "microsoft.security/securitycontacts" SnapshotAssetType = "microsoft.compute/snapshots" StorageAccountAssetType = "microsoft.storage/storageaccounts" VaultAssetType = "microsoft.keyvault/vaults" VirtualMachineAssetType = "microsoft.compute/virtualmachines" WebsitesAssetType = "microsoft.web/sites" // Resource Types not present in Azure Resource Graph LocationAssetType = "locations" TenantAssetType = "tenant" SubscriptionAssetType = "subscription" // Authorizationresources group RoleDefinitionsType = "microsoft.authorization/roledefinitions" // Azure Resource Graph table groups AssetGroupAuthorizationResources = "authorizationresources" AssetGroupResourceContainers = "resourcecontainers" AssetGroupResources = "resources" // Extension keys ExtensionAppServiceAuthSettings = "authSettings" ExtensionAppServiceSiteConfig = "siteConfig" ExtensionBlobService = "blobService" ExtensionNetwork = "network" ExtensionUsedForActivityLogs = "usedForActivityLogs" ExtensionSQLEncryptionProtectors = "sqlEncryptionProtectors" ExtensionSQLBlobAuditPolicy = "sqlBlobAuditPolicy" ExtensionSQLTransparentDataEncryptions = "sqlTransparentDataEncryptions" ExtensionSQLAdvancedThreatProtectionSettings = "sqlAdvancedThreatProtectionSettings" ExtensionSQLFirewallRules = "sqlFirewallRules" ExtensionMysqlConfigurations = "mysqlConfigurations" ExtensionPostgresqlConfigurations = "psqlConfigurations" ExtensionPostgresqlFirewallRules = "psqlFirewallRules" ExtensionStorageAccount = "storageAccount" ExtensionStorageAccountID = "storageAccountId" ExtensionStorageAccountName = "storageAccountName" ExtensionBlobDiagnosticSettings = "blobDiagnosticSettings" ExtensionTableDiagnosticSettings = "tableDiagnosticSettings" ExtensionQueueDiagnosticSettings = "queueDiagnosticSettings" ExtensionKeyVaultKeys = "vaultKeys" ExtensionKeyVaultSecrets = "vaultSecrets" ExtensionKeyVaultDiagnosticSettings = "vaultDiagnosticSettings" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppServiceProviderAPI ¶
type AppServiceProviderAPI interface { GetAppServiceAuthSettings(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error) GetAppServiceSiteConfig(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error) }
func NewAppServiceProvider ¶
func NewAppServiceProvider(log *logp.Logger, credentials azcore.TokenCredential) AppServiceProviderAPI
type AzureAsset ¶
type AzureAsset struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` DisplayName string `json:"display_name,omitempty"` Location string `json:"location,omitempty"` Properties map[string]any `json:"properties,omitempty"` Extension map[string]any `json:"extension,omitempty"` ResourceGroup string `json:"resource_group,omitempty"` SubscriptionId string `json:"subscription_id,omitempty"` TenantId string `json:"tenant_id,omitempty"` Type string `json:"type,omitempty"` Sku map[string]any `json:"sku,omitempty"` Identity map[string]any `json:"identity,omitempty"` }
func (*AzureAsset) AddExtension ¶
func (a *AzureAsset) AddExtension(key string, value any)
type KeyVaultProviderAPI ¶
type KeyVaultProviderAPI interface { ListKeyVaultKeys(ctx context.Context, vault AzureAsset) ([]AzureAsset, error) ListKeyVaultSecrets(ctx context.Context, vault AzureAsset) ([]AzureAsset, error) ListKeyVaultDiagnosticSettings(ctx context.Context, vault AzureAsset) ([]AzureAsset, error) }
func NewKeyVaultProvider ¶
func NewKeyVaultProvider(log *logp.Logger, diagnosticSettingsClient *armmonitor.DiagnosticSettingsClient, credentials azcore.TokenCredential) KeyVaultProviderAPI
type MockAppServiceProviderAPI ¶
MockAppServiceProviderAPI is an autogenerated mock type for the AppServiceProviderAPI type
func NewMockAppServiceProviderAPI ¶
func NewMockAppServiceProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockAppServiceProviderAPI
NewMockAppServiceProviderAPI creates a new instance of MockAppServiceProviderAPI. 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 (*MockAppServiceProviderAPI) EXPECT ¶
func (_m *MockAppServiceProviderAPI) EXPECT() *MockAppServiceProviderAPI_Expecter
func (*MockAppServiceProviderAPI) GetAppServiceAuthSettings ¶
func (_m *MockAppServiceProviderAPI) GetAppServiceAuthSettings(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error)
GetAppServiceAuthSettings provides a mock function with given fields: ctx, webApp
func (*MockAppServiceProviderAPI) GetAppServiceSiteConfig ¶
func (_m *MockAppServiceProviderAPI) GetAppServiceSiteConfig(ctx context.Context, webApp AzureAsset) ([]AzureAsset, error)
GetAppServiceSiteConfig provides a mock function with given fields: ctx, webApp
type MockAppServiceProviderAPI_Expecter ¶
type MockAppServiceProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAppServiceProviderAPI_Expecter) GetAppServiceAuthSettings ¶
func (_e *MockAppServiceProviderAPI_Expecter) GetAppServiceAuthSettings(ctx interface{}, webApp interface{}) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
GetAppServiceAuthSettings is a helper method to define mock.On call
- ctx context.Context
- webApp AzureAsset
func (*MockAppServiceProviderAPI_Expecter) GetAppServiceSiteConfig ¶
func (_e *MockAppServiceProviderAPI_Expecter) GetAppServiceSiteConfig(ctx interface{}, webApp interface{}) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
GetAppServiceSiteConfig is a helper method to define mock.On call
- ctx context.Context
- webApp AzureAsset
type MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call ¶
MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppServiceAuthSettings'
func (*MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Return ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
func (*MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Run ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) Run(run func(ctx context.Context, webApp AzureAsset)) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
func (*MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) RunAndReturn ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call
type MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call ¶
MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppServiceSiteConfig'
func (*MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Return ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Return(_a0 []AzureAsset, _a1 error) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
func (*MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Run ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) Run(run func(ctx context.Context, webApp AzureAsset)) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
func (*MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) RunAndReturn ¶
func (_c *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call
type MockKeyVaultProviderAPI ¶
MockKeyVaultProviderAPI is an autogenerated mock type for the KeyVaultProviderAPI type
func NewMockKeyVaultProviderAPI ¶
func NewMockKeyVaultProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockKeyVaultProviderAPI
NewMockKeyVaultProviderAPI creates a new instance of MockKeyVaultProviderAPI. 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 (*MockKeyVaultProviderAPI) EXPECT ¶
func (_m *MockKeyVaultProviderAPI) EXPECT() *MockKeyVaultProviderAPI_Expecter
func (*MockKeyVaultProviderAPI) ListKeyVaultDiagnosticSettings ¶
func (_m *MockKeyVaultProviderAPI) ListKeyVaultDiagnosticSettings(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
ListKeyVaultDiagnosticSettings provides a mock function with given fields: ctx, vault
func (*MockKeyVaultProviderAPI) ListKeyVaultKeys ¶
func (_m *MockKeyVaultProviderAPI) ListKeyVaultKeys(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
ListKeyVaultKeys provides a mock function with given fields: ctx, vault
func (*MockKeyVaultProviderAPI) ListKeyVaultSecrets ¶
func (_m *MockKeyVaultProviderAPI) ListKeyVaultSecrets(ctx context.Context, vault AzureAsset) ([]AzureAsset, error)
ListKeyVaultSecrets provides a mock function with given fields: ctx, vault
type MockKeyVaultProviderAPI_Expecter ¶
type MockKeyVaultProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKeyVaultProviderAPI_Expecter) ListKeyVaultDiagnosticSettings ¶
func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultDiagnosticSettings(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
ListKeyVaultDiagnosticSettings is a helper method to define mock.On call
- ctx context.Context
- vault AzureAsset
func (*MockKeyVaultProviderAPI_Expecter) ListKeyVaultKeys ¶
func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultKeys(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
ListKeyVaultKeys is a helper method to define mock.On call
- ctx context.Context
- vault AzureAsset
func (*MockKeyVaultProviderAPI_Expecter) ListKeyVaultSecrets ¶
func (_e *MockKeyVaultProviderAPI_Expecter) ListKeyVaultSecrets(ctx interface{}, vault interface{}) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
ListKeyVaultSecrets is a helper method to define mock.On call
- ctx context.Context
- vault AzureAsset
type MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call ¶
MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeyVaultDiagnosticSettings'
func (*MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Return ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Run ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) RunAndReturn ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call
type MockKeyVaultProviderAPI_ListKeyVaultKeys_Call ¶
MockKeyVaultProviderAPI_ListKeyVaultKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeyVaultKeys'
func (*MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Return ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Run ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) RunAndReturn ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultKeys_Call
type MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call ¶
MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeyVaultSecrets'
func (*MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Return ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Return(_a0 []AzureAsset, _a1 error) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Run ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) Run(run func(ctx context.Context, vault AzureAsset)) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
func (*MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) RunAndReturn ¶
func (_c *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) RunAndReturn(run func(context.Context, AzureAsset) ([]AzureAsset, error)) *MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call
type MockMysqlProviderAPI ¶
MockMysqlProviderAPI is an autogenerated mock type for the MysqlProviderAPI type
func NewMockMysqlProviderAPI ¶
func NewMockMysqlProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockMysqlProviderAPI
NewMockMysqlProviderAPI creates a new instance of MockMysqlProviderAPI. 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 (*MockMysqlProviderAPI) EXPECT ¶
func (_m *MockMysqlProviderAPI) EXPECT() *MockMysqlProviderAPI_Expecter
func (*MockMysqlProviderAPI) GetFlexibleTLSVersionConfiguration ¶
func (_m *MockMysqlProviderAPI) GetFlexibleTLSVersionConfiguration(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
GetFlexibleTLSVersionConfiguration provides a mock function with given fields: ctx, subID, resourceGroup, serverName
type MockMysqlProviderAPI_Expecter ¶
type MockMysqlProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMysqlProviderAPI_Expecter) GetFlexibleTLSVersionConfiguration ¶
func (_e *MockMysqlProviderAPI_Expecter) GetFlexibleTLSVersionConfiguration(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
GetFlexibleTLSVersionConfiguration is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
type MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call ¶
MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlexibleTLSVersionConfiguration'
func (*MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Return ¶
func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Return(_a0 []AzureAsset, _a1 error) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
func (*MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Run ¶
func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
func (*MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) RunAndReturn ¶
func (_c *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call
type MockPostgresqlProviderAPI ¶
MockPostgresqlProviderAPI is an autogenerated mock type for the PostgresqlProviderAPI type
func NewMockPostgresqlProviderAPI ¶
func NewMockPostgresqlProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockPostgresqlProviderAPI
NewMockPostgresqlProviderAPI creates a new instance of MockPostgresqlProviderAPI. 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 (*MockPostgresqlProviderAPI) EXPECT ¶
func (_m *MockPostgresqlProviderAPI) EXPECT() *MockPostgresqlProviderAPI_Expecter
func (*MockPostgresqlProviderAPI) ListFlexiblePostgresConfigurations ¶
func (_m *MockPostgresqlProviderAPI) ListFlexiblePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListFlexiblePostgresConfigurations provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockPostgresqlProviderAPI) ListFlexiblePostgresFirewallRules ¶
func (_m *MockPostgresqlProviderAPI) ListFlexiblePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListFlexiblePostgresFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockPostgresqlProviderAPI) ListSinglePostgresConfigurations ¶
func (_m *MockPostgresqlProviderAPI) ListSinglePostgresConfigurations(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSinglePostgresConfigurations provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockPostgresqlProviderAPI) ListSinglePostgresFirewallRules ¶
func (_m *MockPostgresqlProviderAPI) ListSinglePostgresFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSinglePostgresFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName
type MockPostgresqlProviderAPI_Expecter ¶
type MockPostgresqlProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresConfigurations ¶
func (_e *MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
ListFlexiblePostgresConfigurations is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresFirewallRules ¶
func (_e *MockPostgresqlProviderAPI_Expecter) ListFlexiblePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
ListFlexiblePostgresFirewallRules is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockPostgresqlProviderAPI_Expecter) ListSinglePostgresConfigurations ¶
func (_e *MockPostgresqlProviderAPI_Expecter) ListSinglePostgresConfigurations(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
ListSinglePostgresConfigurations is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockPostgresqlProviderAPI_Expecter) ListSinglePostgresFirewallRules ¶
func (_e *MockPostgresqlProviderAPI_Expecter) ListSinglePostgresFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
ListSinglePostgresFirewallRules is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
type MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call ¶
MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFlexiblePostgresConfigurations'
func (*MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Run ¶
func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
func (*MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) RunAndReturn ¶
func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call
type MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call ¶
MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFlexiblePostgresFirewallRules'
func (*MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Run ¶
func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
func (*MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) RunAndReturn ¶
func (_c *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call
type MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call ¶
MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSinglePostgresConfigurations'
func (*MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Run ¶
func (_c *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
func (*MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) RunAndReturn ¶
func (_c *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call
type MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call ¶
MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSinglePostgresFirewallRules'
func (*MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Run ¶
func (_c *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
func (*MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) RunAndReturn ¶
func (_c *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call
type MockResourceGraphProviderAPI ¶
MockResourceGraphProviderAPI is an autogenerated mock type for the ResourceGraphProviderAPI type
func NewMockResourceGraphProviderAPI ¶
func NewMockResourceGraphProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockResourceGraphProviderAPI
NewMockResourceGraphProviderAPI creates a new instance of MockResourceGraphProviderAPI. 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 (*MockResourceGraphProviderAPI) EXPECT ¶
func (_m *MockResourceGraphProviderAPI) EXPECT() *MockResourceGraphProviderAPI_Expecter
func (*MockResourceGraphProviderAPI) ListAllAssetTypesByName ¶
func (_m *MockResourceGraphProviderAPI) ListAllAssetTypesByName(ctx context.Context, assetsGroup string, assets []string) ([]AzureAsset, error)
ListAllAssetTypesByName provides a mock function with given fields: ctx, assetsGroup, assets
type MockResourceGraphProviderAPI_Expecter ¶
type MockResourceGraphProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockResourceGraphProviderAPI_Expecter) ListAllAssetTypesByName ¶
func (_e *MockResourceGraphProviderAPI_Expecter) ListAllAssetTypesByName(ctx interface{}, assetsGroup interface{}, assets interface{}) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
ListAllAssetTypesByName is a helper method to define mock.On call
- ctx context.Context
- assetsGroup string
- assets []string
type MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call ¶
MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllAssetTypesByName'
func (*MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Return ¶
func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Return(_a0 []AzureAsset, _a1 error) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
func (*MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Run ¶
func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) Run(run func(ctx context.Context, assetsGroup string, assets []string)) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
func (*MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) RunAndReturn ¶
func (_c *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) RunAndReturn(run func(context.Context, string, []string) ([]AzureAsset, error)) *MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call
type MockSQLProviderAPI ¶
MockSQLProviderAPI is an autogenerated mock type for the SQLProviderAPI type
func NewMockSQLProviderAPI ¶
func NewMockSQLProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockSQLProviderAPI
NewMockSQLProviderAPI creates a new instance of MockSQLProviderAPI. 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 (*MockSQLProviderAPI) EXPECT ¶
func (_m *MockSQLProviderAPI) EXPECT() *MockSQLProviderAPI_Expecter
func (*MockSQLProviderAPI) GetSQLBlobAuditingPolicies ¶
func (_m *MockSQLProviderAPI) GetSQLBlobAuditingPolicies(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
GetSQLBlobAuditingPolicies provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockSQLProviderAPI) ListSQLAdvancedThreatProtectionSettings ¶
func (_m *MockSQLProviderAPI) ListSQLAdvancedThreatProtectionSettings(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSQLAdvancedThreatProtectionSettings provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockSQLProviderAPI) ListSQLEncryptionProtector ¶
func (_m *MockSQLProviderAPI) ListSQLEncryptionProtector(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSQLEncryptionProtector provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockSQLProviderAPI) ListSQLFirewallRules ¶
func (_m *MockSQLProviderAPI) ListSQLFirewallRules(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSQLFirewallRules provides a mock function with given fields: ctx, subID, resourceGroup, serverName
func (*MockSQLProviderAPI) ListSQLTransparentDataEncryptions ¶
func (_m *MockSQLProviderAPI) ListSQLTransparentDataEncryptions(ctx context.Context, subID string, resourceGroup string, serverName string) ([]AzureAsset, error)
ListSQLTransparentDataEncryptions provides a mock function with given fields: ctx, subID, resourceGroup, serverName
type MockSQLProviderAPI_Expecter ¶
type MockSQLProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSQLProviderAPI_Expecter) GetSQLBlobAuditingPolicies ¶
func (_e *MockSQLProviderAPI_Expecter) GetSQLBlobAuditingPolicies(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
GetSQLBlobAuditingPolicies is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockSQLProviderAPI_Expecter) ListSQLAdvancedThreatProtectionSettings ¶
func (_e *MockSQLProviderAPI_Expecter) ListSQLAdvancedThreatProtectionSettings(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
ListSQLAdvancedThreatProtectionSettings is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockSQLProviderAPI_Expecter) ListSQLEncryptionProtector ¶
func (_e *MockSQLProviderAPI_Expecter) ListSQLEncryptionProtector(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
ListSQLEncryptionProtector is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockSQLProviderAPI_Expecter) ListSQLFirewallRules ¶
func (_e *MockSQLProviderAPI_Expecter) ListSQLFirewallRules(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockSQLProviderAPI_ListSQLFirewallRules_Call
ListSQLFirewallRules is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
func (*MockSQLProviderAPI_Expecter) ListSQLTransparentDataEncryptions ¶
func (_e *MockSQLProviderAPI_Expecter) ListSQLTransparentDataEncryptions(ctx interface{}, subID interface{}, resourceGroup interface{}, serverName interface{}) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
ListSQLTransparentDataEncryptions is a helper method to define mock.On call
- ctx context.Context
- subID string
- resourceGroup string
- serverName string
type MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call ¶
MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSQLBlobAuditingPolicies'
func (*MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Return ¶
func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
func (*MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Run ¶
func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
func (*MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) RunAndReturn ¶
func (_c *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call
type MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call ¶
MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSQLAdvancedThreatProtectionSettings'
func (*MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Run ¶
func (_c *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
func (*MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) RunAndReturn ¶
func (_c *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call
type MockSQLProviderAPI_ListSQLEncryptionProtector_Call ¶
MockSQLProviderAPI_ListSQLEncryptionProtector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSQLEncryptionProtector'
func (*MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Return ¶
func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
func (*MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Run ¶
func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
func (*MockSQLProviderAPI_ListSQLEncryptionProtector_Call) RunAndReturn ¶
func (_c *MockSQLProviderAPI_ListSQLEncryptionProtector_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLEncryptionProtector_Call
type MockSQLProviderAPI_ListSQLFirewallRules_Call ¶
MockSQLProviderAPI_ListSQLFirewallRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSQLFirewallRules'
func (*MockSQLProviderAPI_ListSQLFirewallRules_Call) Return ¶
func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLFirewallRules_Call
func (*MockSQLProviderAPI_ListSQLFirewallRules_Call) Run ¶
func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockSQLProviderAPI_ListSQLFirewallRules_Call
func (*MockSQLProviderAPI_ListSQLFirewallRules_Call) RunAndReturn ¶
func (_c *MockSQLProviderAPI_ListSQLFirewallRules_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLFirewallRules_Call
type MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call ¶
MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSQLTransparentDataEncryptions'
func (*MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Return ¶
func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Return(_a0 []AzureAsset, _a1 error) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
func (*MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Run ¶
func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) Run(run func(ctx context.Context, subID string, resourceGroup string, serverName string)) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
func (*MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) RunAndReturn ¶
func (_c *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) RunAndReturn(run func(context.Context, string, string, string) ([]AzureAsset, error)) *MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call
type MockSecurityContactsProviderAPI ¶
MockSecurityContactsProviderAPI is an autogenerated mock type for the SecurityContactsProviderAPI type
func NewMockSecurityContactsProviderAPI ¶
func NewMockSecurityContactsProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockSecurityContactsProviderAPI
NewMockSecurityContactsProviderAPI creates a new instance of MockSecurityContactsProviderAPI. 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 (*MockSecurityContactsProviderAPI) EXPECT ¶
func (_m *MockSecurityContactsProviderAPI) EXPECT() *MockSecurityContactsProviderAPI_Expecter
func (*MockSecurityContactsProviderAPI) ListAutoProvisioningSettings ¶
func (_m *MockSecurityContactsProviderAPI) ListAutoProvisioningSettings(ctx context.Context, subscriptionID string) ([]AzureAsset, error)
ListAutoProvisioningSettings provides a mock function with given fields: ctx, subscriptionID
func (*MockSecurityContactsProviderAPI) ListSecurityContacts ¶
func (_m *MockSecurityContactsProviderAPI) ListSecurityContacts(ctx context.Context, subscriptionID string) ([]AzureAsset, error)
ListSecurityContacts provides a mock function with given fields: ctx, subscriptionID
type MockSecurityContactsProviderAPI_Expecter ¶
type MockSecurityContactsProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecurityContactsProviderAPI_Expecter) ListAutoProvisioningSettings ¶
func (_e *MockSecurityContactsProviderAPI_Expecter) ListAutoProvisioningSettings(ctx interface{}, subscriptionID interface{}) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
ListAutoProvisioningSettings is a helper method to define mock.On call
- ctx context.Context
- subscriptionID string
func (*MockSecurityContactsProviderAPI_Expecter) ListSecurityContacts ¶
func (_e *MockSecurityContactsProviderAPI_Expecter) ListSecurityContacts(ctx interface{}, subscriptionID interface{}) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
ListSecurityContacts is a helper method to define mock.On call
- ctx context.Context
- subscriptionID string
type MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call ¶
MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAutoProvisioningSettings'
func (*MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Run ¶
func (_c *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Run(run func(ctx context.Context, subscriptionID string)) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
func (*MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) RunAndReturn ¶
func (_c *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call
type MockSecurityContactsProviderAPI_ListSecurityContacts_Call ¶
MockSecurityContactsProviderAPI_ListSecurityContacts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecurityContacts'
func (*MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Return ¶
func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Return(_a0 []AzureAsset, _a1 error) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
func (*MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Run ¶
func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) Run(run func(ctx context.Context, subscriptionID string)) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
func (*MockSecurityContactsProviderAPI_ListSecurityContacts_Call) RunAndReturn ¶
func (_c *MockSecurityContactsProviderAPI_ListSecurityContacts_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSecurityContactsProviderAPI_ListSecurityContacts_Call
type MockStorageAccountProviderAPI ¶
MockStorageAccountProviderAPI is an autogenerated mock type for the StorageAccountProviderAPI type
func NewMockStorageAccountProviderAPI ¶
func NewMockStorageAccountProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockStorageAccountProviderAPI
NewMockStorageAccountProviderAPI creates a new instance of MockStorageAccountProviderAPI. 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 (*MockStorageAccountProviderAPI) EXPECT ¶
func (_m *MockStorageAccountProviderAPI) EXPECT() *MockStorageAccountProviderAPI_Expecter
func (*MockStorageAccountProviderAPI) ListDiagnosticSettingsAssetTypes ¶
func (_m *MockStorageAccountProviderAPI) ListDiagnosticSettingsAssetTypes(ctx context.Context, cycleMetadata cycle.Metadata, subscriptionIDs []string) ([]AzureAsset, error)
ListDiagnosticSettingsAssetTypes provides a mock function with given fields: ctx, cycleMetadata, subscriptionIDs
func (*MockStorageAccountProviderAPI) ListStorageAccountBlobServices ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountBlobServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountBlobServices provides a mock function with given fields: ctx, storageAccounts
func (*MockStorageAccountProviderAPI) ListStorageAccountQueueServices ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountQueueServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountQueueServices provides a mock function with given fields: ctx, storageAccounts
func (*MockStorageAccountProviderAPI) ListStorageAccountQueues ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountQueues(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountQueues provides a mock function with given fields: ctx, storageAccounts
func (*MockStorageAccountProviderAPI) ListStorageAccounts ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccounts(ctx context.Context, storageAccountsSubscriptionsIds []string) ([]AzureAsset, error)
ListStorageAccounts provides a mock function with given fields: ctx, storageAccountsSubscriptionsIds
func (*MockStorageAccountProviderAPI) ListStorageAccountsBlobDiagnosticSettings ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountsBlobDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountsBlobDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts
func (*MockStorageAccountProviderAPI) ListStorageAccountsQueueDiagnosticSettings ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountsQueueDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountsQueueDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts
func (*MockStorageAccountProviderAPI) ListStorageAccountsTableDiagnosticSettings ¶
func (_m *MockStorageAccountProviderAPI) ListStorageAccountsTableDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error)
ListStorageAccountsTableDiagnosticSettings provides a mock function with given fields: ctx, storageAccounts
type MockStorageAccountProviderAPI_Expecter ¶
type MockStorageAccountProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorageAccountProviderAPI_Expecter) ListDiagnosticSettingsAssetTypes ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListDiagnosticSettingsAssetTypes(ctx interface{}, cycleMetadata interface{}, subscriptionIDs interface{}) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
ListDiagnosticSettingsAssetTypes is a helper method to define mock.On call
- ctx context.Context
- cycleMetadata cycle.Metadata
- subscriptionIDs []string
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountBlobServices ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountBlobServices(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
ListStorageAccountBlobServices is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueueServices ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueueServices(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
ListStorageAccountQueueServices is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueues ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountQueues(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
ListStorageAccountQueues is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccounts ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccounts(ctx interface{}, storageAccountsSubscriptionsIds interface{}) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
ListStorageAccounts is a helper method to define mock.On call
- ctx context.Context
- storageAccountsSubscriptionsIds []string
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountsBlobDiagnosticSettings ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsBlobDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
ListStorageAccountsBlobDiagnosticSettings is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountsQueueDiagnosticSettings ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsQueueDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
ListStorageAccountsQueueDiagnosticSettings is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
func (*MockStorageAccountProviderAPI_Expecter) ListStorageAccountsTableDiagnosticSettings ¶
func (_e *MockStorageAccountProviderAPI_Expecter) ListStorageAccountsTableDiagnosticSettings(ctx interface{}, storageAccounts interface{}) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
ListStorageAccountsTableDiagnosticSettings is a helper method to define mock.On call
- ctx context.Context
- storageAccounts []AzureAsset
type MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call ¶
MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDiagnosticSettingsAssetTypes'
func (*MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Run(run func(ctx context.Context, cycleMetadata cycle.Metadata, subscriptionIDs []string)) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
func (*MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) RunAndReturn(run func(context.Context, cycle.Metadata, []string) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call
type MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call ¶
MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountBlobServices'
func (*MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call
type MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call ¶
MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountQueueServices'
func (*MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountQueueServices_Call
type MockStorageAccountProviderAPI_ListStorageAccountQueues_Call ¶
MockStorageAccountProviderAPI_ListStorageAccountQueues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountQueues'
func (*MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Return ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountQueues_Call
type MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call ¶
type MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call struct {
*mock.Call
}
MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountsBlobDiagnosticSettings'
func (*MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call
type MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call ¶
type MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call struct {
*mock.Call
}
MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountsQueueDiagnosticSettings'
func (*MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call
type MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call ¶
type MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call struct {
*mock.Call
}
MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccountsTableDiagnosticSettings'
func (*MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Run(run func(ctx context.Context, storageAccounts []AzureAsset)) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
func (*MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) RunAndReturn(run func(context.Context, []AzureAsset) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call
type MockStorageAccountProviderAPI_ListStorageAccounts_Call ¶
MockStorageAccountProviderAPI_ListStorageAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStorageAccounts'
func (*MockStorageAccountProviderAPI_ListStorageAccounts_Call) Return ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) Return(_a0 []AzureAsset, _a1 error) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
func (*MockStorageAccountProviderAPI_ListStorageAccounts_Call) Run ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) Run(run func(ctx context.Context, storageAccountsSubscriptionsIds []string)) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
func (*MockStorageAccountProviderAPI_ListStorageAccounts_Call) RunAndReturn ¶
func (_c *MockStorageAccountProviderAPI_ListStorageAccounts_Call) RunAndReturn(run func(context.Context, []string) ([]AzureAsset, error)) *MockStorageAccountProviderAPI_ListStorageAccounts_Call
type MockSubscriptionProviderAPI ¶
MockSubscriptionProviderAPI is an autogenerated mock type for the SubscriptionProviderAPI type
func NewMockSubscriptionProviderAPI ¶
func NewMockSubscriptionProviderAPI(t interface { mock.TestingT Cleanup(func()) }) *MockSubscriptionProviderAPI
NewMockSubscriptionProviderAPI creates a new instance of MockSubscriptionProviderAPI. 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 (*MockSubscriptionProviderAPI) EXPECT ¶
func (_m *MockSubscriptionProviderAPI) EXPECT() *MockSubscriptionProviderAPI_Expecter
func (*MockSubscriptionProviderAPI) ListLocations ¶
func (_m *MockSubscriptionProviderAPI) ListLocations(ctx context.Context, subID string) ([]AzureAsset, error)
ListLocations provides a mock function with given fields: ctx, subID
func (*MockSubscriptionProviderAPI) ListSubscriptions ¶
func (_m *MockSubscriptionProviderAPI) ListSubscriptions(ctx context.Context) ([]AzureAsset, error)
ListSubscriptions provides a mock function with given fields: ctx
func (*MockSubscriptionProviderAPI) ListTenants ¶
func (_m *MockSubscriptionProviderAPI) ListTenants(ctx context.Context) ([]AzureAsset, error)
ListTenants provides a mock function with given fields: ctx
type MockSubscriptionProviderAPI_Expecter ¶
type MockSubscriptionProviderAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSubscriptionProviderAPI_Expecter) ListLocations ¶
func (_e *MockSubscriptionProviderAPI_Expecter) ListLocations(ctx interface{}, subID interface{}) *MockSubscriptionProviderAPI_ListLocations_Call
ListLocations is a helper method to define mock.On call
- ctx context.Context
- subID string
func (*MockSubscriptionProviderAPI_Expecter) ListSubscriptions ¶
func (_e *MockSubscriptionProviderAPI_Expecter) ListSubscriptions(ctx interface{}) *MockSubscriptionProviderAPI_ListSubscriptions_Call
ListSubscriptions is a helper method to define mock.On call
- ctx context.Context
func (*MockSubscriptionProviderAPI_Expecter) ListTenants ¶
func (_e *MockSubscriptionProviderAPI_Expecter) ListTenants(ctx interface{}) *MockSubscriptionProviderAPI_ListTenants_Call
ListTenants is a helper method to define mock.On call
- ctx context.Context
type MockSubscriptionProviderAPI_ListLocations_Call ¶
MockSubscriptionProviderAPI_ListLocations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListLocations'
func (*MockSubscriptionProviderAPI_ListLocations_Call) Return ¶
func (_c *MockSubscriptionProviderAPI_ListLocations_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListLocations_Call
func (*MockSubscriptionProviderAPI_ListLocations_Call) Run ¶
func (_c *MockSubscriptionProviderAPI_ListLocations_Call) Run(run func(ctx context.Context, subID string)) *MockSubscriptionProviderAPI_ListLocations_Call
func (*MockSubscriptionProviderAPI_ListLocations_Call) RunAndReturn ¶
func (_c *MockSubscriptionProviderAPI_ListLocations_Call) RunAndReturn(run func(context.Context, string) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListLocations_Call
type MockSubscriptionProviderAPI_ListSubscriptions_Call ¶
MockSubscriptionProviderAPI_ListSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptions'
func (*MockSubscriptionProviderAPI_ListSubscriptions_Call) Return ¶
func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListSubscriptions_Call
func (*MockSubscriptionProviderAPI_ListSubscriptions_Call) Run ¶
func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) Run(run func(ctx context.Context)) *MockSubscriptionProviderAPI_ListSubscriptions_Call
func (*MockSubscriptionProviderAPI_ListSubscriptions_Call) RunAndReturn ¶
func (_c *MockSubscriptionProviderAPI_ListSubscriptions_Call) RunAndReturn(run func(context.Context) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListSubscriptions_Call
type MockSubscriptionProviderAPI_ListTenants_Call ¶
MockSubscriptionProviderAPI_ListTenants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTenants'
func (*MockSubscriptionProviderAPI_ListTenants_Call) Return ¶
func (_c *MockSubscriptionProviderAPI_ListTenants_Call) Return(_a0 []AzureAsset, _a1 error) *MockSubscriptionProviderAPI_ListTenants_Call
func (*MockSubscriptionProviderAPI_ListTenants_Call) Run ¶
func (_c *MockSubscriptionProviderAPI_ListTenants_Call) Run(run func(ctx context.Context)) *MockSubscriptionProviderAPI_ListTenants_Call
func (*MockSubscriptionProviderAPI_ListTenants_Call) RunAndReturn ¶
func (_c *MockSubscriptionProviderAPI_ListTenants_Call) RunAndReturn(run func(context.Context) ([]AzureAsset, error)) *MockSubscriptionProviderAPI_ListTenants_Call
type MysqlProviderAPI ¶
type MysqlProviderAPI interface { // GetFlexibleTLSVersionConfiguration fetches SSL Configuration for flexible mysql servers // We are fetching specifically SSL configuration only. There is, though a bulk configurations call // in the SDK. If more configurations for flexible mysql servers are needed, it's good switch to the bulk call // instead of making singular calls GetFlexibleTLSVersionConfiguration(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) }
func NewMysqlProvider ¶
func NewMysqlProvider(log *logp.Logger, credentials azcore.TokenCredential) MysqlProviderAPI
type PostgresqlProviderAPI ¶
type PostgresqlProviderAPI interface { ListSinglePostgresConfigurations(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListFlexiblePostgresConfigurations(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListSinglePostgresFirewallRules(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListFlexiblePostgresFirewallRules(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) }
func NewPostgresqlProvider ¶
func NewPostgresqlProvider(log *logp.Logger, credentials azcore.TokenCredential) PostgresqlProviderAPI
type ResourceGraphAzureClientWrapper ¶
type ResourceGraphAzureClientWrapper struct {
AssetQuery func(ctx context.Context, query armresourcegraph.QueryRequest, options *armresourcegraph.ClientResourcesOptions) (armresourcegraph.ClientResourcesResponse, error)
}
type ResourceGraphProvider ¶
type ResourceGraphProvider struct {
// contains filtered or unexported fields
}
func (*ResourceGraphProvider) ListAllAssetTypesByName ¶
func (p *ResourceGraphProvider) ListAllAssetTypesByName(ctx context.Context, assetGroup string, assets []string) ([]AzureAsset, error)
type ResourceGraphProviderAPI ¶
type ResourceGraphProviderAPI interface { // ListAllAssetTypesByName List all content types of the given assets types ListAllAssetTypesByName(ctx context.Context, assetsGroup string, assets []string) ([]AzureAsset, error) }
func NewResourceGraphProvider ¶
func NewResourceGraphProvider(log *logp.Logger, resourceGraphClient *armresourcegraph.Client) ResourceGraphProviderAPI
type SQLProviderAPI ¶
type SQLProviderAPI interface { ListSQLEncryptionProtector(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListSQLTransparentDataEncryptions(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) GetSQLBlobAuditingPolicies(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListSQLAdvancedThreatProtectionSettings(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) ListSQLFirewallRules(ctx context.Context, subID, resourceGroup, serverName string) ([]AzureAsset, error) }
func NewSQLProvider ¶
func NewSQLProvider(log *logp.Logger, credentials azcore.TokenCredential) SQLProviderAPI
type SecurityContactsProviderAPI ¶
type SecurityContactsProviderAPI interface { ListSecurityContacts(ctx context.Context, subscriptionID string) ([]AzureAsset, error) ListAutoProvisioningSettings(ctx context.Context, subscriptionID string) ([]AzureAsset, error) }
func NewSecurityContacts ¶
func NewSecurityContacts(log *logp.Logger, credential azcore.TokenCredential) SecurityContactsProviderAPI
type StorageAccountProviderAPI ¶
type StorageAccountProviderAPI interface { ListDiagnosticSettingsAssetTypes(ctx context.Context, cycleMetadata cycle.Metadata, subscriptionIDs []string) ([]AzureAsset, error) ListStorageAccountBlobServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccountQueues(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccountQueueServices(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccountsBlobDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccountsTableDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccountsQueueDiagnosticSettings(ctx context.Context, storageAccounts []AzureAsset) ([]AzureAsset, error) ListStorageAccounts(ctx context.Context, storageAccountsSubscriptionsIds []string) ([]AzureAsset, error) }
func NewStorageAccountProvider ¶
func NewStorageAccountProvider(log *logp.Logger, diagnosticSettingsClient *armmonitor.DiagnosticSettingsClient, credentials azcore.TokenCredential) StorageAccountProviderAPI
type SubscriptionProviderAPI ¶
type SubscriptionProviderAPI interface { ListLocations(ctx context.Context, subID string) ([]AzureAsset, error) ListTenants(ctx context.Context) ([]AzureAsset, error) ListSubscriptions(ctx context.Context) ([]AzureAsset, error) }
func NewSubscriptionProvider ¶
func NewSubscriptionProvider(log *logp.Logger, credentials azcore.TokenCredential) SubscriptionProviderAPI
Source Files ¶
- app_service_provider.go
- asset.go
- keyvault_provider.go
- mock_app_service_provider_api.go
- mock_key_vault_provider_api.go
- mock_mysql_provider_api.go
- mock_postgresql_provider_api.go
- mock_resource_graph_provider_api.go
- mock_security_client_wrapper.go
- mock_security_contacts_provider_api.go
- mock_sql_provider_api.go
- mock_storage_account_provider_api.go
- mock_subscription_provider_api.go
- mysql_provider.go
- postgresql_provider.go
- resource_graph_provider.go
- security_provider.go
- sql_server_provider.go
- storage_provider.go
- susbcriptions_provider.go