Documentation ¶
Index ¶
- Variables
- func Check(gomod, release, domain string, ruleset git.RulesetType, out io.Writer) error
- func Float(gomod, release, domain string, ruleset git.RulesetType) ([]string, error)
- func Module(gomod string, domain string) (string, []string, error)
- func Modules(gomod []string, domain string) (map[string][]string, []string, error)
- type Error
- type ReleaseMeta
Constants ¶
This section is empty.
Variables ¶
var DependencyErr = &Error{}
DependencyErr is a Dependency Error instance. For use with with error.Is.
Functions ¶
func Check ¶
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/test-infra/pkg/git.Repo().BestRefFor
func Float ¶
func Float(gomod, release, domain string, 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/test-infra/pkg/git.Repo().BestRefFor
Types ¶
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 string, out io.Writer) (*ReleaseMeta, error)
ReleaseStatus collects metadata about release branch status and next released version tags for a given module.