auth

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureGithubOauthTokenSet

func EnsureGithubOauthTokenSet() error

EnsureGithubOauthTokenSet is a sanity check that a value is exported for GITHUB_OAUTH_TOKEN

Types

type GithubClient

type GithubClient struct {
	PullRequests githubPullRequestService
	Repositories githubRepositoriesService
}

GithubClient is the data structure that is common between production code and test code. In production code, go-github satisfies the PullRequests and Repositories service interfaces, whereas in test the concrete implementations for these same services are mocks that return a static slice of pointers to GitHub repositories, or a single pointer to a GitHub repository, as appropriate. This allows us to test the workflow of git-xargs without actually making API calls to GitHub when running tests

func ConfigureGithubClient

func ConfigureGithubClient() GithubClient

ConfigureGithubClient creates a GitHub API client using the user-supplied GITHUB_OAUTH_TOKEN and returns the configured GitHub client

func NewClient

func NewClient(client *github.Client) GithubClient

Jump to

Keyboard shortcuts

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