versionmatcher

package
v1.64.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func New

func New(withBaseVersionLock bool) *Matcher

func (*Matcher) AddConstraint

func (m *Matcher) AddConstraint(name, rawConstraint string) error

func (*Matcher) ChangeBaseVersion

func (m *Matcher) ChangeBaseVersion(version *semver.Version)

func (*Matcher) DeleteConstraint

func (m *Matcher) DeleteConstraint(name string)

func (*Matcher) Has

func (m *Matcher) Has(name string) bool

func (*Matcher) Validate

func (m *Matcher) Validate(name string) error

func (*Matcher) ValidateBaseVersion

func (m *Matcher) ValidateBaseVersion(baseVersion string) (string, error)

func (*Matcher) ValidateConstraint

func (m *Matcher) ValidateConstraint(rawConstraint string) error

Jump to

Keyboard shortcuts

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