Documentation ¶
Index ¶
- type AuroraDNSClient
- func (client *AuroraDNSClient) CreateRecord(zoneID string, data records.CreateRecordRequest) (*records.CreateRecordResponse, error)
- func (client *AuroraDNSClient) GetRecords(zoneID string) ([]records.GetRecordsResponse, error)
- func (client *AuroraDNSClient) GetZones() ([]zones.ZoneRecord, error)
- func (client *AuroraDNSClient) RemoveRecord(zoneID string, recordID string) (*records.RemoveRecordResponse, error)
- type AuroraDNSError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuroraDNSClient ¶
type AuroraDNSClient struct {
// contains filtered or unexported fields
}
AuroraDNSClient is a client for accessing the Aurora DNS API
func NewAuroraDNSClient ¶
func NewAuroraDNSClient(endpoint string, userID string, key string) (*AuroraDNSClient, error)
NewAuroraDNSClient instantiates a new client
func (*AuroraDNSClient) CreateRecord ¶
func (client *AuroraDNSClient) CreateRecord(zoneID string, data records.CreateRecordRequest) (*records.CreateRecordResponse, error)
CreateRecord creates a new record in given zone
func (*AuroraDNSClient) GetRecords ¶
func (client *AuroraDNSClient) GetRecords(zoneID string) ([]records.GetRecordsResponse, error)
GetRecords returns a list of all records in given zone
func (*AuroraDNSClient) GetZones ¶
func (client *AuroraDNSClient) GetZones() ([]zones.ZoneRecord, error)
GetZones returns a list of all zones
func (*AuroraDNSClient) RemoveRecord ¶
func (client *AuroraDNSClient) RemoveRecord(zoneID string, recordID string) (*records.RemoveRecordResponse, error)
RemoveRecord removes a record corresponding to a particular id in a given zone
type AuroraDNSError ¶
AuroraDNSError describes the format of a generic AuroraDNS API error
func (AuroraDNSError) Error ¶
func (e AuroraDNSError) Error() string
Click to show internal directories.
Click to hide internal directories.