github_app_auth

package
v2.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	// Id specifies the ID of the GitHub app used to access the repo
	Id int64
	// InstallationId specifies the installation ID of the GitHub App used to access the repo
	InstallationId int64
	// EnterpriseBaseURL specifies the base URL of GitHub Enterprise installation. If empty will default to https://api.github.com
	EnterpriseBaseURL string
	// PrivateKey in PEM format.
	PrivateKey string
}

Authentication has the authentication information required to access the GitHub API and repositories.

type Credentials

type Credentials interface {
	GetAuthSecret(ctx context.Context, secretName string) (*Authentication, error)
}

Jump to

Keyboard shortcuts

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