Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZoneTypeZone = "zones" ZoneTypeForwardZone = "forward-zones" )
View Source
const ( ForwardZonesFile = "/etc/powerdns/forward-zones.conf" ForwardZonesConsulKVKey = "forward-zones" )
TODO: move to config
View Source
const (
DefaultMaxResults string = "10"
)
Variables ¶
This section is empty.
Functions ¶
func ForwardZoneIsExist ¶
func ForwardZoneIsExist(fzs ForwardZones, searchName string) bool
Types ¶
type ForwardZone ¶
ForwardZone represent a zones and it nameservers from forward-zones-file
func DeleteForwardZone ¶
func DeleteForwardZone(fzs []ForwardZone, deleteName string) ([]ForwardZone, error)
func ParseForwardZoneLine ¶
func ParseForwardZoneLine(s string) (*ForwardZone, error)
ParseForwardZoneLine parse string to ForwardZone
func (ForwardZone) String ¶
func (fz ForwardZone) String() string
String implements fmt.Stringer interface
type ForwardZones ¶
type ForwardZones []ForwardZone
ForwardZones represent list of zones and its nameservers from forward-zones-file
func ParseForwardZoneFile ¶
func ParseForwardZoneFile(r io.Reader) (ForwardZones, error)
func ParseForwardZonesInput ¶
func ParseForwardZonesInput(data io.Reader) (ForwardZones, error)
ParseForwardZonesInput parses input data and return err if data invalid.
func UpdateForwardZone ¶
func UpdateForwardZone(fzs ForwardZones, fz ForwardZone) (ForwardZones, error)
func (ForwardZones) Less ¶
func (fzs ForwardZones) Less(i, j int) bool
func (ForwardZones) Swap ¶
func (fzs ForwardZones) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.