Documentation
¶
Overview ¶
Package cooldown withholds module versions that were published too recently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Held ¶
Held is a module whose update was withheld entirely by the cooldown window.
func Filter ¶
func Filter(mods []module.Module, window time.Duration, now time.Time, lookup Lookup) ([]module.Module, []Held)
Filter applies the cooldown window to mods. A module whose target version is too recent falls back to the greatest version old enough to satisfy the window. Modules with no such version, and modules whose versions can't be checked, are removed from the returned modules and reported as held back.
Click to show internal directories.
Click to hide internal directories.