mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
24 lines
422 B
Go
24 lines
422 B
Go
package cataloger
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg/cataloger/java"
|
|
)
|
|
|
|
type Config struct {
|
|
Search SearchConfig
|
|
Catalogers []string
|
|
}
|
|
|
|
func DefaultConfig() Config {
|
|
return Config{
|
|
Search: DefaultSearchConfig(),
|
|
}
|
|
}
|
|
|
|
func (c Config) Java() java.Config {
|
|
return java.Config{
|
|
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
|
|
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
|
|
}
|
|
}
|