Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2023 Changes in this version + const RecordTypeA + const RecordTypeCNAME + const RecordTypeNS + const RecordTypePTR + const RecordTypeSRV + const RecordTypeTXT + var ErrInvalidHeritage = errors.New("heritage is unknown or not found") + type DomainFilter struct + Filters []string + func NewDomainFilter(domainFilters []string) DomainFilter + func NewDomainFilterWithExclusions(domainFilters []string, excludeDomains []string) DomainFilter + func NewRegexDomainFilter(regexDomainFilter *regexp.Regexp, regexDomainExclusion *regexp.Regexp) DomainFilter + func (df *DomainFilter) UnmarshalJSON(b []byte) error + func (df DomainFilter) IsConfigured() bool + func (df DomainFilter) MarshalJSON() ([]byte, error) + func (df DomainFilter) Match(domain string) bool + func (df DomainFilter) MatchParent(domain string) bool + type DomainFilterInterface interface + IsConfigured func() bool + Match func(domain string) bool + type Endpoint struct + DNSName string + Labels Labels + ProviderSpecific ProviderSpecific + RecordTTL TTL + RecordType string + SetIdentifier string + Targets Targets + func NewEndpoint(dnsName, recordType string, targets ...string) *Endpoint + func NewEndpointWithTTL(dnsName, recordType string, ttl TTL, targets ...string) *Endpoint + func (e *Endpoint) GetProviderSpecificProperty(key string) (ProviderSpecificProperty, bool) + func (e *Endpoint) String() string + func (e *Endpoint) WithProviderSpecific(key, value string) *Endpoint + func (e *Endpoint) WithSetIdentifier(setIdentifier string) *Endpoint + type Labels map[string]string + func NewLabels() Labels + func NewLabelsFromString(labelText string) (Labels, error) + func (l Labels) Serialize(withQuotes bool) string + type MatchAllDomainFilters []DomainFilterInterface + func (f MatchAllDomainFilters) IsConfigured() bool + func (f MatchAllDomainFilters) Match(domain string) bool + type ProviderSpecific []ProviderSpecificProperty + type ProviderSpecificProperty struct + Name string + Value string + type TTL int64 + func (ttl TTL) IsConfigured() bool + type TargetFilterInterface interface + IsConfigured func() bool + Match func(target string) bool + type TargetNetFilter struct + FilterNets []*net.IPNet + func NewTargetNetFilter(targetFilterNets []string) TargetNetFilter + func NewTargetNetFilterWithExclusions(targetFilterNets []string, excludeNets []string) TargetNetFilter + func (tf TargetNetFilter) IsConfigured() bool + func (tf TargetNetFilter) Match(target string) bool + type Targets []string + func NewTargets(target ...string) Targets + func (t Targets) IsLess(o Targets) bool + func (t Targets) Len() int + func (t Targets) Less(i, j int) bool + func (t Targets) Same(o Targets) bool + func (t Targets) String() string + func (t Targets) Swap(i, j int)