MCPcopy Index your code
hub / github.com/hashicorp/vault / LoadConfig

Function LoadConfig

command/server/config.go:535–538  ·  view source on GitHub ↗

LoadConfig loads the configuration at the given path, regardless if it's a file or directory.

(path string)

Source from the content-addressed store, hash-verified

533// LoadConfig loads the configuration at the given path, regardless if
534// it's a file or directory.
535func LoadConfig(path string) (*Config, error) {
536 cfg, _, err := LoadConfigCheckDuplicate(path)
537 return cfg, err
538}
539
540// LoadConfigCheckDuplicate is the same as the above function but also checks for duplicate attributes
541// TODO (HCL_DUP_KEYS_DEPRECATION): keep only LoadConfig once deprecation is complete

Callers

nothing calls this directly

Calls 1

LoadConfigCheckDuplicateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…