Documentation ¶
Index ¶
Constants ¶
View Source
const ApiHostname = "https://api.cloudns.net/"
View Source
const (
EPLogin = "dns/login.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClouDNSAPI ¶
type ClouDNSAPI struct {
// contains filtered or unexported fields
}
func New ¶
func New(SubAuthID string, AuthPassword string) ClouDNSAPI
func (*ClouDNSAPI) GetRecordsForZone ¶
func (c *ClouDNSAPI) GetRecordsForZone(zone string) ([]ZoneRecord, error)
func (*ClouDNSAPI) GetZones ¶
func (c *ClouDNSAPI) GetZones() ([]ZoneListResponse, error)
func (*ClouDNSAPI) Login ¶
func (c *ClouDNSAPI) Login() (StatusResponse, error)
type StatusResponse ¶
type ZoneListResponse ¶
type ZoneRecord ¶
type ZoneRecord struct { StatusResponse ID string `json:"id"` Type string `json:"type"` Host string `json:"host"` Record string `json:"record"` Failover string `json:"failover"` TTL string `json:"ttl"` Status int64 `json:"status"` DynamicurlStatus *int64 `json:"dynamicurl_status,omitempty"` Priority *string `json:"priority,omitempty"` Weight *string `json:"weight,omitempty"` Port *string `json:"port,omitempty"` }
Click to show internal directories.
Click to hide internal directories.