resolver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// IncludePrerelease includes prerelease versions in the resolution.
	IncludePrerelease bool
	// IncludeDraft includes draft releases in the resolution.
	IncludeDraft bool
	// IncludeTags includes git tags in addition to releases.
	// By default, only GitHub releases are considered.
	IncludeTags bool
}

Options configures the resolver behavior.

type Resolver

type Resolver interface {
	// MaxSatisfying returns the highest version that satisfies the given constraint.
	// Returns an empty string if no version satisfies the constraint.
	MaxSatisfying(ctx context.Context, owner, repo, constraint string) (string, error)
}

Resolver resolves semantic version constraints against repository versions.

func New

func New(githubClient github.Client, options Options) Resolver

New creates a new resolver instance.

Jump to

Keyboard shortcuts

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