cloudflare

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE_CODE = "cloudflare-dns"

Variables

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) (Access, error)

type Handler

type Handler struct {
	provider.DefaultDNSHandler
	// contains filtered or unexported fields
}

func (*Handler) ExecuteRequests

func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, state provider.DNSZoneState, reqs []*provider.ChangeRequest) 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) 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