Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateRecord(zoneID, recordsetID, recordContent string) (*Record, error)
- func (c *Client) CreateRecordset(zoneID, recordType, name, recordValue string, ttl int) (*Recordset, error)
- func (c *Client) DeleteRecord(zoneID, recordsetID, recordID string) error
- func (c *Client) DeleteRecordset(zoneID string, recordsetID string) error
- func (c *Client) FindRecordset(zoneID, recordType, name string) (*Recordset, error)
- func (c *Client) FindZone(name string) (*Zone, error)
- func (c *Client) GetRecords(zoneID string, recordsetID string) ([]Record, error)
- func (c *Client) GetZones() ([]Zone, error)
- type Passport
- type Payload
- type Record
- type Recordset
- type TokenSigner
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client the HyperOne client.
func (*Client) CreateRecord ¶
CreateRecord creates a record. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_record_create
func (*Client) CreateRecordset ¶
func (c *Client) CreateRecordset(zoneID, recordType, name, recordValue string, ttl int) (*Recordset, error)
CreateRecordset creates recordset and record with given value within one request. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_create
func (*Client) DeleteRecord ¶
DeleteRecord deletes a record. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_record_delete
func (*Client) DeleteRecordset ¶
DeleteRecordset deletes a recordset. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_delete
func (*Client) FindRecordset ¶
FindRecordset looks for recordset with given recordType and name and returns it. In case if recordset is not found returns nil. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_list
func (*Client) GetRecords ¶
GetRecords gets all records within specified recordset. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_record_list
type Passport ¶
type Passport struct { SubjectID string `json:"subject_id"` CertificateID string `json:"certificate_id"` Issuer string `json:"issuer"` PrivateKey string `json:"private_key"` PublicKey string `json:"public_key"` }