MCPcopy Index your code
hub / github.com/getsops/sops / load

Method load

config/config.go:270–276  ·  view source on GitHub ↗

Load loads a sops config file into a temporary struct

(bytes []byte)

Source from the content-addressed store, hash-verified

268
269// Load loads a sops config file into a temporary struct
270func (f *configFile) load(bytes []byte) error {
271 err := yaml.Unmarshal(bytes, f)
272 if err != nil {
273 return fmt.Errorf("Could not unmarshal config file: %s", err)
274 }
275 return nil
276}
277
278// Config is the configuration for a given SOPS file
279type Config struct {

Callers 4

parseConfigFileFunction · 0.95
TestLoadConfigFileFunction · 0.95
loadConfigFileFunction · 0.95

Calls

no outgoing calls

Tested by 3

parseConfigFileFunction · 0.76
TestLoadConfigFileFunction · 0.76