Documentation ¶
Index ¶
- func OAuthStaticAccessToken(client *http.Client, accessToken string) *http.Client
- type APIError
- type Client
- func (c Client) AddRecord(ctx context.Context, zoneID string, record Record) (*Record, error)
- func (c Client) DeleteRecord(ctx context.Context, zoneID, recordID string) error
- func (c Client) GetRecords(ctx context.Context, zoneID, recordType string) ([]Record, error)
- func (c Client) GetZone(ctx context.Context, zoneID string) (*Zone, error)
- func (c Client) GetZones(ctx context.Context, query string, limit, offset int) ([]Zone, error)
- type Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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_
Click to show internal directories.
Click to hide internal directories.