cloudflare

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE_CODE = "cloudflare-dns"

Variables

View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler).
	SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.SetRateLimiterOptions(rateLimiterDefaults))

Functions

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 (*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

type Record cloudflare.DNSRecord

func (*Record) Copy

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

func (*Record) GetDNSName

func (r *Record) GetDNSName() string

func (*Record) GetId

func (r *Record) GetId() string

func (*Record) GetSetIdentifier added in v0.13.0

func (r *Record) GetSetIdentifier() string

func (*Record) GetTTL

func (r *Record) GetTTL() int

func (*Record) GetType

func (r *Record) GetType() string

func (*Record) GetValue

func (r *Record) GetValue() string

func (*Record) SetTTL

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