github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/cataloging/archive_search.go (about) 1 package cataloging 2 3 type ArchiveSearchConfig struct { 4 IncludeIndexedArchives bool `yaml:"include-indexed-archives" json:"include-indexed-archives" mapstructure:"include-indexed-archives"` 5 IncludeUnindexedArchives bool `yaml:"include-unindexed-archives" json:"include-unindexed-archives" mapstructure:"include-unindexed-archives"` 6 } 7 8 func DefaultArchiveSearchConfig() ArchiveSearchConfig { 9 return ArchiveSearchConfig{ 10 IncludeIndexedArchives: true, 11 IncludeUnindexedArchives: false, 12 } 13 } 14 15 func (c ArchiveSearchConfig) WithIncludeIndexedArchives(include bool) ArchiveSearchConfig { 16 c.IncludeIndexedArchives = include 17 return c 18 } 19 20 func (c ArchiveSearchConfig) WithIncludeUnindexedArchives(include bool) ArchiveSearchConfig { 21 c.IncludeUnindexedArchives = include 22 return c 23 }