MCPcopy
hub / github.com/getsops/sops / LoadDestinationRuleForFile

Function LoadDestinationRuleForFile

config/config.go:627–633  ·  view source on GitHub ↗

LoadDestinationRuleForFile works the same as LoadCreationRuleForFile, but gets the "creation_rule" from the matching destination_rule's "recreation_rule".

(confPath string, filePath string, kmsEncryptionContext map[string]*string)

Source from the content-addressed store, hash-verified

625// LoadDestinationRuleForFile works the same as LoadCreationRuleForFile, but gets the "creation_rule" from the matching destination_rule's
626// "recreation_rule".
627func LoadDestinationRuleForFile(confPath string, filePath string, kmsEncryptionContext map[string]*string) (*Config, error) {
628 conf, err := loadConfigFile(confPath)
629 if err != nil {
630 return nil, err
631 }
632 return parseDestinationRuleForFile(conf, filePath, kmsEncryptionContext)
633}
634
635func LoadStoresConfig(confPath string) (*StoresConfig, error) {
636 conf, err := loadConfigFile(confPath)

Callers 1

RunFunction · 0.92

Calls 2

loadConfigFileFunction · 0.85

Tested by

no test coverage detected