Load loads a sops config file into a temporary struct
(bytes []byte)
| 268 | |
| 269 | // Load loads a sops config file into a temporary struct |
| 270 | func (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 |
| 279 | type Config struct { |
no outgoing calls