Documentation ¶
Index ¶
- Constants
- type AccInfo
- type AuthResp
- type QueryInfo
- type RRSet
- type RegistrarInfo
- type ResultInfo
- type UltraDns
- func (ud *UltraDns) Authenticate(username, password string) error
- func (ud *UltraDns) GetAccountDetails() ([]AccInfo, error)
- func (ud *UltraDns) GetAllZones() ([]Zone, error)
- func (ud *UltraDns) GetRRsets(zName string, offset, limit int) ([]RRSet, ResultInfo, error)
- func (ud *UltraDns) GetVersion() (VerInfo, error)
- type VerInfo
- type Zone
- type ZoneProp
Constants ¶
View Source
const ( UltraHost = "https://restapi.ultradns.com" AuthURL = UltraHost + "/v1/authorization/token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistrarInfo ¶
type RegistrarInfo struct { Registrar string `json:"registrar"` WhoIsExpires string `json:"whoisExpiration,omitempty"` NameServers struct { Ok []string `json:"ok,omitempty"` Unknown []string `json:"unknown,omitempty"` Missing []string `json:"missing,omitempty"` InCorrect []string `json:"incorrect,omitempty"` } `json:"nameServers,omitempty"` }
type ResultInfo ¶
type UltraDns ¶
type UltraDns struct { Client *gorequest.SuperAgent // contains filtered or unexported fields }
func NewSession ¶
func NewSession() *UltraDns
func (*UltraDns) Authenticate ¶
get and set the authentication tokens
func (*UltraDns) GetAccountDetails ¶
get account details for user
func (*UltraDns) GetAllZones ¶
list all zones for the account
type Zone ¶
type Zone struct { Property ZoneProp `json:"properties"` RegInfo RegistrarInfo `json:"registrarInfo"` RestrictIps []struct { SingleIP string `json:"singleIP,omitempty"` StartIP string `json:"startIP,omitempty"` EndIP string `json:"EndIP,omitempty"` } `json:"restrictIpList,omitempty"` }
type ZoneProp ¶
type ZoneProp struct { ZName string `json:"name"` AccName string `json:"accountName"` AccType string `json:"type"` DNSSecStatus string `json:"dnssecStatus"` Status string `json:"status"` Owner string `json:"owner"` RRCount int `json:"resourceRecordCount"` LastUpdated string `json:"lastModifiedDateTime"` }
Click to show internal directories.
Click to hide internal directories.