mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
Signed-off-by: Avi Deitcher <avi@deitcher.net> Co-authored-by: Keith Zantow <kzantow@gmail.com>
32 lines
619 B
Go
32 lines
619 B
Go
package cataloger
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg/cataloger/golang"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/java"
|
|
)
|
|
|
|
type Config struct {
|
|
Search SearchConfig
|
|
Golang golang.GoCatalogerOpts
|
|
Catalogers []string
|
|
Parallelism int
|
|
}
|
|
|
|
func DefaultConfig() Config {
|
|
return Config{
|
|
Search: DefaultSearchConfig(),
|
|
Parallelism: 1,
|
|
}
|
|
}
|
|
|
|
func (c Config) Java() java.Config {
|
|
return java.Config{
|
|
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
|
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
|
}
|
|
}
|
|
|
|
func (c Config) Go() golang.GoCatalogerOpts {
|
|
return c.Golang
|
|
}
|