Documentation ¶
Index ¶
- Variables
- func Check(gomod, release, moduleRelease string, selector Matcher, ...) error
- func Float(gomod, release, moduleRelease string, selector Matcher, ...) ([]string, error)
- func Module(gomod string, selector Matcher) (string, []string, error)
- func Modules(gomod []string, selector Matcher) (map[string][]string, []string, error)
- type Error
- type Matcher
- type ReleaseMeta
Constants ¶
This section is empty.
Variables ¶
var DependencyErr = &Error{}
DependencyErr is a Dependency Error instance. For use with with error.Is.
var ( // ErrNoDomain is returned when no domain is provided. ErrNoDomain = errors.New("no domain provided") )
Functions ¶
func Check ¶
func Check(gomod, release, moduleRelease string, selector Matcher, ruleset git.RulesetType, out io.Writer) error
Check examines a go mod file for dependencies and determines if each have a release artifact based on the ruleset provided. Check leverages the same rules used by knative.dev/toolbox/pkg/git.Repo().BestRefFor
func Float ¶
func Float(gomod, release, moduleRelease string, selector Matcher, ruleset git.RulesetType) ([]string, error)
Float examines a go mod file for dependencies and then discovers the best go mod refs to use for a given release based on the provided ruleset. Returns the set of module refs that were found. If no ref is found for a dependency, Float omits that ref from the returned list. Float leverages the same rules used by knative.dev/toolbox/pkg/git.Repo().BestRefFor
Types ¶
type Matcher ¶
Matcher matches a module name.
func CurrentModulesMatcher ¶
CurrentModulesMatcher matches the current project modules.
func DefaultSelector ¶
DefaultSelector returns a selector that includes modules with given domain, but excludes the current project modules.
type ReleaseMeta ¶
type ReleaseMeta struct { Module string ReleaseBranchExists bool ReleaseBranch string Release string }
ReleaseMeta holds metadata important to module release status.
func ReleaseStatus ¶
func ReleaseStatus(gomod, release, moduleRelease string, out io.Writer) (*ReleaseMeta, error)
ReleaseStatus collects metadata about release branch status and next released version tags for a given module.