unbound

package
v0.0.0-...-e7b131c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVersionNotFound = errors.New("unbound version not found")

Functions

This section is empty.

Types

type AccessControlSettings

type AccessControlSettings struct {
	Allowed []netaddr.IPPrefix
}

func (*AccessControlSettings) Lines

func (s *AccessControlSettings) Lines() (lines []string)

type Configurator

type Configurator interface {
	SetupFiles(ctx context.Context) error
	MakeUnboundConf(settings Settings) (err error)
	Start(ctx context.Context, verbosityDetailsLevel uint8) (
		stdoutLines, stderrLines chan string, waitError chan error, err error)
	Version(ctx context.Context) (version string, err error)
}

func NewConfigurator

func NewConfigurator(logger logging.Logger,
	cmder command.RunStarter, dnscrypto dnscrypto.DNSCrypto,
	unboundEtcDir, unboundPath, cacertsPath string) Configurator

type Settings

type Settings struct {
	Providers             []provider.Provider
	ListeningPort         uint16
	Caching               bool
	IPv4                  bool
	IPv6                  bool
	VerbosityLevel        uint8
	VerbosityDetailsLevel uint8
	ValidationLogLevel    uint8
	AccessControl         AccessControlSettings
	Username              string
	Blacklist             blacklist.Settings
}

Settings represents all the user settings for Unbound.

func (*Settings) Lines

func (s *Settings) Lines() (lines []string)

func (*Settings) String

func (s *Settings) String() string

Jump to

Keyboard shortcuts

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