1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

update vendored namecom lib

This commit is contained in:
Craig Peterson
2018-05-03 10:42:34 -04:00
parent 6c60eac7c7
commit 7085096468
3 changed files with 9 additions and 7 deletions

View File

@ -208,7 +208,7 @@ func (n *NameCom) PurchasePrivacy(request *PrivacyRequest) (*PrivacyResponse, er
// SetNameservers will set the nameservers for the Domain. // SetNameservers will set the nameservers for the Domain.
func (n *NameCom) SetNameservers(request *SetNameserversRequest) (*Domain, error) { func (n *NameCom) SetNameservers(request *SetNameserversRequest) (*Domain, error) {
endpoint := fmt.Sprintf("/v4/domains") endpoint := fmt.Sprintf("/v4/domains/%s:setNameservers", request.DomainName)
post := &bytes.Buffer{} post := &bytes.Buffer{}
err := json.NewEncoder(post).Encode(request) err := json.NewEncoder(post).Encode(request)

View File

@ -12,7 +12,7 @@ To start working with this package, create a client with user credentials
To check if the username and token are correct using the HelloFunc endpoint To check if the username and token are correct using the HelloFunc endpoint
response, err := nc.HelloFunc(&HelloRequest{}) response, err := nc.HelloFunc(&namecom.HelloRequest{})
if err != nil { if err != nil {
// TODO: handle error // TODO: handle error
} }
@ -146,11 +146,11 @@ type Record struct {
ID int32 `json:"id,omitempty"` ID int32 `json:"id,omitempty"`
// DomainName is the zone that the record belongs to. // DomainName is the zone that the record belongs to.
DomainName string `json:"domainName,omitempty"` DomainName string `json:"domainName,omitempty"`
// Name is the hostname relative to the zone: e.g. for a record for blog.example.org, domain would be "example.org" and host would be "blog". // Host is the hostname relative to the zone: e.g. for a record for blog.example.org, domain would be "example.org" and host would be "blog".
// An apex record would be specified by either an empty host "" or "@". // An apex record would be specified by either an empty host "" or "@".
// A SRV record would be specified by "_{service}._{protocal}.{host}": e.g. "_sip._tcp.phone" for _sip._tcp.phone.example.org. // A SRV record would be specified by "_{service}._{protocal}.{host}": e.g. "_sip._tcp.phone" for _sip._tcp.phone.example.org.
Host string `json:"host,omitempty"` Host string `json:"host,omitempty"`
// FQDN is the Fully Qualified Domain Name. It is the combination of the host and the domain name. It always ends in a ".". // FQDN is the Fully Qualified Domain Name. It is the combination of the host and the domain name. It always ends in a ".". FQDN is ignored in CreateRecord, specify via the Host field instead.
Fqdn string `json:"fqdn,omitempty"` Fqdn string `json:"fqdn,omitempty"`
// Type is one of the following: A, AAAA, ANAME, CNAME, MX, NS, SRV, or TXT. // Type is one of the following: A, AAAA, ANAME, CNAME, MX, NS, SRV, or TXT.
Type string `json:"type,omitempty"` Type string `json:"type,omitempty"`
@ -269,6 +269,8 @@ type Contact struct {
Phone string `json:"phone,omitempty"` Phone string `json:"phone,omitempty"`
// Fax number of the contact. Should be specified in the following format: "+cc.llllllll" where cc is the country code and llllllll is the local number. // Fax number of the contact. Should be specified in the following format: "+cc.llllllll" where cc is the country code and llllllll is the local number.
Fax string `json:"fax,omitempty"` Fax string `json:"fax,omitempty"`
// Email of the contact. Should be a complete and valid email address.
Email string `json:"email,omitempty"`
} }
// Contacts stores the contact information for the roles related to domains. // Contacts stores the contact information for the roles related to domains.

6
vendor/vendor.json vendored
View File

@ -295,10 +295,10 @@
"revisionTime": "2017-09-07T07:13:03Z" "revisionTime": "2017-09-07T07:13:03Z"
}, },
{ {
"checksumSHA1": "Xg6Xt9/7LCldfHizto5H+B9hkCA=", "checksumSHA1": "lZk8GsorlpFDrvH2Dp4Nt9fpJug=",
"path": "github.com/namedotcom/go/namecom", "path": "github.com/namedotcom/go/namecom",
"revision": "8e652d1a756f2480f1ad28dc211c77a25264e02d", "revision": "08470befbe04613bd4b44cb6978b05d50294c4d4",
"revisionTime": "2018-01-09T18:53:19Z" "revisionTime": "2018-04-03T03:42:16Z"
}, },
{ {
"checksumSHA1": "ln/74dXVPX/i7aDah00ZKqbdpw8=", "checksumSHA1": "ln/74dXVPX/i7aDah00ZKqbdpw8=",