Documentation ¶
Index ¶
- type UnboundConfig
- func (c UnboundConfig) ControlCertFile() (string, bool)
- func (c UnboundConfig) ControlEnabled() (bool, bool)
- func (c UnboundConfig) ControlInterface() (string, bool)
- func (c UnboundConfig) ControlKeyFile() (string, bool)
- func (c UnboundConfig) ControlPort() (string, bool)
- func (c UnboundConfig) ControlUseCert() (bool, bool)
- func (c UnboundConfig) Cumulative() (bool, bool)
- func (c UnboundConfig) Empty() bool
- func (c UnboundConfig) String() string
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
Click to show internal directories.
Click to hide internal directories.