github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/cli/options/secrets.go (about) 1 package options 2 3 import ( 4 "github.com/anchore/syft/internal/file" 5 "github.com/anchore/syft/syft/source" 6 ) 7 8 type secrets struct { 9 Cataloger scope `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"` 10 AdditionalPatterns map[string]string `yaml:"additional-patterns" json:"additional-patterns" mapstructure:"additional-patterns"` 11 ExcludePatternNames []string `yaml:"exclude-pattern-names" json:"exclude-pattern-names" mapstructure:"exclude-pattern-names"` 12 RevealValues bool `yaml:"reveal-values" json:"reveal-values" mapstructure:"reveal-values"` 13 SkipFilesAboveSize int64 `yaml:"skip-files-above-size" json:"skip-files-above-size" mapstructure:"skip-files-above-size"` 14 } 15 16 func defaultSecrets() secrets { 17 return secrets{ 18 Cataloger: scope{ 19 Scope: source.AllLayersScope.String(), 20 }, 21 SkipFilesAboveSize: 1 * file.MB, 22 } 23 }