Documentation
¶
Index ¶
- func AddFlags(flags *pflag.FlagSet)
- type Builder
- type DNSUpdater
- type NSUpdate
- func (nsu *NSUpdate) AddRR(record hookTypes.DNSRecord, ttl time.Duration) (err error)
- func (nsu *NSUpdate) BuildCmdFile(cmd string) (fileName string, err error)
- func (nsu *NSUpdate) ExecCmdFile(filePath string) (err error)
- func (nsu *NSUpdate) ExecuteCommand(cmd string) (err error)
- func (nsu *NSUpdate) RemoveRR(name, recordType string) (err error)
- func (nsu *NSUpdate) UpdateRR(record hookTypes.DNSRecord, ttl time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct { Server string Port string KeyFile string BasePath string Zone string Debug bool }
func (*Builder) InitFromViper ¶
InitFromViper initializes Builder with properties retrieved from Viper.
type DNSUpdater ¶
type DNSUpdater interface { RemoveRR(name, recordType string) (err error) AddRR(record hookTypes.DNSRecord, ttl time.Duration) (err error) UpdateRR(record hookTypes.DNSRecord, ttl time.Duration) (err error) }
DNSUpdater defines an interface to communicate with DNS Server via nsupdate commands
type NSUpdate ¶
type NSUpdate struct {
Builder
}
NSUpdate holds the information necessary to successfully run nsupdate requests
func (*NSUpdate) BuildCmdFile ¶
BuildCmdFile creates an nsupdate cmd file
func (*NSUpdate) ExecCmdFile ¶
ExecCmdFile executes an nsupdate cmd file
func (*NSUpdate) ExecuteCommand ¶
ExecuteCommand executes a given nsupdate command
Click to show internal directories.
Click to hide internal directories.