Documentation
¶
Index ¶
- type Client
- func (c Client) Check(domain Domain) (*response.DomainCheck, error)
- func (c Client) CheckNSStatus(domain Domain, host string) (internal.CheckNSStatus, error)
- func (c Client) Contacts(domain Domain) (internal.Contacts, error)
- func (c Client) CreateTransferOrder(domain Domain, authInfo string) (internal.CreateTransferOrder, error)
- func (c Client) Delete(domain Domain) (internal.Delete, error)
- func (c Client) GetDNS(domain Domain) (internal.GetDNS, error)
- func (c Client) GetHosts(domain Domain) (internal.GetHosts, error)
- func (c Client) Info(domain Domain) (*response.DomainInfo, error)
- func (c Client) NameSpinner(domain Domain, tldList string) (*response.NameSpinner, error)
- func (c Client) Purchase(domain Domain) (*response.DomainPurchase, error)
- func (c Client) RegisterNameserver(domain Domain, name string, ip string) (internal.RegisterNameserver, error)
- func (c Client) Renew(domain Domain, period uint64) (internal.Extend, error)
- func (c Client) SetContact(domain Domain, contactData map[string]string) (internal.Contacts, error)
- func (c Client) SetHosts(req DomainSetHostRequest) (internal.Response, error)
- func (c Client) SetRegLock(domain Domain, enable bool) (*response.DomainInfo, error)
- func (c Client) TldDetails(tld string) (*response.TldDetails, error)
- func (c Client) TldList() (response.TldList, error)
- func (c Client) TransferOrderDetail(id string) (internal.TransferOrderDetail, error)
- func (c Client) TransferOrderReview(id string) (internal.TransferOrderReview, error)
- func (c Client) TransferOrderStatuses() (internal.TransferOrderStatuses, error)
- func (c Client) UpdateNameserver(domain Domain, name string, oldIp string, newIp string) (internal.UpdateNameserver, error)
- func (c Client) WhoisContact(domain Domain) (internal.WhoisContact, error)
- type Domain
- type DomainSetHost
- type DomainSetHostRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Check ¶
func (c Client) Check(domain Domain) (*response.DomainCheck, error)
Check checks the availability of a domain name.
Upstream documentation: https://api.enom.com/docs/check Note: the client always requests version 2.
func (Client) CheckNSStatus ¶
CheckNSStatus Retrieve information about a name server
func (Client) CreateTransferOrder ¶
func (c Client) CreateTransferOrder(domain Domain, authInfo string) (internal.CreateTransferOrder, error)
CreateTransferOrder Transfer domains into an account
func (Client) Delete ¶
Delete deletes domain with in 5 days of purchase (Will not working on all accounts)
Upstream documentation: https://api.enom.com/docs/DeleteRegistration
func (Client) Info ¶
func (c Client) Info(domain Domain) (*response.DomainInfo, error)
Info gets information about a single, registered domain name. It returns an error if the domain is not registered with enom.
Upstream documentation: https://api.enom.com/docs/getdomaininfo
func (Client) NameSpinner ¶
NameSpinner lists related domain names
func (Client) Purchase ¶
func (c Client) Purchase(domain Domain) (*response.DomainPurchase, error)
Purchase purchases a domain name
Upstream documentation: https://api.enom.com/docs/purchase
FIXME: docs say: Some TLDs, such as .de, requires you to specify name servers. The Registry will automatically delete the domain name if no name servers are specified.
func (Client) RegisterNameserver ¶
func (c Client) RegisterNameserver(domain Domain, name string, ip string) (internal.RegisterNameserver, error)
RegisterNameserver Register a domain name server
func (Client) Renew ¶
Renew extends (renews) the registration period for a domain name
Upstream documentation: https://api.enom.com/docs/extend
TODO stick to name "extend" to stay close to upstream?
func (Client) SetContact ¶
SetContact Update contact information for a domain name
func (Client) SetHosts ¶
func (c Client) SetHosts(req DomainSetHostRequest) (internal.Response, error)
SetHosts Set host records for a domain name
func (Client) SetRegLock ¶
SetRegLock sets the registrar lock for a domain name
Upstream documentation: https://api.enom.com/docs/SetRegLock
func (Client) TldDetails ¶
func (c Client) TldDetails(tld string) (*response.TldDetails, error)
TldDetails retrieves TLD characteristics in detail for a specified TLD
Upstream documentation: https://api.enom.com/docs/get-tld-details
func (Client) TldList ¶
TldList retrieves a list of the TLDs that you offer
Upstream documentation: https://api.enom.com/docs/gettldlist
TODO: is this deprecated? It's not listed in the API calls menu
func (Client) TransferOrderDetail ¶
func (c Client) TransferOrderDetail(id string) (internal.TransferOrderDetail, error)
TransferOrderDetail Get information for a single domain on a transfer order
func (Client) TransferOrderReview ¶
func (c Client) TransferOrderReview(id string) (internal.TransferOrderReview, error)
TransferOrderReview Retrieve information on a transfer order
func (Client) TransferOrderStatuses ¶
func (c Client) TransferOrderStatuses() (internal.TransferOrderStatuses, error)
TransferOrderStatuses Get a list of orders including Closed for the last 6 months
func (Client) UpdateNameserver ¶
func (c Client) UpdateNameserver(domain Domain, name string, oldIp string, newIp string) (internal.UpdateNameserver, error)
UpdateNameserver Change the IP address of a name server in the Registry’s records
func (Client) WhoisContact ¶
func (c Client) WhoisContact(domain Domain) (internal.WhoisContact, error)
WhoisContact Get Whois contact information for a domain name
type Domain ¶
type Domain struct { // Name of the domain without the extension. // Must not contain any dots. Name string // The extesion that this domain is or should be registered under. Extension string }
Domain represents a domain name with the extension it is registered under. The extension is sometimes referred to as TLD (top-level domain). This is misleading, though, as an extension can in fact have multiple levels (such as "com.es" or "co.uk"). Likewise, the name is sometimes referred to as SLD (second-level domain).
Examples: "enom.com" consists of the name "enom" and the extension "com", and "enom.co.uk" consists of the name "enom" and the extension "co.uk".
type DomainSetHost ¶
type DomainSetHostRequest ¶
type DomainSetHostRequest struct { Domain Domain Hosts []DomainSetHost }