Documentation ¶
Index ¶
- func GetOwnerRepo(u *url.URL) (owner, repo string, err error)
- func GetReleaseArtifactURL(basedir, owner, repo string, v *semver.Version, re *regexp.Regexp, ...) (*url.URL, error)
- func LatestReleaseOrPrereleaseForMajorVersion(owner, repo string, major int64, enablePrereleases bool) (*ghc.RepositoryRelease, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOwnerRepo ¶
GetOwnerRepo provides the owner and repo names given a Github URL
func GetReleaseArtifactURL ¶
func GetReleaseArtifactURL(basedir, owner, repo string, v *semver.Version, re *regexp.Regexp, prereleasesEnabled bool) (*url.URL, error)
GetReleaseArtifactURL locates the appropriate release based on repo and version and produces a *url.URL to the artifact for retrieval
func LatestReleaseOrPrereleaseForMajorVersion ¶
func LatestReleaseOrPrereleaseForMajorVersion(owner, repo string, major int64, enablePrereleases bool) (*ghc.RepositoryRelease, error)
LatestReleaseOrPrereleaseForMajorVersion produces the latest Github release for the provided owner, repo and major version (-1 selections any) and also optionally allows enabling pre-releases
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.