Versions in this module Expand all Collapse all v0 v0.1.2 Feb 21, 2024 v0.1.1 Feb 21, 2024 Changes in this version + type FailoverMeta struct + Frequency int + HTTPStatusCode *int + Host *string + Method *string + Port int + Protocol string + Regexp *string + Timeout int + Tls *bool + Url *string + Verify *bool + type Meta struct + Failover *FailoverMeta type RRSet + Meta *Meta type RecordFilter + func NewIsHealthyFilter(limit uint, strict bool) RecordFilter v0.1.0 Dec 27, 2022 Changes in this version + func BearerAuth(token string) func() authHeader + func ContentFromValue(recordType, content string) []interface + func PermanentAPIKeyAuth(token string) func() authHeader + type APIError struct + Message string + StatusCode int + func (a APIError) Error() string + type AddZone struct + Name string + type AddZoneOpt func(*RRSet) + func WithFilters(filters ...RecordFilter) AddZoneOpt + type Client struct + BaseURL *url.URL + Debug bool + HTTPClient *http.Client + UserAgent string + func NewClient(authorizer func() authHeader, opts ...func(*Client)) *Client + func (c *Client) AddZoneRRSet(ctx context.Context, zone, recordName, recordType string, ...) error + func (c *Client) CreateRRSet(ctx context.Context, zone, name, recordType string, record RRSet) error + func (c *Client) CreateZone(ctx context.Context, name string) (uint64, error) + func (c *Client) DeleteRRSet(ctx context.Context, zone, name, recordType string) error + func (c *Client) DeleteRRSetRecord(ctx context.Context, zone, name, recordType string, contents ...string) error + func (c *Client) DeleteZone(ctx context.Context, name string) error + func (c *Client) RRSet(ctx context.Context, zone, name, recordType string) (RRSet, error) + func (c *Client) UpdateRRSet(ctx context.Context, zone, name, recordType string, record RRSet) error + func (c *Client) Zone(ctx context.Context, name string) (Zone, error) + func (c *Client) Zones(ctx context.Context, filters ...func(zone *ZonesFilter)) ([]Zone, error) + func (c *Client) ZonesWithRecords(ctx context.Context, filters ...func(zone *ZonesFilter)) ([]Zone, error) + type CreateResponse struct + Error string + ID uint64 + type ListZones struct + Zones []Zone + type RRSet struct + Filters []RecordFilter + Records []ResourceRecord + TTL int + func (rr *RRSet) AddFilter(filters ...RecordFilter) *RRSet + type RecordFilter struct + Limit uint + Strict bool + Type string + func NewDefaultFilter(limit uint, strict bool) RecordFilter + func NewFirstNFilter(limit uint, strict bool) RecordFilter + func NewGeoDNSFilter(limit uint, strict bool) RecordFilter + func NewGeoDistanceFilter(limit uint, strict bool) RecordFilter + type RecordType interface + ToContent func() []interface{} + func ToRecordType(rType, content string) RecordType + type RecordTypeAny string + func (any RecordTypeAny) ToContent() []interface{} + type RecordTypeCAA string + func (caa RecordTypeCAA) ToContent() []interface{} + type RecordTypeMX string + func (mx RecordTypeMX) ToContent() []interface{} + type RecordTypeSRV string + func (srv RecordTypeSRV) ToContent() []interface{} + type ResourceMeta struct + func NewResourceMetaAsn(asn ...uint64) ResourceMeta + func NewResourceMetaContinents(continents ...string) ResourceMeta + func NewResourceMetaCountries(countries ...string) ResourceMeta + func NewResourceMetaDefault() ResourceMeta + func NewResourceMetaIP(ips ...string) ResourceMeta + func NewResourceMetaLatLong(latlong string) ResourceMeta + func NewResourceMetaNotes(notes ...string) ResourceMeta + func (rm ResourceMeta) Valid() error + type ResourceRecord struct + Content []interface{} + Enabled bool + Meta map[string]interface{} + func (r *ResourceRecord) AddMeta(meta ResourceMeta) *ResourceRecord + func (r *ResourceRecord) SetContent(recordType, val string) *ResourceRecord + func (r ResourceRecord) ContentToString() string + type Zone struct + Name string + Records []ZoneRecord + type ZoneRecord struct + Name string + ShortAnswers []string + TTL uint + Type string + type ZonesFilter struct + Names []string