Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateRecord(ctx context.Context, zoneID, recordsetID, recordContent string) (*Record, error)
- func (c *Client) CreateRecordset(ctx context.Context, zoneID, recordType, name, recordValue string, ttl int) (*Recordset, error)
- func (c *Client) DeleteRecord(ctx context.Context, zoneID, recordsetID, recordID string) error
- func (c *Client) DeleteRecordset(ctx context.Context, zoneID string, recordsetID string) error
- func (c *Client) FindRecordset(ctx context.Context, zoneID, recordType, name string) (*Recordset, error)
- func (c *Client) FindZone(ctx context.Context, name string) (*Zone, error)
- func (c *Client) GetRecords(ctx context.Context, zoneID string, recordsetID string) ([]Record, error)
- func (c *Client) GetZones(ctx context.Context) ([]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 ¶
func (c *Client) CreateRecord(ctx context.Context, zoneID, recordsetID, recordContent string) (*Record, error)
CreateRecord creates a record. https://api.hyperone.com/v2/docs#operation/dns_project_zone_recordset_record_create
func (*Client) CreateRecordset ¶
func (c *Client) CreateRecordset(ctx context.Context, 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 ¶
func (c *Client) FindRecordset(ctx context.Context, zoneID, recordType, name string) (*Recordset, error)
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 ¶
func (c *Client) GetRecords(ctx context.Context, zoneID string, recordsetID string) ([]Record, error)
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"` }