github

package
v1.24.8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitHubHeaders added in v1.24.8

func GetGitHubHeaders(requestURL string) map[string]string

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

type Client = github.Client

func GetGitHubClient added in v1.24.8

func GetGitHubClient() (context.Context, *Client)

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

Jump to

Keyboard shortcuts

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