unbound

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 16 Imported by: 1

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 added in v1.6.0

type AccessControlSettings struct {
	Allowed []netaddr.IPPrefix
}

func (*AccessControlSettings) Lines added in v1.6.0

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 added in v1.6.0

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 added in v1.6.0

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

func (*Settings) String added in v1.6.0

func (s *Settings) String() string

Jump to

Keyboard shortcuts

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