libdns-gandi

Fork https://github.com/foxcpp/libdns-gandi

git clone git://git.lin.moe/go/libdns-gandi.git

 1package gandi
 2
 3type gandiErrors struct {
 4	Location    string `json:"body"`
 5	Name        string `json:"name"`
 6	Description string `json:"description"`
 7}
 8
 9type gandiStatus struct {
10	Code    int           `json:"code"`
11	Message string        `json:"message"`
12	Object  string        `json:"object"`
13	Cause   string        `json:"cause"`
14	Errors  []gandiErrors `json:"errors"`
15}
16
17type gandiDomain struct {
18	Fqdn               string `json:"fqdn"`
19	AutomaticSnapshots bool   `json:"automatic_snapshots"`
20	DomainHref         string `json:"domain_href"`
21	DomainKeysHref     string `json:"domain_keys_href"`
22	DomainRecordsHref  string `json:"domain_records_href"`
23}
24
25type gandiRecord struct {
26	RRSetHref   string   `json:"rrset_href,omitempty"`
27	RRSetName   string   `json:"rrset_name,omitempty"`
28	RRSetType   string   `json:"rrset_type,omitempty"`
29	RRSetValues []string `json:"rrset_values,omitempty"`
30	RRSetTTL    int      `json:"rrset_ttl,omitempty"`
31}