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: 18 Imported by: 0

Documentation

Index

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

type MockComputeRepository struct {
	mock.Mock
}

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

type MockContainerRegistryRepository struct {
	mock.Mock
}

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

type MockNetworkRepository struct {
	mock.Mock
}

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

type MockPostgresqlRespository struct {
	mock.Mock
}

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

type MockPrivateDNSRepository struct {
	mock.Mock
}

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

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

ListAllMXRecords provides a mock function with given fields: zone

func (*MockPrivateDNSRepository) ListAllPTRRecords

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

ListAllSRVRecords provides a mock function with given fields: zone

func (*MockPrivateDNSRepository) ListAllTXTRecords

ListAllTXTRecords provides a mock function with given fields: zone

type MockResourcesRepository

type MockResourcesRepository struct {
	mock.Mock
}

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

type MockStorageRespository struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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