Documentation
¶
Index ¶
Constants ¶
View Source
const ( EcosystemsKey = "pkgs.ecosystems" IgnoredEcosystemsKey = "pkgs.ignoredEcosystems" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcosystemFilter ¶
type EcosystemFilter struct {
// contains filtered or unexported fields
}
func LoadEcosystemFilter ¶
func LoadEcosystemFilter(dir string) (EcosystemFilter, error)
func NewEcosystemFilter ¶
func NewEcosystemFilter(allowed, ignored []string) EcosystemFilter
func (EcosystemFilter) Allows ¶
func (f EcosystemFilter) Allows(ecosystem string) bool
func (EcosystemFilter) Empty ¶
func (f EcosystemFilter) Empty() bool
func (EcosystemFilter) StoredValues ¶
func (f EcosystemFilter) StoredValues() (allowed, ignored []string)
StoredValues returns filter values expanded to include the PURL type aliases that manifest parsers may persist in the database.
func (EcosystemFilter) Values ¶
func (f EcosystemFilter) Values() (allowed, ignored []string)
Values returns the canonical ecosystem values configured for the allow and ignore lists. The returned slices are sorted for deterministic query inputs.
Click to show internal directories.
Click to hide internal directories.