MCPcopy
hub / github.com/deepfence/SecretScanner / loadExtractorConfigFile

Function loadExtractorConfigFile

core/config.go:62–73  ·  view source on GitHub ↗
(options *Options)

Source from the content-addressed store, hash-verified

60}
61
62func loadExtractorConfigFile(options *Options) (config.Config, error) {
63 configPath := *options.ConfigPath
64 fstat, err := os.Stat(configPath)
65 if err != nil {
66 return config.Config{}, err
67 }
68
69 if fstat.IsDir() {
70 return config.ParseConfig(filepath.Join(configPath, "config.yaml"))
71 }
72 return config.ParseConfig(configPath)
73}
74
75func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
76 *c = Config{}

Callers 1

GetSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected