filters

package
v0.0.0-...-86aec00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SemverVersions *SemverVersionsConfig `yaml:"semver-versions"`
	RecentVersions *RecentVersionsConfig `yaml:"recent-versions"`
}

type Filter

type Filter func(currentVersion software.Version, candidateVersion software.Version) bool

func Build

func Build(config Config) Filter

func RecentVersions

func RecentVersions(config RecentVersionsConfig) Filter

func SemverVersions

func SemverVersions(config SemverVersionsConfig) Filter

type RecentVersionsConfig

type RecentVersionsConfig struct {
	Days uint `yaml:"days"`
}

type SemverVersionsConfig

type SemverVersionsConfig struct {
	RemovePreRelease        bool `yaml:"remove-pre-release"`
	RemoveFirstMajorVersion bool `yaml:"remove-first-major-version"`
}

Jump to

Keyboard shortcuts

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