From 708509646859b1e61d6347f56beff379753c5c8a Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Thu, 3 May 2018 10:42:34 -0400 Subject: [PATCH] update vendored namecom lib --- vendor/github.com/namedotcom/go/namecom/domains.go | 2 +- vendor/github.com/namedotcom/go/namecom/namecom.go | 8 +++++--- vendor/vendor.json | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/vendor/github.com/namedotcom/go/namecom/domains.go b/vendor/github.com/namedotcom/go/namecom/domains.go index 2b0934f23..bee080beb 100644 --- a/vendor/github.com/namedotcom/go/namecom/domains.go +++ b/vendor/github.com/namedotcom/go/namecom/domains.go @@ -208,7 +208,7 @@ func (n *NameCom) PurchasePrivacy(request *PrivacyRequest) (*PrivacyResponse, er // SetNameservers will set the nameservers for the Domain. 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{} err := json.NewEncoder(post).Encode(request) diff --git a/vendor/github.com/namedotcom/go/namecom/namecom.go b/vendor/github.com/namedotcom/go/namecom/namecom.go index cf01c5e47..3c27483dd 100644 --- a/vendor/github.com/namedotcom/go/namecom/namecom.go +++ b/vendor/github.com/namedotcom/go/namecom/namecom.go @@ -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 - response, err := nc.HelloFunc(&HelloRequest{}) + response, err := nc.HelloFunc(&namecom.HelloRequest{}) if err != nil { // TODO: handle error } @@ -146,11 +146,11 @@ type Record struct { ID int32 `json:"id,omitempty"` // DomainName is the zone that the record belongs to. 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 "@". // 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"` - // 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"` // Type is one of the following: A, AAAA, ANAME, CNAME, MX, NS, SRV, or TXT. Type string `json:"type,omitempty"` @@ -269,6 +269,8 @@ type Contact struct { 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 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. diff --git a/vendor/vendor.json b/vendor/vendor.json index dccb3fc20..a088a37e6 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -295,10 +295,10 @@ "revisionTime": "2017-09-07T07:13:03Z" }, { - "checksumSHA1": "Xg6Xt9/7LCldfHizto5H+B9hkCA=", + "checksumSHA1": "lZk8GsorlpFDrvH2Dp4Nt9fpJug=", "path": "github.com/namedotcom/go/namecom", - "revision": "8e652d1a756f2480f1ad28dc211c77a25264e02d", - "revisionTime": "2018-01-09T18:53:19Z" + "revision": "08470befbe04613bd4b44cb6978b05d50294c4d4", + "revisionTime": "2018-04-03T03:42:16Z" }, { "checksumSHA1": "ln/74dXVPX/i7aDah00ZKqbdpw8=",