Documentation ¶
Index ¶
- Constants
- Variables
- func AlignHostname(host string) string
- func CalcMetaRecordDomainNameForValidation(name string) string
- func DNSNameMatcher(dnsname string) resources.ObjectMatcher
- func NormalizeHostname(host string) string
- func SupportedRecordType(t string) bool
- func ValidateDomainName(name string) error
- type Cache
- type DNSSet
- func (this *DNSSet) Clone() *DNSSet
- func (this *DNSSet) DeleteMetaAttr(name string)
- func (this *DNSSet) DeleteTxtAttr(name string)
- func (this *DNSSet) GetKind() string
- func (this *DNSSet) GetMetaAttr(name string) string
- func (this *DNSSet) GetOwner() string
- func (this *DNSSet) GetTxtAttr(name string) string
- func (this *DNSSet) IsForeign(ownership Ownership) bool
- func (this *DNSSet) IsOwnedBy(ownership Ownership) bool
- func (this *DNSSet) SetKind(t string, prop ...bool) *DNSSet
- func (this *DNSSet) SetMetaAttr(name string, value string)
- func (this *DNSSet) SetOwner(ownerid string) *DNSSet
- func (this *DNSSet) SetRecordSet(rtype string, ttl int64, values ...string)
- func (this *DNSSet) SetTxtAttr(name string, value string)
- type DNSSets
- func (dnssets DNSSets) AddRecordSet(name string, rs *RecordSet)
- func (dnssets DNSSets) AddRecordSetFromProvider(dnsname string, rs *RecordSet)
- func (dnssets DNSSets) Clone() DNSSets
- func (dnssets DNSSets) GetOwners() utils.StringSet
- func (dnssets DNSSets) RemoveRecordSet(name string, recordSetType string)
- type Group
- type GroupInfo
- type GroupKey
- type Ownership
- type Record
- type RecordSet
- func (this *RecordSet) Add(records ...*Record) *RecordSet
- func (this *RecordSet) Clone() *RecordSet
- func (this *RecordSet) DeleteAttr(name string)
- func (this *RecordSet) DiffTo(set *RecordSet) (new Records, update Records, delete Records)
- func (this *RecordSet) GetAttr(name string) string
- func (this *RecordSet) Length() int
- func (this *RecordSet) Match(set *RecordSet) bool
- func (this *RecordSet) RecordString() string
- func (this *RecordSet) SetAttr(name string, value string)
- type RecordSets
- type Records
Constants ¶
View Source
const ( ATTR_OWNER = "owner" ATTR_PREFIX = "prefix" ATTR_CNAMES = "cnames" ATTR_KIND = "kind" ATTR_TIMESTAMP = "ts" ATTR_LOCKID = "lockid" )
View Source
const ANNOTATION_GROUP = "dns.gardener.cloud"
View Source
const CLASS_ANNOTATION = ANNOTATION_GROUP + "/class"
View Source
const CONTROLLER_GROUP_DNS_CONTROLLERS = "dnscontrollers"
View Source
const CONTROLLER_GROUP_DNS_SOURCES = "dnssources"
View Source
const CONTROLLER_GROUP_REPLICATION = "replication"
View Source
const DEFAULT_CLASS = "gardendns"
View Source
const NOT_RATE_LIMITED_ANNOTATION = ANNOTATION_GROUP + "/not-rate-limited"
View Source
const OPT_SETUP = "setup"
View Source
const REALM_ANNOTATION = ANNOTATION_GROUP + "/realms"
View Source
const RS_A = "A"
View Source
const RS_AAAA = "AAAA"
View Source
const RS_ALIAS = "ALIAS" // provider specific alias for CNAME record (e.g. AWS alias target)
View Source
const RS_CNAME = "CNAME"
View Source
const RS_META = "META"
View Source
const RS_NS = "NS"
View Source
const RS_TXT = "TXT"
Variables ¶
View Source
var TxtPrefix = "comment-"
Functions ¶
func AlignHostname ¶
func CalcMetaRecordDomainNameForValidation ¶ added in v0.11.0
CalcMetaRecordDomainNameForValidation returns domain name of metadata TXT DNS record if globally defined prefix is used. As it does not consider the zone, it may be wrong for the zone base domain.
func DNSNameMatcher ¶
func DNSNameMatcher(dnsname string) resources.ObjectMatcher
func NormalizeHostname ¶
func SupportedRecordType ¶
func ValidateDomainName ¶ added in v0.11.0
Types ¶
type DNSSet ¶
type DNSSet struct { Name string Kind string UpdateGroup string Sets RecordSets }
func (*DNSSet) DeleteMetaAttr ¶ added in v0.11.0
func (*DNSSet) DeleteTxtAttr ¶ added in v0.11.0
func (*DNSSet) GetMetaAttr ¶ added in v0.11.0
func (*DNSSet) GetTxtAttr ¶ added in v0.11.0
func (*DNSSet) SetMetaAttr ¶ added in v0.11.0
func (*DNSSet) SetRecordSet ¶
func (*DNSSet) SetTxtAttr ¶ added in v0.11.0
type DNSSets ¶
func (DNSSets) AddRecordSet ¶
func (DNSSets) AddRecordSetFromProvider ¶
func (DNSSets) RemoveRecordSet ¶
type RecordSet ¶
func MapToProvider ¶
func (*RecordSet) DeleteAttr ¶ added in v0.11.0
func (*RecordSet) RecordString ¶
type RecordSets ¶
func (RecordSets) Clone ¶ added in v0.7.14
func (this RecordSets) Clone() RecordSets
Source Files ¶
Click to show internal directories.
Click to hide internal directories.