Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + var ErrDomainMissing = errors.New("domain is missing") + var ErrNoEntriesFound = errors.New("No entries found for this key") + var ErrNotImplemented = errors.New("The method is not implemented") + type CoreDNS struct + func (c *CoreDNS) Close() error + func (c *CoreDNS) Delete(bucket string) error + func (c *CoreDNS) DeleteRecord(record SrvRecord) error + func (c *CoreDNS) Get(bucket string) ([]SrvRecord, error) + func (c *CoreDNS) List() (map[string][]SrvRecord, error) + func (c *CoreDNS) Put(bucket string) error + func (c *CoreDNS) String() string + type ErrInvalidBucketName Error + func (e ErrInvalidBucketName) Error() string + type Error struct + Bucket string + Err error + func (e Error) Error() string + type EtcdOption func(*CoreDNS) + func CoreDNSPath(prefix string) EtcdOption + func DomainIPs(domainIPs set.StringSet) EtcdOption + func DomainNames(domainNames []string) EtcdOption + func DomainPort(domainPort string) EtcdOption + type OperatorDNS struct + Endpoint string + func (c *OperatorDNS) Close() error + func (c *OperatorDNS) Delete(bucket string) error + func (c *OperatorDNS) DeleteRecord(record SrvRecord) error + func (c *OperatorDNS) Get(bucket string) (srvRecords []SrvRecord, err error) + func (c *OperatorDNS) List() (srvRecords map[string][]SrvRecord, err error) + func (c *OperatorDNS) Put(bucket string) error + func (c *OperatorDNS) String() string + type OperatorOption func(*OperatorDNS) + func Authentication(username, password string) OperatorOption + func RootCAs(CAs *x509.CertPool) OperatorOption + type SrvRecord struct + CreationDate time.Time + Group string + Host string + Key string + Mail bool + Port json.Number + Priority int + TTL uint32 + TargetStrip int + Text string + Weight int + type Store interface + Close func() error + Delete func(bucket string) error + DeleteRecord func(record SrvRecord) error + Get func(bucket string) ([]SrvRecord, error) + List func() (map[string][]SrvRecord, error) + Put func(bucket string) error + String func() string + func NewCoreDNS(cfg clientv3.Config, setters ...EtcdOption) (Store, error) + func NewOperatorDNS(endpoint string, setters ...OperatorOption) (Store, error)