raw

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureQuotedText

func EnsureQuotedText(v string) string

Types

type DNSSet

type DNSSet map[string]RecordSet

func (DNSSet) Clone added in v0.7.14

func (this DNSSet) Clone() DNSSet

type Execution

type Execution struct {
	logger.LogContext
	// contains filtered or unexported fields
}

func NewExecution

func NewExecution(logger logger.LogContext, e Executor, state *ZoneState, zone provider.DNSHostedZone) *Execution

func (*Execution) AddChange

func (this *Execution) AddChange(req *provider.ChangeRequest)

func (*Execution) SubmitChanges

func (this *Execution) SubmitChanges() error

type Executor

type Executor interface {
	CreateRecord(r Record, zone provider.DNSHostedZone) error
	UpdateRecord(r Record, zone provider.DNSHostedZone) error
	DeleteRecord(r Record, zone provider.DNSHostedZone) error

	NewRecord(fqdn, rtype, value string, zone provider.DNSHostedZone, ttl int64) Record
	GetRecordSet(dnsName, rtype string, zone provider.DNSHostedZone) (RecordSet, error)
}

type Record

type Record interface {
	GetId() string
	GetType() string
	GetValue() string
	GetDNSName() string
	GetSetIdentifier() string
	GetTTL() int
	SetTTL(int)
	Copy() Record
}

type RecordSet

type RecordSet []Record

func (RecordSet) Clone added in v0.7.14

func (this RecordSet) Clone() RecordSet

type ZoneState

type ZoneState struct {
	// contains filtered or unexported fields
}

func NewState

func NewState() *ZoneState

func (*ZoneState) AddRecord

func (this *ZoneState) AddRecord(r Record)

func (*ZoneState) CalculateDNSSets

func (this *ZoneState) CalculateDNSSets()

func (*ZoneState) Clone added in v0.7.14

func (this *ZoneState) Clone() provider.DNSZoneState

func (*ZoneState) GetDNSSets

func (this *ZoneState) GetDNSSets() dns.DNSSets

func (*ZoneState) GetRecord

func (this *ZoneState) GetRecord(dnsname dns.DNSSetName, rtype, value string) Record

Jump to

Keyboard shortcuts

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