repository

package
v0.0.0-...-3750d73 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssetRepository

func NewAssetRepository(client *asset.Client, config config.GCPTerraformConfig, c cache.Cache) *assetRepository

func NewStorageRepository

func NewStorageRepository(client *storage.Client, cache cache.Cache) *storageRepository

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)
	SearchAllForwardingRules() ([]*assetpb.Asset, error)
	SearchAllInstanceGroupManagers() ([]*assetpb.Asset, error)
	SearchAllGlobalForwardingRules() ([]*assetpb.Asset, error)
	SearchAllSslCertificates() ([]*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

type MockAssetRepository struct {
	mock.Mock
}

MockAssetRepository is an autogenerated mock type for the AssetRepository type

func NewMockAssetRepository

func NewMockAssetRepository(t mockConstructorTestingTNewMockAssetRepository) *MockAssetRepository

NewMockAssetRepository creates a new instance of MockAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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

func (_m *MockAssetRepository) SearchAllForwardingRules() ([]*asset.Asset, error)

SearchAllForwardingRules 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) SearchAllGlobalForwardingRules

func (_m *MockAssetRepository) SearchAllGlobalForwardingRules() ([]*asset.Asset, error)

SearchAllGlobalForwardingRules 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) SearchAllInstanceGroupManagers

func (_m *MockAssetRepository) SearchAllInstanceGroupManagers() ([]*asset.Asset, error)

SearchAllInstanceGroupManagers 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) SearchAllSslCertificates

func (_m *MockAssetRepository) SearchAllSslCertificates() ([]*asset.Asset, error)

SearchAllSslCertificates 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

type MockCloudResourceManagerRepository struct {
	mock.Mock
}

MockCloudResourceManagerRepository is an autogenerated mock type for the CloudResourceManagerRepository type

func NewMockCloudResourceManagerRepository

func NewMockCloudResourceManagerRepository(t mockConstructorTestingTNewMockCloudResourceManagerRepository) *MockCloudResourceManagerRepository

NewMockCloudResourceManagerRepository creates a new instance of MockCloudResourceManagerRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockCloudResourceManagerRepository) ListProjectsBindings

func (_m *MockCloudResourceManagerRepository) ListProjectsBindings() (map[string]map[string][]string, error)

ListProjectsBindings provides a mock function with given fields:

type MockStorageRepository

type MockStorageRepository struct {
	mock.Mock
}

MockStorageRepository is an autogenerated mock type for the StorageRepository type

func NewMockStorageRepository

func NewMockStorageRepository(t mockConstructorTestingTNewMockStorageRepository) *MockStorageRepository

NewMockStorageRepository creates a new instance of MockStorageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockStorageRepository) ListAllBindings

func (_m *MockStorageRepository) ListAllBindings(bucketName string) (map[string][]string, error)

ListAllBindings provides a mock function with given fields: bucketName

type StorageRepository

type StorageRepository interface {
	ListAllBindings(bucketName string) (map[string][]string, error)
}

Jump to

Keyboard shortcuts

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