alidns

package
v0.0.0-...-3f788f1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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
	IPType          string
}

AliDNS token.

func NewAliDNS

func NewAliDNS(key, secret, ipType 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 domain records according to input subdomain key.

func (*AliDNS) UpdateDomainRecord

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

UpdateDomainRecord updates domain record.

type DNSProvider

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

DNSProvider struct.

func (*DNSProvider) Init

func (provider *DNSProvider) Init(conf *settings.Settings)

func (*DNSProvider) UpdateIP

func (provider *DNSProvider) UpdateIP(domainName, subdomainName, ip string) error

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.

Jump to

Keyboard shortcuts

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