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)
| 625 | // LoadDestinationRuleForFile works the same as LoadCreationRuleForFile, but gets the "creation_rule" from the matching destination_rule's |
| 626 | // "recreation_rule". |
| 627 | func 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 | |
| 635 | func LoadStoresConfig(confPath string) (*StoresConfig, error) { |
| 636 | conf, err := loadConfigFile(confPath) |
no test coverage detected