forked from TrueCloudLab/lego
bba134ce87
* feat: add GetOrDefaultXXX methods. * refactor: configuration (alidns). * refactor: configuration (azure). * refactor: configuration (auroradns). * refactor: configuration (bluecat). * refactor: configuration (cloudflare). * refactor: configuration (digitalocean). * refactor: configuration (dnsimple). * refactor: configuration (dnmadeeasy). * refactor: configuration (dnspod). * refactor: configuration (duckdns). * refactor: configuration (dyn). * refactor: configuration (exoscale). * refactor: configuration (fastdns). * refactor: configuration (gandi). * refactor: configuration (gandiv5). * refactor: configuration (gcloud). * refactor: configuration (glesys). * refactor: configuration (godaddy). * refactor: configuration (iij). * refactor: configuration (lightsail). * refactor: configuration (linode). * refactor: configuration (namecheap). * refactor: configuration (namedotcom). * refactor: configuration (netcup). * refactor: configuration (nifcloud). * refactor: configuration (ns1). * refactor: configuration (otc). * refactor: configuration (ovh). * refactor: configuration (pdns). * refactor: configuration (rackspace). * refactor: configuration (rfc2136). * refactor: configuration (route53). * refactor: configuration (sakuracloud). * refactor: configuration (vegadns). * refactor: configuration (vultr).
68 lines
1.3 KiB
Go
68 lines
1.3 KiB
Go
package otc
|
|
|
|
type recordset struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Type string `json:"type"`
|
|
TTL int `json:"ttl"`
|
|
Records []string `json:"records"`
|
|
}
|
|
|
|
type nameResponse struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type userResponse struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
Domain nameResponse `json:"domain"`
|
|
}
|
|
|
|
type passwordResponse struct {
|
|
User userResponse `json:"user"`
|
|
}
|
|
|
|
type identityResponse struct {
|
|
Methods []string `json:"methods"`
|
|
Password passwordResponse `json:"password"`
|
|
}
|
|
|
|
type scopeResponse struct {
|
|
Project nameResponse `json:"project"`
|
|
}
|
|
|
|
type authResponse struct {
|
|
Identity identityResponse `json:"identity"`
|
|
Scope scopeResponse `json:"scope"`
|
|
}
|
|
|
|
type loginResponse struct {
|
|
Auth authResponse `json:"auth"`
|
|
}
|
|
|
|
type endpointResponse struct {
|
|
Token struct {
|
|
Catalog []struct {
|
|
Type string `json:"type"`
|
|
Endpoints []struct {
|
|
URL string `json:"url"`
|
|
} `json:"endpoints"`
|
|
} `json:"catalog"`
|
|
} `json:"token"`
|
|
}
|
|
|
|
type zoneItem struct {
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
type zonesResponse struct {
|
|
Zones []zoneItem `json:"zones"`
|
|
}
|
|
|
|
type recordSet struct {
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
type recordSetsResponse struct {
|
|
RecordSets []recordSet `json:"recordsets"`
|
|
}
|