Versions in this module Expand all Collapse all v4 v4.12.0 Dec 19, 2023 v4.11.2 Dec 13, 2023 Changes in this version + type Client struct + HTTPClient *http.Client + func NewClient(apiEndpoint, locationID string, passport *Passport) (*Client, error) + 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 struct + CertificateID string + Issuer string + PrivateKey string + PublicKey string + SubjectID string + func LoadPassportFile(location string) (*Passport, error) + func (passport *Passport) ExtractProjectID() (string, error) + type Payload struct + Audience string + Expiry int64 + IssuedAt int64 + Issuer string + Subject string + type Record struct + Content string + Enabled bool + ID string + type Recordset struct + ID string + Name string + Record *Record + RecordType string + TTL int + type TokenSigner struct + Audience string + Issuer string + KeyID string + PrivateKey string + Subject string + func (input *TokenSigner) GetJWT() (string, error) + type Zone struct + DNSName string + FQDN string + ID string + Name string + URI string