Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package github implements shared.Provider for Github.

Index

Constants

This section is empty.

Variables

View Source
var Providers = []shared.Provider{
	&shared.EnvProvider{EnvVars: []shared.EnvVar{{Name: "GITHUB_TOKEN"}, {Name: "GH_TOKEN"}}},
	&GHProvider{},
}

Providers is a list of providers that can be used to retrieve a token for Github.

Functions

This section is empty.

Types

type GHProvider

type GHProvider struct{}

GHProvider implements the [token.Provider] interface using the Github CLI to retrieve a token.

func (*GHProvider) Token

func (p *GHProvider) Token() (*shared.Token, error)

Token returns a valid token or an error if no token is found.

Jump to

Keyboard shortcuts

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