mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* internalize majority of cmd package and migrate integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add internal api encoder Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * create internal representation of all formats Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * export capability to get default encoders Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore test fixtures Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
19 lines
909 B
Go
19 lines
909 B
Go
package options
|
|
|
|
import "github.com/anchore/syft/syft/cataloging"
|
|
|
|
type packageConfig struct {
|
|
SearchUnindexedArchives bool `yaml:"search-unindexed-archives" json:"search-unindexed-archives" mapstructure:"search-unindexed-archives"`
|
|
SearchIndexedArchives bool `yaml:"search-indexed-archives" json:"search-indexed-archives" mapstructure:"search-indexed-archives"`
|
|
ExcludeBinaryOverlapByOwnership bool `yaml:"exclude-binary-overlap-by-ownership" json:"exclude-binary-overlap-by-ownership" mapstructure:"exclude-binary-overlap-by-ownership"` // exclude synthetic binary packages owned by os package files
|
|
}
|
|
|
|
func defaultPackageConfig() packageConfig {
|
|
c := cataloging.DefaultArchiveSearchConfig()
|
|
return packageConfig{
|
|
SearchIndexedArchives: c.IncludeIndexedArchives,
|
|
SearchUnindexedArchives: c.IncludeUnindexedArchives,
|
|
ExcludeBinaryOverlapByOwnership: true,
|
|
}
|
|
}
|