filter

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Free  = Level(4)
	Major = Level(3)
	Minor = Level(2)
	Patch = Level(1)
)

Variables

View Source
var (
	AllReleases  = must(Parse("*.*.*"))
	AllSnapshots = must(Parse("*.*.*-SNAPSHOT"))
)
View Source
var ErrNotValidPattern = errors.New("not a valid pattern")

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Level   Level
	Version Version
	Type    version.Type
}

func Parse

func Parse(pattern string) (filter Filter, err error)

func (Filter) Matches added in v0.10.3

func (f Filter) Matches(s string) bool

func (Filter) String added in v0.10.2

func (f Filter) String() string

type Level

type Level int

func (Level) Locked

func (fl Level) Locked(l Level) bool

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Jump to

Keyboard shortcuts

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