namedotcom

package
v3.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 10 Imported by: 0

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

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

func (n *NameCom) GetZoneRecords(domain string) (models.Records, error)

GetZoneRecords gets the records of a zone and returns them in RecordConfig format.

func (*NameCom) ListZones

func (c *NameCom) ListZones() ([]string, error)

ListZones returns all the zones in an account

Jump to

Keyboard shortcuts

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