Versions in this module Expand all Collapse all v4 v4.15.1 Feb 17, 2024 Changes in this version + type Client struct + HTTPClient *http.Client + func NewClient(apiEndpoint, locationID string, passport *Passport) (*Client, error) + 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 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