Vendor main dependencies.
This commit is contained in:
parent
49a09ab7dd
commit
dd5e3fba01
2738 changed files with 1045689 additions and 0 deletions
24
vendor/github.com/weppos/dnsimple-go/dnsimple/domains_zones.go
generated
vendored
Normal file
24
vendor/github.com/weppos/dnsimple-go/dnsimple/domains_zones.go
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
package dnsimple
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type zoneResponse struct {
|
||||
Zone string `json:"zone,omitempty"`
|
||||
}
|
||||
|
||||
// GetZone downloads the Bind-like zone file.
|
||||
//
|
||||
// DNSimple API docs: http://developer.dnsimple.com/domains/zones/#get
|
||||
func (s *DomainsService) GetZone(domain interface{}) (string, *Response, error) {
|
||||
path := fmt.Sprintf("%s/zone", domainPath(domain))
|
||||
zoneResponse := zoneResponse{}
|
||||
|
||||
res, err := s.client.get(path, &zoneResponse)
|
||||
if err != nil {
|
||||
return "", res, err
|
||||
}
|
||||
|
||||
return zoneResponse.Zone, res, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue