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).
47 lines
1 KiB
Go
47 lines
1 KiB
Go
package rackspace
|
|
|
|
// APIKeyCredentials API credential
|
|
type APIKeyCredentials struct {
|
|
Username string `json:"username"`
|
|
APIKey string `json:"apiKey"`
|
|
}
|
|
|
|
// Auth auth credentials
|
|
type Auth struct {
|
|
APIKeyCredentials `json:"RAX-KSKEY:apiKeyCredentials"`
|
|
}
|
|
|
|
// AuthData Auth data
|
|
type AuthData struct {
|
|
Auth `json:"auth"`
|
|
}
|
|
|
|
// Identity Identity
|
|
type Identity struct {
|
|
Access struct {
|
|
ServiceCatalog []struct {
|
|
Endpoints []struct {
|
|
PublicURL string `json:"publicURL"`
|
|
TenantID string `json:"tenantId"`
|
|
} `json:"endpoints"`
|
|
Name string `json:"name"`
|
|
} `json:"serviceCatalog"`
|
|
Token struct {
|
|
ID string `json:"id"`
|
|
} `json:"token"`
|
|
} `json:"access"`
|
|
}
|
|
|
|
// Records is the list of records sent/received from the DNS API
|
|
type Records struct {
|
|
Record []Record `json:"records"`
|
|
}
|
|
|
|
// Record represents a Rackspace DNS record
|
|
type Record struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Data string `json:"data"`
|
|
TTL int `json:"ttl,omitempty"`
|
|
ID string `json:"id,omitempty"`
|
|
}
|