mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
* add support for searching jars within archives Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add package cataloger config options Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * address review comments + factor out safeCopy helper Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update config docs regarding package archive search options Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * show that unindexed archive cataloging defaults to false Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * remove lies about -s Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * address review comments Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update search archive note about java Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
23 lines
397 B
Go
23 lines
397 B
Go
package cataloger
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg/cataloger/java"
|
|
)
|
|
|
|
type Config struct {
|
|
Search SearchConfig
|
|
}
|
|
|
|
func DefaultConfig() Config {
|
|
return Config{
|
|
Search: DefaultSearchConfig(),
|
|
}
|
|
}
|
|
|
|
func (c Config) Java() java.Config {
|
|
return java.Config{
|
|
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
|
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
|
}
|
|
}
|