inventory

package
v0.0.0-...-27baac2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Resources group
	ActivityLogAlertAssetType            = "microsoft.insights/activitylogalerts"
	ApplicationInsights                  = "microsoft.insights/components"
	BastionAssetType                     = "microsoft.network/bastionhosts"
	BlobServiceAssetType                 = "microsoft.storage/storageaccounts/blobservices"
	ClassicStorageAccountAssetType       = "microsoft.classicstorage/storageaccounts"
	DiagnosticSettingsAssetType          = "microsoft.insights/diagnosticSettings"
	DiskAssetType                        = "microsoft.compute/disks"
	DocumentDBDatabaseAccountAssetType   = "microsoft.documentdb/databaseaccounts"
	MySQLDBAssetType                     = "microsoft.dbformysql/servers"
	FlexibleMySQLDBAssetType             = "microsoft.dbformysql/flexibleservers"
	NetworkWatchersAssetType             = "microsoft.network/networkwatchers"
	NetworkWatchersFlowLogAssetType      = "microsoft.network/networkwatchers/flowlogs"
	NetworkSecurityGroupAssetType        = "microsoft.network/networksecuritygroups"
	PostgreSQLDBAssetType                = "microsoft.dbforpostgresql/servers"
	FlexiblePostgreSQLDBAssetType        = "microsoft.dbforpostgresql/flexibleservers"
	SecurityAutoProvisioningSettingsType = "microsoft.security/autoprovisioningsettings"
	SecurityContactsAssetType            = "microsoft.security/securitycontacts"
	SQLServersAssetType                  = "microsoft.sql/servers"
	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"

	// Authorizationresources group
	RoleDefinitionsType = "microsoft.authorization/roledefinitions"

	// Azure Resource Graph table groups
	AssetGroupResources              = "resources"
	AssetGroupAuthorizationResources = "authorizationresources"

	// 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

type MockAppServiceProviderAPI struct {
	mock.Mock
}

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

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

func (*MockAppServiceProviderAPI_GetAppServiceAuthSettings_Call) RunAndReturn

type MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call

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

func (*MockAppServiceProviderAPI_GetAppServiceSiteConfig_Call) RunAndReturn

type MockKeyVaultProviderAPI

type MockKeyVaultProviderAPI struct {
	mock.Mock
}

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

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

func (*MockKeyVaultProviderAPI_ListKeyVaultDiagnosticSettings_Call) RunAndReturn

type MockKeyVaultProviderAPI_ListKeyVaultKeys_Call

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

func (*MockKeyVaultProviderAPI_ListKeyVaultKeys_Call) RunAndReturn

type MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call

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

func (*MockKeyVaultProviderAPI_ListKeyVaultSecrets_Call) RunAndReturn

type MockMysqlProviderAPI

type MockMysqlProviderAPI struct {
	mock.Mock
}

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

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

func (*MockMysqlProviderAPI_GetFlexibleTLSVersionConfiguration_Call) RunAndReturn

type MockPostgresqlProviderAPI

type MockPostgresqlProviderAPI struct {
	mock.Mock
}

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

type MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call struct {
	*mock.Call
}

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

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Return

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) Run

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresConfigurations_Call) RunAndReturn

type MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call

type MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call struct {
	*mock.Call
}

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

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Return

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) Run

func (*MockPostgresqlProviderAPI_ListFlexiblePostgresFirewallRules_Call) RunAndReturn

type MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call

type MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call struct {
	*mock.Call
}

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

func (*MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Return

func (*MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) Run

func (*MockPostgresqlProviderAPI_ListSinglePostgresConfigurations_Call) RunAndReturn

type MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call

type MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call struct {
	*mock.Call
}

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

func (*MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Return

func (*MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) Run

func (*MockPostgresqlProviderAPI_ListSinglePostgresFirewallRules_Call) RunAndReturn

type MockResourceGraphProviderAPI

type MockResourceGraphProviderAPI struct {
	mock.Mock
}

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

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

func (*MockResourceGraphProviderAPI_ListAllAssetTypesByName_Call) RunAndReturn

type MockSQLProviderAPI

type MockSQLProviderAPI struct {
	mock.Mock
}

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

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

func (*MockSQLProviderAPI_GetSQLBlobAuditingPolicies_Call) RunAndReturn

type MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call

type MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call struct {
	*mock.Call
}

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

func (*MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Return

func (*MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) Run

func (*MockSQLProviderAPI_ListSQLAdvancedThreatProtectionSettings_Call) RunAndReturn

type MockSQLProviderAPI_ListSQLEncryptionProtector_Call

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

func (*MockSQLProviderAPI_ListSQLEncryptionProtector_Call) RunAndReturn

type MockSQLProviderAPI_ListSQLFirewallRules_Call

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

func (*MockSQLProviderAPI_ListSQLFirewallRules_Call) RunAndReturn

type MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call

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

func (*MockSQLProviderAPI_ListSQLTransparentDataEncryptions_Call) RunAndReturn

type MockSecurityContactsProviderAPI

type MockSecurityContactsProviderAPI struct {
	mock.Mock
}

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

type MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call struct {
	*mock.Call
}

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

func (*MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Return

func (*MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) Run

func (*MockSecurityContactsProviderAPI_ListAutoProvisioningSettings_Call) RunAndReturn

type MockSecurityContactsProviderAPI_ListSecurityContacts_Call

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

func (*MockSecurityContactsProviderAPI_ListSecurityContacts_Call) RunAndReturn

type MockStorageAccountProviderAPI

type MockStorageAccountProviderAPI struct {
	mock.Mock
}

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

type MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call struct {
	*mock.Call
}

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

func (*MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Return

func (*MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) Run

func (*MockStorageAccountProviderAPI_ListDiagnosticSettingsAssetTypes_Call) RunAndReturn

type MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call

type MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call struct {
	*mock.Call
}

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

func (*MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Return

func (*MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) Run

func (*MockStorageAccountProviderAPI_ListStorageAccountBlobServices_Call) RunAndReturn

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

func (*MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) Run

func (*MockStorageAccountProviderAPI_ListStorageAccountsBlobDiagnosticSettings_Call) RunAndReturn

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

func (*MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) Run

func (*MockStorageAccountProviderAPI_ListStorageAccountsQueueDiagnosticSettings_Call) RunAndReturn

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

func (*MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) Run

func (*MockStorageAccountProviderAPI_ListStorageAccountsTableDiagnosticSettings_Call) RunAndReturn

type MockStorageAccountProviderAPI_ListStorageAccounts_Call

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

func (*MockStorageAccountProviderAPI_ListStorageAccounts_Call) RunAndReturn

type MockSubscriptionProviderAPI

type MockSubscriptionProviderAPI struct {
	mock.Mock
}

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 (*MockSubscriptionProviderAPI) ListLocations

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

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

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

type MockSubscriptionProviderAPI_ListLocations_Call

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

func (*MockSubscriptionProviderAPI_ListLocations_Call) RunAndReturn

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, armClient *arm.Client) 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)
	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)
}

func NewSubscriptionProvider

func NewSubscriptionProvider(log *logp.Logger, credentials azcore.TokenCredential) SubscriptionProviderAPI

Jump to

Keyboard shortcuts

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