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.
Click to show internal directories.
Click to hide internal directories.