Documentation
¶
Overview ¶
Package fetch provides utilities for fetching GitHub repository metadata and computing checksums.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LatestSha ¶
LatestSha fetches the latest commit SHA from the GitHub API for the given repository URL.
Types ¶
type Endpoints ¶
type Endpoints struct {
// API defines the endpoint used to make API calls.
API string
// Download defines the endpoint to download tarballs.
Download string
}
Endpoints defines the endpoints used to access GitHub.
type Repo ¶
type Repo struct {
// Org defines the GitHub organization (or user), that owns the repository.
Org string
// Repo is the name of the repository, such as `googleapis` or `google-cloud-rust`.
Repo string
}
Repo represents a GitHub repository name.
func RepoFromTarballLink ¶
RepoFromTarballLink extracts the gitHub account and repository (such as `googleapis/googleapis`, or `googleapis/google-cloud-rust`) from the tarball link.
Click to show internal directories.
Click to hide internal directories.