github

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOwnerRepo

func GetOwnerRepo(u *url.URL) (owner, repo string, err error)

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.

Jump to

Keyboard shortcuts

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