github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/cataloging/search.go (about) 1 package cataloging 2 3 import "github.com/anchore/syft/syft/source" 4 5 type SearchConfig struct { 6 Scope source.Scope `yaml:"scope" json:"scope" mapstructure:"scope"` 7 } 8 9 func DefaultSearchConfig() SearchConfig { 10 return SearchConfig{ 11 Scope: source.SquashedScope, 12 } 13 } 14 15 func (c SearchConfig) WithScope(scope source.Scope) SearchConfig { 16 c.Scope = scope 17 return c 18 }