github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/cli/options/file_contents.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 fileContents struct { 9 Cataloger scope `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"` 10 SkipFilesAboveSize int64 `yaml:"skip-files-above-size" json:"skip-files-above-size" mapstructure:"skip-files-above-size"` 11 Globs []string `yaml:"globs" json:"globs" mapstructure:"globs"` 12 } 13 14 func defaultFileContents() fileContents { 15 return fileContents{ 16 Cataloger: scope{ 17 Scope: source.SquashedScope.String(), 18 }, 19 SkipFilesAboveSize: 1 * file.MB, 20 } 21 }