Documentation
¶
Overview ¶
Package agentconfig loads the standalone peer's secret-bearing files.
Index ¶
Constants ¶
View Source
const MaxTargetsBytes = 64 << 10
Variables ¶
View Source
var ( ErrUnsafeFile = errors.New("agent config: unsafe file") ErrInvalid = errors.New("agent config: invalid configuration") )
Functions ¶
Types ¶
type Target ¶
type Target struct {
ID string `json:"id"`
Driver string `json:"driver"`
DSN string `json:"dsn"`
ExplainDriver string `json:"explain_driver,omitempty"`
ExplainDSN string `json:"explain_dsn,omitempty"`
}
func LoadTargets ¶
LoadTargets reads a strict, owner-only regular file. Errors deliberately identify only the field and entry number; a DSN is never interpolated.
Click to show internal directories.
Click to hide internal directories.