gh_auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Read-only access to public information.
	ScopeNoScope = ""

	// full access to private and public repositories.
	ScopeRepo = "repo"

	// Read write access to public and private repository commit statuses.
	ScopeRepoStatus = "repo:status"

	// Deployment statuses for public and private repositories.
	ScopeRepoDeployment = "repo_deployment"

	// Read/write access to code, commit statuses, repository etc for public repositories.
	ScopePublicRepo = "public_repo"
)
View Source
const (
	ScopeLabelPublic = "github_public"
	ScopeLabelRepo   = "github_repo"
)

Variables

This section is empty.

Functions

func NewApp

func NewApp(ctl app_control.Control) api_auth.App

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Config

func (z *App) Config(scopes []string) *oauth2.Config

func (*App) UsePKCE

func (z *App) UsePKCE() bool

Jump to

Keyboard shortcuts

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