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 ¶
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.
Click to show internal directories.
Click to hide internal directories.