Documentation
¶
Overview ¶
Package cooldownpolicy applies package-pattern overrides to cooldown checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy applies exact PURL overrides before package-pattern overrides.
func (*Policy) Enabled ¶
Enabled reports whether any configured cooldown can filter a package version.
func (*Policy) Evaluate ¶
func (p *Policy) Evaluate(ecosystem, packagePURL string, publishedAt, evaluatedAt time.Time) cooldown.Decision
Evaluate returns the cooldown decision at the supplied evaluation time.
Click to show internal directories.
Click to hide internal directories.