Documentation ¶
Index ¶
- Constants
- Variables
- func GetDNSName(r alidns.Record) string
- func GetRR(dnsname, domain string) string
- 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 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 = "alicloud-dns"
Variables ¶
View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler, true). SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.SetRateLimiterOptions(rateLimiterDefaults))
Functions ¶
func GetDNSName ¶
func NewHandler ¶
func NewHandler(c *provider.DNSHandlerConfig) (provider.DNSHandler, error)
Types ¶
type Access ¶
type Access interface { ListDomains(consume func(domain alidns.Domain) (bool, error)) error ListRecords(zoneID, domain string, consume func(record alidns.Record) (bool, error)) error raw.Executor }
func NewAccess ¶
func NewAccess(accessKeyId, accessKeySecret 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 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 ¶ added in v0.7.7
func (*Record) GetDNSName ¶ added in v0.7.7
Click to show internal directories.
Click to hide internal directories.