Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatYAMLContext ¶
FormatYAMLContext extracts lines around the target line in the source YAML file
Types ¶
type Location ¶
type Location struct {
FilePath string
Line int
Column int
KeyName string // e.g. "update_policy", "file", "keys.letsencrypt"
ZoneName string // Associated zone name if applicable
Mixin string // If inherited from a mixin
}
Location points to a specific line in a source file
type SourceMap ¶
SourceMap correlates lines in generated BIND config with original YAML locations
func (*SourceMap) Shift ¶ added in v1.0.0
Shift returns a copy of the source map with every line key remapped by the given offset. It is used when lines are prepended to (or removed from) the generated config after the map was built, e.g. DNSSEC stub injection, so error line numbers reported against the modified file still resolve to the original YAML locations. Entries whose shifted key would be non-positive are dropped.