alidns

package
v0.0.0-...-e260b85 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliDNS

type AliDNS struct {
	AccessKeyID     string
	AccessKeySecret string
}

AliDNS token

func NewAliDNS

func NewAliDNS(key, secret string) *AliDNS

NewAliDNS function creates instance of AliDNS and return

func (*AliDNS) GetDomainRecords

func (d *AliDNS) GetDomainRecords(domain, rr string) []DomainRecord

GetDomainRecords gets all the doamin records according to input subdomain key

func (*AliDNS) UpdateDomainRecord

func (d *AliDNS) UpdateDomainRecord(r DomainRecord) error

UpdateDomainRecord updates domain record

type DomainRecord

type DomainRecord struct {
	DomainName string
	RecordID   string `json:"RecordId"`
	RR         string
	Type       string
	Value      string
	Line       string
	Priority   int
	TTL        int
	Status     string
	Locked     bool
}

DomainRecord struct

type Handler

type Handler struct {
	Configuration *godns.Settings
}

Handler struct

func (*Handler) DomainLoop

func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.Domain)

DomainLoop the main logic loop

func (*Handler) SetConfiguration

func (handler *Handler) SetConfiguration(conf *godns.Settings)

SetConfiguration pass dns settings and store it to handler instance

Jump to

Keyboard shortcuts

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