config

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnboundConfig

type UnboundConfig struct {
	// contains filtered or unexported fields
}

UnboundConfig represents Unbound configuration file.

func Parse

func Parse(entryPath string) (*UnboundConfig, error)

Parse parses Unbound configuration files into UnboundConfig. It follows logic described in the 'man unbound.conf':

  • Files can be included using the 'include:' directive. It can appear anywhere, it accepts a single file name as argument.
  • Processing continues as if the text from the included file was copied into the config file at that point.
  • Wildcards can be used to include multiple files.

It stops processing on any error: syntax error, recursive include, glob matches directory etc.

func (UnboundConfig) ControlCertFile

func (c UnboundConfig) ControlCertFile() (string, bool)

func (UnboundConfig) ControlEnabled

func (c UnboundConfig) ControlEnabled() (bool, bool)

func (UnboundConfig) ControlInterface

func (c UnboundConfig) ControlInterface() (string, bool)

func (UnboundConfig) ControlKeyFile

func (c UnboundConfig) ControlKeyFile() (string, bool)

func (UnboundConfig) ControlPort

func (c UnboundConfig) ControlPort() (string, bool)

func (UnboundConfig) ControlUseCert

func (c UnboundConfig) ControlUseCert() (bool, bool)

func (UnboundConfig) Cumulative

func (c UnboundConfig) Cumulative() (bool, bool)

func (UnboundConfig) Empty

func (c UnboundConfig) Empty() bool

func (UnboundConfig) String

func (c UnboundConfig) String() string

Jump to

Keyboard shortcuts

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