Documentation ¶
Index ¶
- type AliDNS
- func (a *AliDNS) All() ([]alidns.DomainInDescribeDomains, error)
- func (a *AliDNS) CreateRecord(domain string, ip *net.IP) (*alidns.AddDomainRecordResponse, error)
- func (a *AliDNS) GetRecord(domain string) (*alidns.Record, error)
- func (a *AliDNS) UpdateRecord(domain string, ip *net.IP) (*alidns.UpdateDomainRecordResponse, error)
- type NameCom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliDNS ¶
type AliDNS struct { Client *alidns.Client Config *simplyddns.TargetConfig // contains filtered or unexported fields }
AliDNS is the target for aliyun dns
func NewAliDNS ¶
func NewAliDNS(config *simplyddns.TargetConfig) (*AliDNS, error)
NewAliDNS for creating a new instance of AliDNS
func (*AliDNS) All ¶
func (a *AliDNS) All() ([]alidns.DomainInDescribeDomains, error)
All to get all domains
func (*AliDNS) CreateRecord ¶
CreateRecord to create a new DNS record
func (*AliDNS) UpdateRecord ¶
func (a *AliDNS) UpdateRecord(domain string, ip *net.IP) (*alidns.UpdateDomainRecordResponse, error)
UpdateRecord for update a existsed record
type NameCom ¶
type NameCom struct { Key string Token string Records map[string]*namedotcom.Record // contains filtered or unexported fields }
func (*NameCom) CreateRecord ¶
CreateRecord function is used to create the record from namedotcom instance
func (*NameCom) FindRecord ¶
func (c *NameCom) FindRecord(domain string) (*namedotcom.Record, error)
FindRecord function is used to find the record from namedotcom instance
func (*NameCom) UpdateRecord ¶
func (c *NameCom) UpdateRecord(record *namedotcom.Record) (*namedotcom.Record, error)
UpdateRecord function is used to update the record from namedotcom instance
Click to show internal directories.
Click to hide internal directories.