Documentation ¶
Index ¶
- func NewComputeRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *computeRepository
- func NewContainerRegistryRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *containerRegistryRepository
- func NewNetworkRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *networkRepository
- func NewPostgresqlRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *postgresqlRepository
- func NewPrivateDNSRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *privateDNSRepository
- func NewResourcesRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *resourcesRepository
- func NewStorageRepository(cred azcore.TokenCredential, options *arm.ClientOptions, ...) *storageRepository
- type ComputeRepository
- type ContainerRegistryRepository
- type MockComputeRepository
- type MockContainerRegistryRepository
- type MockNetworkRepository
- func (_m *MockNetworkRepository) ListAllFirewalls() ([]*armnetwork.AzureFirewall, error)
- func (_m *MockNetworkRepository) ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error)
- func (_m *MockNetworkRepository) ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error)
- func (_m *MockNetworkRepository) ListAllRouteTables() ([]*armnetwork.RouteTable, error)
- func (_m *MockNetworkRepository) ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error)
- func (_m *MockNetworkRepository) ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error)
- func (_m *MockNetworkRepository) ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error)
- func (_m *MockNetworkRepository) ListLoadBalancerRules(_a0 *armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error)
- type MockPostgresqlRespository
- type MockPrivateDNSRepository
- func (_m *MockPrivateDNSRepository) ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error)
- func (_m *MockPrivateDNSRepository) ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- func (_m *MockPrivateDNSRepository) ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- type MockResourcesRepository
- type MockStorageRespository
- type NetworkRepository
- type PostgresqlRespository
- type PrivateDNSRepository
- type ResourcesRepository
- type StorageRespository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComputeRepository ¶
func NewComputeRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *computeRepository
func NewContainerRegistryRepository ¶
func NewContainerRegistryRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *containerRegistryRepository
func NewNetworkRepository ¶
func NewNetworkRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *networkRepository
func NewPostgresqlRepository ¶
func NewPostgresqlRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *postgresqlRepository
func NewPrivateDNSRepository ¶
func NewPrivateDNSRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *privateDNSRepository
func NewResourcesRepository ¶
func NewResourcesRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *resourcesRepository
func NewStorageRepository ¶
func NewStorageRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *storageRepository
Types ¶
type ComputeRepository ¶
type ComputeRepository interface { ListAllImages() ([]*armcompute.Image, error) ListAllSSHPublicKeys() ([]*armcompute.SSHPublicKeyResource, error) }
type ContainerRegistryRepository ¶
type ContainerRegistryRepository interface {
ListAllContainerRegistries() ([]*armcontainerregistry.Registry, error)
}
type MockComputeRepository ¶
MockComputeRepository is an autogenerated mock type for the ComputeRepository type
func NewMockComputeRepository ¶
func NewMockComputeRepository(t mockConstructorTestingTNewMockComputeRepository) *MockComputeRepository
NewMockComputeRepository creates a new instance of MockComputeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockComputeRepository) ListAllImages ¶
func (_m *MockComputeRepository) ListAllImages() ([]*armcompute.Image, error)
ListAllImages provides a mock function with given fields:
func (*MockComputeRepository) ListAllSSHPublicKeys ¶
func (_m *MockComputeRepository) ListAllSSHPublicKeys() ([]*armcompute.SSHPublicKeyResource, error)
ListAllSSHPublicKeys provides a mock function with given fields:
type MockContainerRegistryRepository ¶
MockContainerRegistryRepository is an autogenerated mock type for the ContainerRegistryRepository type
func NewMockContainerRegistryRepository ¶
func NewMockContainerRegistryRepository(t mockConstructorTestingTNewMockContainerRegistryRepository) *MockContainerRegistryRepository
NewMockContainerRegistryRepository creates a new instance of MockContainerRegistryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockContainerRegistryRepository) ListAllContainerRegistries ¶
func (_m *MockContainerRegistryRepository) ListAllContainerRegistries() ([]*armcontainerregistry.Registry, error)
ListAllContainerRegistries provides a mock function with given fields:
type MockNetworkRepository ¶
MockNetworkRepository is an autogenerated mock type for the NetworkRepository type
func NewMockNetworkRepository ¶
func NewMockNetworkRepository(t mockConstructorTestingTNewMockNetworkRepository) *MockNetworkRepository
NewMockNetworkRepository creates a new instance of MockNetworkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockNetworkRepository) ListAllFirewalls ¶
func (_m *MockNetworkRepository) ListAllFirewalls() ([]*armnetwork.AzureFirewall, error)
ListAllFirewalls provides a mock function with given fields:
func (*MockNetworkRepository) ListAllLoadBalancers ¶
func (_m *MockNetworkRepository) ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error)
ListAllLoadBalancers provides a mock function with given fields:
func (*MockNetworkRepository) ListAllPublicIPAddresses ¶
func (_m *MockNetworkRepository) ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error)
ListAllPublicIPAddresses provides a mock function with given fields:
func (*MockNetworkRepository) ListAllRouteTables ¶
func (_m *MockNetworkRepository) ListAllRouteTables() ([]*armnetwork.RouteTable, error)
ListAllRouteTables provides a mock function with given fields:
func (*MockNetworkRepository) ListAllSecurityGroups ¶
func (_m *MockNetworkRepository) ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error)
ListAllSecurityGroups provides a mock function with given fields:
func (*MockNetworkRepository) ListAllSubnets ¶
func (_m *MockNetworkRepository) ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error)
ListAllSubnets provides a mock function with given fields: virtualNetwork
func (*MockNetworkRepository) ListAllVirtualNetworks ¶
func (_m *MockNetworkRepository) ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error)
ListAllVirtualNetworks provides a mock function with given fields:
func (*MockNetworkRepository) ListLoadBalancerRules ¶
func (_m *MockNetworkRepository) ListLoadBalancerRules(_a0 *armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error)
ListLoadBalancerRules provides a mock function with given fields: _a0
type MockPostgresqlRespository ¶
MockPostgresqlRespository is an autogenerated mock type for the PostgresqlRespository type
func NewMockPostgresqlRespository ¶
func NewMockPostgresqlRespository(t mockConstructorTestingTNewMockPostgresqlRespository) *MockPostgresqlRespository
NewMockPostgresqlRespository creates a new instance of MockPostgresqlRespository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockPostgresqlRespository) ListAllDatabasesByServer ¶
func (_m *MockPostgresqlRespository) ListAllDatabasesByServer(server *armpostgresql.Server) ([]*armpostgresql.Database, error)
ListAllDatabasesByServer provides a mock function with given fields: server
func (*MockPostgresqlRespository) ListAllServers ¶
func (_m *MockPostgresqlRespository) ListAllServers() ([]*armpostgresql.Server, error)
ListAllServers provides a mock function with given fields:
type MockPrivateDNSRepository ¶
MockPrivateDNSRepository is an autogenerated mock type for the PrivateDNSRepository type
func NewMockPrivateDNSRepository ¶
func NewMockPrivateDNSRepository(t mockConstructorTestingTNewMockPrivateDNSRepository) *MockPrivateDNSRepository
NewMockPrivateDNSRepository creates a new instance of MockPrivateDNSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockPrivateDNSRepository) ListAllAAAARecords ¶
func (_m *MockPrivateDNSRepository) ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllAAAARecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllARecords ¶
func (_m *MockPrivateDNSRepository) ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllARecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllCNAMERecords ¶
func (_m *MockPrivateDNSRepository) ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllCNAMERecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllMXRecords ¶
func (_m *MockPrivateDNSRepository) ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllMXRecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllPTRRecords ¶
func (_m *MockPrivateDNSRepository) ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllPTRRecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllPrivateZones ¶
func (_m *MockPrivateDNSRepository) ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error)
ListAllPrivateZones provides a mock function with given fields:
func (*MockPrivateDNSRepository) ListAllSRVRecords ¶
func (_m *MockPrivateDNSRepository) ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllSRVRecords provides a mock function with given fields: zone
func (*MockPrivateDNSRepository) ListAllTXTRecords ¶
func (_m *MockPrivateDNSRepository) ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
ListAllTXTRecords provides a mock function with given fields: zone
type MockResourcesRepository ¶
MockResourcesRepository is an autogenerated mock type for the ResourcesRepository type
func NewMockResourcesRepository ¶
func NewMockResourcesRepository(t mockConstructorTestingTNewMockResourcesRepository) *MockResourcesRepository
NewMockResourcesRepository creates a new instance of MockResourcesRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockResourcesRepository) ListAllResourceGroups ¶
func (_m *MockResourcesRepository) ListAllResourceGroups() ([]*armresources.ResourceGroup, error)
ListAllResourceGroups provides a mock function with given fields:
type MockStorageRespository ¶
MockStorageRespository is an autogenerated mock type for the StorageRespository type
func NewMockStorageRespository ¶
func NewMockStorageRespository(t mockConstructorTestingTNewMockStorageRespository) *MockStorageRespository
NewMockStorageRespository creates a new instance of MockStorageRespository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockStorageRespository) ListAllStorageAccount ¶
func (_m *MockStorageRespository) ListAllStorageAccount() ([]*armstorage.StorageAccount, error)
ListAllStorageAccount provides a mock function with given fields:
func (*MockStorageRespository) ListAllStorageContainer ¶
func (_m *MockStorageRespository) ListAllStorageContainer(account *armstorage.StorageAccount) ([]string, error)
ListAllStorageContainer provides a mock function with given fields: account
type NetworkRepository ¶
type NetworkRepository interface { ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error) ListAllRouteTables() ([]*armnetwork.RouteTable, error) ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error) ListAllFirewalls() ([]*armnetwork.AzureFirewall, error) ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error) ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error) ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error) ListLoadBalancerRules(*armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error) }
type PostgresqlRespository ¶
type PostgresqlRespository interface { ListAllServers() ([]*armpostgresql.Server, error) ListAllDatabasesByServer(server *armpostgresql.Server) ([]*armpostgresql.Database, error) }
type PrivateDNSRepository ¶
type PrivateDNSRepository interface { ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error) ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) }
type ResourcesRepository ¶
type ResourcesRepository interface {
ListAllResourceGroups() ([]*armresources.ResourceGroup, error)
}
type StorageRespository ¶
type StorageRespository interface { ListAllStorageAccount() ([]*armstorage.StorageAccount, error) ListAllStorageContainer(account *armstorage.StorageAccount) ([]string, error) }
Source Files ¶
- compute.go
- containerregistry.go
- mock_ComputeRepository.go
- mock_ContainerRegistryRepository.go
- mock_NetworkRepository.go
- mock_PostgresqlRespository.go
- mock_PrivateDNSRepository.go
- mock_ResourcesRepository.go
- mock_StorageRespository.go
- mock_blobContainerClient.go
- mock_blobContainerListPager.go
- mock_firewallsClient.go
- mock_firewallsListAllPager.go
- mock_imagesClient.go
- mock_imagesListPager.go
- mock_loadBalancerRulesClient.go
- mock_loadBalancerRulesListAllPager.go
- mock_loadBalancersClient.go
- mock_loadBalancersListAllPager.go
- mock_networkSecurityGroupsClient.go
- mock_networkSecurityGroupsListAllPager.go
- mock_postgresqlDatabaseClient.go
- mock_postgresqlServersClient.go
- mock_privateDNSRecordSetListPager.go
- mock_privateDNSZoneListPager.go
- mock_privateRecordSetClient.go
- mock_privateZonesClient.go
- mock_publicIPAddressesClient.go
- mock_publicIPAddressesListAllPager.go
- mock_registryClient.go
- mock_registryListAllPager.go
- mock_resourcesClient.go
- mock_resourcesListPager.go
- mock_routeTablesClient.go
- mock_routeTablesListAllPager.go
- mock_sshPublicKeyClient.go
- mock_sshPublicKeyListPager.go
- mock_storageAccountClient.go
- mock_storageAccountListPager.go
- mock_subnetsClient.go
- mock_subnetsListPager.go
- mock_virtualNetworkClient.go
- mock_virtualNetworksListAllPager.go
- network.go
- pager.go
- postgresql.go
- privatedns.go
- resources.go
- storage.go