Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzurePrivateDNSProvider ¶
type AzurePrivateDNSProvider struct { provider.BaseProvider // contains filtered or unexported fields }
AzurePrivateDNSProvider implements the DNS provider for Microsoft's Azure Private DNS service
func NewAzurePrivateDNSProvider ¶
func NewAzurePrivateDNSProvider(configFile string, domainFilter endpoint.DomainFilter, zoneNameFilter endpoint.DomainFilter, zoneIDFilter provider.ZoneIDFilter, subscriptionID string, resourceGroup string, userAssignedIdentityClientID string, activeDirectoryAuthorityHost string, zonesCacheDuration time.Duration, dryRun bool) (*AzurePrivateDNSProvider, error)
NewAzurePrivateDNSProvider creates a new Azure Private DNS provider.
Returns the provider or an error if a provider could not be created.
func (*AzurePrivateDNSProvider) ApplyChanges ¶
ApplyChanges applies the given changes.
Returns nil if the operation was successful or an error if the operation failed.
type AzureProvider ¶
type AzureProvider struct { provider.BaseProvider // contains filtered or unexported fields }
AzureProvider implements the DNS provider for Microsoft's Azure cloud platform.
func NewAzureProvider ¶
func NewAzureProvider(configFile string, domainFilter endpoint.DomainFilter, zoneNameFilter endpoint.DomainFilter, zoneIDFilter provider.ZoneIDFilter, subscriptionID string, resourceGroup string, userAssignedIdentityClientID string, activeDirectoryAuthorityHost string, zonesCacheDuration time.Duration, dryRun bool) (*AzureProvider, error)
NewAzureProvider creates a new Azure provider.
Returns the provider or an error if a provider could not be created.
func (*AzureProvider) ApplyChanges ¶
ApplyChanges applies the given changes.
Returns nil if the operation was successful or an error if the operation failed.
func (*AzureProvider) Records ¶
Records gets the current records.
Returns the current records or an error if the operation failed.
func (*AzureProvider) SupportedRecordType ¶ added in v0.13.5
func (p *AzureProvider) SupportedRecordType(recordType string) bool
type PrivateRecordSetsClient ¶
type PrivateRecordSetsClient interface { NewListPager(resourceGroupName string, privateZoneName string, options *privatedns.RecordSetsClientListOptions) *azcoreruntime.Pager[privatedns.RecordSetsClientListResponse] Delete(ctx context.Context, resourceGroupName string, privateZoneName string, recordType privatedns.RecordType, relativeRecordSetName string, options *privatedns.RecordSetsClientDeleteOptions) (privatedns.RecordSetsClientDeleteResponse, error) CreateOrUpdate(ctx context.Context, resourceGroupName string, privateZoneName string, recordType privatedns.RecordType, relativeRecordSetName string, parameters privatedns.RecordSet, options *privatedns.RecordSetsClientCreateOrUpdateOptions) (privatedns.RecordSetsClientCreateOrUpdateResponse, error) }
PrivateRecordSetsClient is an interface of privatedns.RecordSetsClient that can be stubbed for testing.
type PrivateZonesClient ¶
type PrivateZonesClient interface {
NewListByResourceGroupPager(resourceGroupName string, options *privatedns.PrivateZonesClientListByResourceGroupOptions) *azcoreruntime.Pager[privatedns.PrivateZonesClientListByResourceGroupResponse]
}
PrivateZonesClient is an interface of privatedns.PrivateZoneClient that can be stubbed for testing.
type RecordSetsClient ¶
type RecordSetsClient interface { NewListAllByDNSZonePager(resourceGroupName string, zoneName string, options *dns.RecordSetsClientListAllByDNSZoneOptions) *azcoreruntime.Pager[dns.RecordSetsClientListAllByDNSZoneResponse] Delete(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType dns.RecordType, options *dns.RecordSetsClientDeleteOptions) (dns.RecordSetsClientDeleteResponse, error) CreateOrUpdate(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType dns.RecordType, parameters dns.RecordSet, options *dns.RecordSetsClientCreateOrUpdateOptions) (dns.RecordSetsClientCreateOrUpdateResponse, error) }
RecordSetsClient is an interface of dns.RecordSetsClient that can be stubbed for testing.
type ZonesClient ¶
type ZonesClient interface {
NewListByResourceGroupPager(resourceGroupName string, options *dns.ZonesClientListByResourceGroupOptions) *azcoreruntime.Pager[dns.ZonesClientListByResourceGroupResponse]
}
ZonesClient is an interface of dns.ZoneClient that can be stubbed for testing.