Documentation ¶
Index ¶
- Constants
- Variables
- func NewHandler(c *provider.DNSHandlerConfig) (provider.DNSHandler, error)
- type Access
- type Handler
- func (h *Handler) CreateOrUpdateRecordSet(logger logger.LogContext, zone provider.DNSHostedZone, ...) error
- func (h *Handler) DeleteRecordSet(_ logger.LogContext, zone provider.DNSHostedZone, ...) error
- func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, ...) error
- func (h *Handler) GetRecordSet(zone provider.DNSHostedZone, dnsName, recordType string) (provider.DedicatedRecordSet, error)
- func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)
- func (h *Handler) GetZones() (provider.DNSHostedZones, error)
- func (h *Handler) Release()
- func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool
- type Record
Constants ¶
View Source
const TYPE_CODE = "cloudflare-dns"
Variables ¶
View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler). SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.SetRateLimiterOptions(rateLimiterDefaults))
Functions ¶
func NewHandler ¶
func NewHandler(c *provider.DNSHandlerConfig) (provider.DNSHandler, error)
Types ¶
type Access ¶
type Access interface { ListZones(consume func(zone cloudflare.Zone) (bool, error)) error ListRecords(zoneId string, consume func(record cloudflare.DNSRecord) (bool, error)) error raw.Executor }
func NewAccess ¶
func NewAccess(apiToken string, metrics provider.Metrics, rateLimiter flowcontrol.RateLimiter) (Access, error)
type Handler ¶
type Handler struct { provider.DefaultDNSHandler // contains filtered or unexported fields }
func (*Handler) CreateOrUpdateRecordSet ¶ added in v0.11.0
func (h *Handler) CreateOrUpdateRecordSet(logger logger.LogContext, zone provider.DNSHostedZone, old, new provider.DedicatedRecordSet) error
func (*Handler) DeleteRecordSet ¶ added in v0.11.0
func (h *Handler) DeleteRecordSet(_ logger.LogContext, zone provider.DNSHostedZone, rs provider.DedicatedRecordSet) error
func (*Handler) ExecuteRequests ¶
func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, state provider.DNSZoneState, reqs []*provider.ChangeRequest) error
func (*Handler) GetRecordSet ¶ added in v0.11.0
func (h *Handler) GetRecordSet(zone provider.DNSHostedZone, dnsName, recordType string) (provider.DedicatedRecordSet, error)
func (*Handler) GetZoneState ¶
func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)
func (*Handler) ReportZoneStateConflict ¶
func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool
type Record ¶
type Record cloudflare.DNSRecord
func (*Record) GetDNSName ¶
func (*Record) GetSetIdentifier ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.