Documentation ¶
Index ¶
- func ApplyChanges(ctx context.Context, cf cf.Cloudflare, changes []Change) error
- func BatchUpdateDNSRecords(ctx context.Context, cf cf.Cloudflare, changes []Change) error
- type Change
- type ChangeType
- type CloudflareTunnelProvider
- func (CloudflareTunnelProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoint.Endpoint, error)
- func (p CloudflareTunnelProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error
- func (p CloudflareTunnelProvider) GetDomainFilter() endpoint.DomainFilter
- func (p CloudflareTunnelProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)
- type Rules
- type ZoneDetail
- type ZoneMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyChanges ¶
func BatchUpdateDNSRecords ¶
Types ¶
type Change ¶
type Change struct { Action ChangeType ZoneID string RecordID string Name string TunnelURI string Service string }
func TunnelDNSChangeSet ¶
type ChangeType ¶
type ChangeType string
const ( ChangeTypeNoop ChangeType = "NOOP" ChangeTypeCreate ChangeType = "CREATE" ChangeTypeUpdate ChangeType = "UPDATE" ChangeTypeDelete ChangeType = "DELETE" )
type CloudflareTunnelProvider ¶
type CloudflareTunnelProvider struct { Cloudflare cf.Cloudflare CloudflareAccountID string CloudflareTunnelID string DryRun bool DomainFilter []string }
func (CloudflareTunnelProvider) AdjustEndpoints ¶
func (CloudflareTunnelProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoint.Endpoint, error)
AdjustEndpoints adjusts a given set of endpoints
required to satisfy the external-dns provider interface
func (CloudflareTunnelProvider) ApplyChanges ¶
ApplyChanges applies a given set of changes
required to satisfy the external-dns provider interface
func (CloudflareTunnelProvider) GetDomainFilter ¶
func (p CloudflareTunnelProvider) GetDomainFilter() endpoint.DomainFilter
type Rules ¶
type Rules []cloudflare.UnvalidatedIngressRule
func (*Rules) CreateRule ¶
func (*Rules) DeleteRule ¶
func (*Rules) UpdateRule ¶
type ZoneDetail ¶
type ZoneDetail struct { Zone cloudflare.Zone Records map[string]cloudflare.DNSRecord }
type ZoneMap ¶
type ZoneMap map[string]ZoneDetail
func GenerateZoneMap ¶
func (ZoneMap) GetMatchingZone ¶
func (z ZoneMap) GetMatchingZone(hostname string) *ZoneDetail
GetMatchingZone finds the longest matching zone for the hostname
func (ZoneMap) GetRecordByName ¶
GetRecordByName finds a record by name in the zone map
Click to show internal directories.
Click to hide internal directories.