mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +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>
22 lines
603 B
Go
22 lines
603 B
Go
package options
|
|
|
|
import (
|
|
"github.com/anchore/syft/internal/file"
|
|
"github.com/anchore/syft/syft/source"
|
|
)
|
|
|
|
type fileContents struct {
|
|
Cataloger scope `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
|
|
SkipFilesAboveSize int64 `yaml:"skip-files-above-size" json:"skip-files-above-size" mapstructure:"skip-files-above-size"`
|
|
Globs []string `yaml:"globs" json:"globs" mapstructure:"globs"`
|
|
}
|
|
|
|
func defaultFileContents() fileContents {
|
|
return fileContents{
|
|
Cataloger: scope{
|
|
Scope: source.SquashedScope.String(),
|
|
},
|
|
SkipFilesAboveSize: 1 * file.MB,
|
|
}
|
|
}
|