mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
use single source of truth for archive options (#2437)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
2f378d806e
commit
05660da8d7
@ -4,3 +4,10 @@ type ArchiveSearchConfig struct {
|
|||||||
IncludeIndexedArchives bool `yaml:"include-indexed-archives" json:"include-indexed-archives" mapstructure:"include-indexed-archives"`
|
IncludeIndexedArchives bool `yaml:"include-indexed-archives" json:"include-indexed-archives" mapstructure:"include-indexed-archives"`
|
||||||
IncludeUnindexedArchives bool `yaml:"include-unindexed-archives" json:"include-unindexed-archives" mapstructure:"include-unindexed-archives"`
|
IncludeUnindexedArchives bool `yaml:"include-unindexed-archives" json:"include-unindexed-archives" mapstructure:"include-unindexed-archives"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func DefaultArchiveSearchConfig() ArchiveSearchConfig {
|
||||||
|
return ArchiveSearchConfig{
|
||||||
|
IncludeIndexedArchives: true,
|
||||||
|
IncludeUnindexedArchives: false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -13,10 +13,7 @@ type ArchiveCatalogerConfig struct {
|
|||||||
|
|
||||||
func DefaultArchiveCatalogerConfig() ArchiveCatalogerConfig {
|
func DefaultArchiveCatalogerConfig() ArchiveCatalogerConfig {
|
||||||
return ArchiveCatalogerConfig{
|
return ArchiveCatalogerConfig{
|
||||||
ArchiveSearchConfig: cataloging.ArchiveSearchConfig{
|
ArchiveSearchConfig: cataloging.DefaultArchiveSearchConfig(),
|
||||||
IncludeIndexedArchives: true,
|
|
||||||
IncludeUnindexedArchives: false,
|
|
||||||
},
|
|
||||||
UseNetwork: false,
|
UseNetwork: false,
|
||||||
MavenBaseURL: mavenBaseURL,
|
MavenBaseURL: mavenBaseURL,
|
||||||
MaxParentRecursiveDepth: 5,
|
MaxParentRecursiveDepth: 5,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user