config

package
Version: v0.0.0-...-58a129c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config parses a YAML-formatted dns-tools configuration file for further use in the tools

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ZoneDataDirectory string
	Defaults          ManagedZoneDefaults
	ManagedZones      []ManagedZoneConfig
}

Config holds the dns-tools configuration

func New

func New(fname string) (*Config, error)

New creates a new database instance

type ManagedZoneConfig

type ManagedZoneConfig struct {
	FQDN string
	TTL  int
}

ManagedZoneConfig holds a managed zone's configuration

type ManagedZoneDefaults

type ManagedZoneDefaults struct {
	TTL int
}

ManagedZoneDefaults holds the default configuration fo managed zones

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL