mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
Signed-off-by: Keith Zantow <kzantow@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
24 lines
904 B
Go
24 lines
904 B
Go
package options
|
|
|
|
import (
|
|
"github.com/anchore/syft/internal/file"
|
|
"github.com/anchore/syft/syft/source"
|
|
)
|
|
|
|
type secrets struct {
|
|
Cataloger scope `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
|
|
AdditionalPatterns map[string]string `yaml:"additional-patterns" json:"additional-patterns" mapstructure:"additional-patterns"`
|
|
ExcludePatternNames []string `yaml:"exclude-pattern-names" json:"exclude-pattern-names" mapstructure:"exclude-pattern-names"`
|
|
RevealValues bool `yaml:"reveal-values" json:"reveal-values" mapstructure:"reveal-values"`
|
|
SkipFilesAboveSize int64 `yaml:"skip-files-above-size" json:"skip-files-above-size" mapstructure:"skip-files-above-size"`
|
|
}
|
|
|
|
func defaultSecrets() secrets {
|
|
return secrets{
|
|
Cataloger: scope{
|
|
Scope: source.AllLayersScope.String(),
|
|
},
|
|
SkipFilesAboveSize: 1 * file.MB,
|
|
}
|
|
}
|