config

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL