Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitHubHeaders ¶ added in v1.24.8
GetGitHubHeaders returns headers to be used in GitHub REST API requests if the URL is for GitHub. See https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api
func GetGitHubRelease ¶ added in v1.24.8
func GetGitHubRelease(owner, repo, requestedVersion string) (tarballURL, downloadedRelease string, err error)
GetGitHubRelease gets the tarball URL and version for a GitHub repository release
func GetGitHubToken ¶ added in v1.24.8
func GetGitHubToken() string
GetGitHubToken returns the GitHub access token from the environment variable.
Types ¶
type Client ¶ added in v1.24.8
func GetGitHubClient ¶ added in v1.24.8
GetGitHubClient returns a singleton GitHub client and context, initializing it if necessary.
type ListOptions ¶ added in v1.24.8
type ListOptions = github.ListOptions
type Repository ¶ added in v1.24.8
type Repository = github.Repository
type SearchOptions ¶ added in v1.24.8
type SearchOptions = github.SearchOptions
Click to show internal directories.
Click to hide internal directories.