Documentation ¶
Index ¶
- func NewAssetRepository(client *asset.Client, config config.GCPTerraformConfig, c cache.Cache) *assetRepository
- func NewStorageRepository(client *storage.Client, cache cache.Cache) *storageRepository
- type AssetRepository
- type CloudResourceManagerRepository
- type MockAssetRepository
- func (_m *MockAssetRepository) SearchAllAddresses() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllBigtableInstances() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllBigtableTables() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllBuckets() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllCloudRunServices() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllDNSManagedZones() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllDatasets() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllDisks() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllFirewalls() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllFunctions() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllGlobalAddresses() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllHealthChecks() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllImages() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllInstanceGroups() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllInstances() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllNetworks() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllNodeGroups() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllRouters() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllSQLDatabaseInstances() ([]*asset.Asset, error)
- func (_m *MockAssetRepository) SearchAllSubnetworks() ([]*asset.ResourceSearchResult, error)
- func (_m *MockAssetRepository) SearchAllTables() ([]*asset.ResourceSearchResult, error)
- type MockCloudResourceManagerRepository
- type MockStorageRepository
- type StorageRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssetRepository ¶
Types ¶
type AssetRepository ¶
type AssetRepository interface { SearchAllBuckets() ([]*assetpb.ResourceSearchResult, error) SearchAllFirewalls() ([]*assetpb.ResourceSearchResult, error) SearchAllRouters() ([]*assetpb.ResourceSearchResult, error) SearchAllInstances() ([]*assetpb.ResourceSearchResult, error) SearchAllNetworks() ([]*assetpb.ResourceSearchResult, error) SearchAllDisks() ([]*assetpb.ResourceSearchResult, error) SearchAllImages() ([]*assetpb.ResourceSearchResult, error) SearchAllDNSManagedZones() ([]*assetpb.ResourceSearchResult, error) SearchAllInstanceGroups() ([]*assetpb.ResourceSearchResult, error) SearchAllDatasets() ([]*assetpb.ResourceSearchResult, error) SearchAllTables() ([]*assetpb.ResourceSearchResult, error) SearchAllAddresses() ([]*assetpb.ResourceSearchResult, error) SearchAllGlobalAddresses() ([]*assetpb.Asset, error) SearchAllFunctions() ([]*assetpb.Asset, error) SearchAllSubnetworks() ([]*assetpb.ResourceSearchResult, error) SearchAllBigtableInstances() ([]*assetpb.Asset, error) SearchAllBigtableTables() ([]*assetpb.Asset, error) SearchAllSQLDatabaseInstances() ([]*assetpb.Asset, error) SearchAllHealthChecks() ([]*assetpb.ResourceSearchResult, error) SearchAllCloudRunServices() ([]*assetpb.ResourceSearchResult, error) SearchAllNodeGroups() ([]*assetpb.Asset, error) }
type CloudResourceManagerRepository ¶
type CloudResourceManagerRepository interface {
ListProjectsBindings() (map[string]map[string][]string, error)
}
func NewCloudResourceManagerRepository ¶
func NewCloudResourceManagerRepository(service *cloudresourcemanager.Service, config config.GCPTerraformConfig, cache cache.Cache) CloudResourceManagerRepository
type MockAssetRepository ¶
MockAssetRepository is an autogenerated mock type for the AssetRepository type
func (*MockAssetRepository) SearchAllAddresses ¶
func (_m *MockAssetRepository) SearchAllAddresses() ([]*asset.ResourceSearchResult, error)
SearchAllAddresses provides a mock function with given fields:
func (*MockAssetRepository) SearchAllBigtableInstances ¶
func (_m *MockAssetRepository) SearchAllBigtableInstances() ([]*asset.Asset, error)
SearchAllBigtableInstances provides a mock function with given fields:
func (*MockAssetRepository) SearchAllBigtableTables ¶
func (_m *MockAssetRepository) SearchAllBigtableTables() ([]*asset.Asset, error)
SearchAllBigtableTables provides a mock function with given fields:
func (*MockAssetRepository) SearchAllBuckets ¶
func (_m *MockAssetRepository) SearchAllBuckets() ([]*asset.ResourceSearchResult, error)
SearchAllBuckets provides a mock function with given fields:
func (*MockAssetRepository) SearchAllCloudRunServices ¶
func (_m *MockAssetRepository) SearchAllCloudRunServices() ([]*asset.ResourceSearchResult, error)
SearchAllCloudRunServices provides a mock function with given fields:
func (*MockAssetRepository) SearchAllDNSManagedZones ¶
func (_m *MockAssetRepository) SearchAllDNSManagedZones() ([]*asset.ResourceSearchResult, error)
SearchAllDNSManagedZones provides a mock function with given fields:
func (*MockAssetRepository) SearchAllDatasets ¶
func (_m *MockAssetRepository) SearchAllDatasets() ([]*asset.ResourceSearchResult, error)
SearchAllDatasets provides a mock function with given fields:
func (*MockAssetRepository) SearchAllDisks ¶
func (_m *MockAssetRepository) SearchAllDisks() ([]*asset.ResourceSearchResult, error)
SearchAllDisks provides a mock function with given fields:
func (*MockAssetRepository) SearchAllFirewalls ¶
func (_m *MockAssetRepository) SearchAllFirewalls() ([]*asset.ResourceSearchResult, error)
SearchAllFirewalls provides a mock function with given fields:
func (*MockAssetRepository) SearchAllFunctions ¶
func (_m *MockAssetRepository) SearchAllFunctions() ([]*asset.Asset, error)
SearchAllFunctions provides a mock function with given fields:
func (*MockAssetRepository) SearchAllGlobalAddresses ¶
func (_m *MockAssetRepository) SearchAllGlobalAddresses() ([]*asset.Asset, error)
SearchAllGlobalAddresses provides a mock function with given fields:
func (*MockAssetRepository) SearchAllHealthChecks ¶
func (_m *MockAssetRepository) SearchAllHealthChecks() ([]*asset.ResourceSearchResult, error)
SearchAllHealthChecks provides a mock function with given fields:
func (*MockAssetRepository) SearchAllImages ¶
func (_m *MockAssetRepository) SearchAllImages() ([]*asset.ResourceSearchResult, error)
SearchAllImages provides a mock function with given fields:
func (*MockAssetRepository) SearchAllInstanceGroups ¶
func (_m *MockAssetRepository) SearchAllInstanceGroups() ([]*asset.ResourceSearchResult, error)
SearchAllInstanceGroups provides a mock function with given fields:
func (*MockAssetRepository) SearchAllInstances ¶
func (_m *MockAssetRepository) SearchAllInstances() ([]*asset.ResourceSearchResult, error)
SearchAllInstances provides a mock function with given fields:
func (*MockAssetRepository) SearchAllNetworks ¶
func (_m *MockAssetRepository) SearchAllNetworks() ([]*asset.ResourceSearchResult, error)
SearchAllNetworks provides a mock function with given fields:
func (*MockAssetRepository) SearchAllNodeGroups ¶
func (_m *MockAssetRepository) SearchAllNodeGroups() ([]*asset.Asset, error)
SearchAllNodeGroups provides a mock function with given fields:
func (*MockAssetRepository) SearchAllRouters ¶
func (_m *MockAssetRepository) SearchAllRouters() ([]*asset.ResourceSearchResult, error)
SearchAllRouters provides a mock function with given fields:
func (*MockAssetRepository) SearchAllSQLDatabaseInstances ¶
func (_m *MockAssetRepository) SearchAllSQLDatabaseInstances() ([]*asset.Asset, error)
SearchAllSQLDatabaseInstances provides a mock function with given fields:
func (*MockAssetRepository) SearchAllSubnetworks ¶
func (_m *MockAssetRepository) SearchAllSubnetworks() ([]*asset.ResourceSearchResult, error)
SearchAllSubnetworks provides a mock function with given fields:
func (*MockAssetRepository) SearchAllTables ¶
func (_m *MockAssetRepository) SearchAllTables() ([]*asset.ResourceSearchResult, error)
SearchAllTables provides a mock function with given fields:
type MockCloudResourceManagerRepository ¶
MockCloudResourceManagerRepository is an autogenerated mock type for the CloudResourceManagerRepository type
func (*MockCloudResourceManagerRepository) ListProjectsBindings ¶
func (_m *MockCloudResourceManagerRepository) ListProjectsBindings() (map[string]map[string][]string, error)
ListProjectsBindings provides a mock function with given fields:
type MockStorageRepository ¶
MockStorageRepository is an autogenerated mock type for the StorageRepository type
func (*MockStorageRepository) ListAllBindings ¶
func (_m *MockStorageRepository) ListAllBindings(bucketName string) (map[string][]string, error)
ListAllBindings provides a mock function with given fields: bucketName