alicloud

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

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 GetDNSName(r alidns.Record) string

func GetRR

func GetRR(dnsname, domain string) string

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

func (h *Handler) GetZones() (provider.DNSHostedZones, error)

func (*Handler) Release

func (h *Handler) Release()

func (*Handler) ReportZoneStateConflict

func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool

type Record added in v0.7.7

type Record alidns.Record

func (*Record) Copy added in v0.7.7

func (r *Record) Copy() raw.Record

func (*Record) GetDNSName added in v0.7.7

func (r *Record) GetDNSName() string

func (*Record) GetId added in v0.7.7

func (r *Record) GetId() string

func (*Record) GetTTL added in v0.7.7

func (r *Record) GetTTL() int

func (*Record) GetType added in v0.7.7

func (r *Record) GetType() string

func (*Record) GetValue added in v0.7.7

func (r *Record) GetValue() string

func (*Record) SetTTL added in v0.7.7

func (r *Record) SetTTL(ttl int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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