Documentation ¶
Overview ¶
Package namedotcom implements a registrar that uses the name.com api to set name servers. It will self register it's providers when imported.
Index ¶
- type NameCom
- func (n *NameCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
- func (n *NameCom) GetNameservers(domain string) ([]*models.Nameserver, error)
- func (n *NameCom) GetRegistrarCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
- func (n *NameCom) GetZoneRecords(domain string) (models.Records, error)
- func (c *NameCom) ListZones() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameCom ¶
type NameCom struct { APIUrl string `json:"apiurl"` APIUser string `json:"apiuser"` APIKey string `json:"apikey"` // contains filtered or unexported fields }
NameCom describes a connection to the NDC API.
func (*NameCom) GetDomainCorrections ¶
func (n *NameCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
GetDomainCorrections gathers correctios that would bring n to match dc.
func (*NameCom) GetNameservers ¶
func (n *NameCom) GetNameservers(domain string) ([]*models.Nameserver, error)
GetNameservers gets the nameservers set on a domain.
func (*NameCom) GetRegistrarCorrections ¶
func (n *NameCom) GetRegistrarCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
GetRegistrarCorrections gathers corrections that would being n to match dc.
func (*NameCom) GetZoneRecords ¶
GetZoneRecords gets the records of a zone and returns them in RecordConfig format.
Click to show internal directories.
Click to hide internal directories.