Documentation ¶
Index ¶
- Variables
- type Mgr
- func (c *Mgr) AddDomainDelagate(identity, user, domain string) error
- func (c *Mgr) AddSubdomain(user string, domain string, IPs []net.IP) error
- func (c *Mgr) Cleanup() error
- func (c *Mgr) RemoveDomainDelagate(user string, domain string) error
- func (c *Mgr) RemoveSubdomain(user string, domain string, IPs []net.IP) error
- type Record
- type RecordA
- type RecordAAAA
- type RecordCname
- type RecordTXT
- type RecordType
- type Zone
- type ZoneOwner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RecordTypeA = RecordType("a") RecordTypeAAAA = RecordType("aaaa") RecordTypeCNAME = RecordType("cname") RecordTypeTXT = RecordType("txt") )
Enum value for RecordType
View Source
var ( // ErrAuth is return when a user is not allow to do certain action on a domain // most usually it is because the domain is own by someone else ErrAuth = errors.New("unauthorized error") // ErrSubdomainUsed returned if the subdomain is already reserved ErrSubdomainUsed = errors.New("subdomain already reserved") )
Functions ¶
This section is empty.
Types ¶
type Mgr ¶
type Mgr struct {
// contains filtered or unexported fields
}
Mgr is responsible to configure CoreDNS trough its redis pluging
func (*Mgr) AddDomainDelagate ¶
AddDomainDelagate configures coreDNS to manage domain
func (*Mgr) AddSubdomain ¶
AddSubdomain configures a domain A or AAA records depending on the version of the IP address in IPs
func (*Mgr) Cleanup ¶
Cleanup makes sure that currect coredns configuration is optimal by cleaning up not used records
func (*Mgr) RemoveDomainDelagate ¶
RemoveDomainDelagate remove a delagated domain added with AddDomainDelagate
type Record ¶
type Record interface {
Type() RecordType
}
Record define the interface to be a DNS record
type RecordAAAA ¶
RecordAAAA is a type AAAA DNS record
type RecordCname ¶
RecordCname is a type CNAME DNS record
Click to show internal directories.
Click to hide internal directories.