Documentation ¶
Index ¶
- type APIError
- type Client
- func (c Client) AddRecord(zoneID string, record Record) (*Record, error)
- func (c Client) DeleteRecord(zoneID, recordID string) error
- func (c Client) GetRecords(zoneID, recordType string) ([]Record, error)
- func (c Client) GetZone(zoneID string) (*Zone, error)
- func (c Client) GetZones(query string, limit, offset int) ([]Zone, error)
- type Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type Client ¶
Client a Hosttech client.
func (Client) AddRecord ¶
AddRecord Adds a new record to the zone and returns the newly created record. https://api.ns1.hosttech.eu/api/documentation/#/Records/post_api_user_v1_zones__zoneId__records
func (Client) DeleteRecord ¶
DeleteRecord Deletes a single record for the given id. https://api.ns1.hosttech.eu/api/documentation/#/Records/delete_api_user_v1_zones__zoneId__records__recordId_
func (Client) GetRecords ¶
GetRecords Returns a list of all records for the given zone. https://api.ns1.hosttech.eu/api/documentation/#/Records/get_api_user_v1_zones__zoneId__records
func (Client) GetZone ¶
GetZone Get a single zone. https://api.ns1.hosttech.eu/api/documentation/#/Zones/get_api_user_v1_zones__zoneId_