Documentation ¶
Index ¶
- Constants
- func AddFlags(flags *pflag.FlagSet)
- type Builder
- type Manager
- func (m *Manager) AddDNSRecord(record hookTypes.DNSRecord) (err error)
- func (m *Manager) GetDNSRecord(name, recordType string) (record *hookTypes.DNSRecord, err error)
- func (m *Manager) GetDNSRecords() (records []hookTypes.DNSRecord, err error)
- func (m *Manager) HasDNSRecord(name, recordType string) bool
- func (m *Manager) RemoveDNSRecord(name, recordType string) error
- func (m *Manager) UpdateDNSRecord(record hookTypes.DNSRecord) (err error)
Constants ¶
View Source
const (
// Extension sets the extension of the files holding the records infos
Extension = "bindman"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
func (*Builder) InitFromViper ¶
InitFromViper initializes Options with properties retrieved from Viper.
type Manager ¶
type Manager struct { *Builder DNSRecords *diskv.Diskv Door *sync.RWMutex DNSUpdater azure.DNSUpdater }
Manager holds the information for managing a dns server
func (*Manager) AddDNSRecord ¶
AddDNSRecord adds a new DNS record
func (*Manager) GetDNSRecord ¶
GetDNSRecord retrieves the dns record identified by name
func (*Manager) GetDNSRecords ¶
GetDNSRecords retrieves all the dns records being managed
func (*Manager) HasDNSRecord ¶
GetDNSRecord retrieves the dns record identified by name
func (*Manager) RemoveDNSRecord ¶
RemoveDNSRecord removes a DNS record
Click to show internal directories.
Click to hide internal directories.