Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Hostname string `yaml:"hostname"` Address string `yaml:"address"` Interval int `yaml:"interval"` Etcd EtcdConfig `yaml:"etcd"` RecordFiles []string `yaml:"record_files,omitempty"` Records Records `yaml:"records,omitempty"` SRVRecords string `yaml:"srv_records,omitempty"` }
Config represents setting of coredns-register.
type EtcdConfig ¶
type EtcdConfig struct { DiscoverySRV string `yaml:"discovery-srv,omitempty"` Endpoints []string `yaml:"endpoints,omitempty"` Basepath string `yaml:"basepath"` }
EtcdConfig represents connection setting with etcd v2.
type EtcdRegister ¶
type EtcdRegister struct {
// contains filtered or unexported fields
}
EtcdRegister manages DNS registration to the etcd backend of CoreDNS.
func (*EtcdRegister) SRVRegister ¶
func (r *EtcdRegister) SRVRegister(record SRVRecord) error
SRVRegister registers SRV record.
func (*EtcdRegister) SRVUnregister ¶
func (r *EtcdRegister) SRVUnregister(record SRVRecord) error
SRVUnregister unregisters SRV record.
type Records ¶
type Records struct {
SRV []SRVRecord `yaml:"srv"`
}
Records represents a collection of DNS records.
func (*Records) InitAddress ¶
InitAddress sets an initial value for a DNS record whose address is empty.
type Register ¶
type Register interface { SRVRegister(record SRVRecord) error SRVUnregister(record SRVRecord) error }
Register registers DNS record.
Click to show internal directories.
Click to hide internal directories.