mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Closes #10079 Signed-off-by: Noah Perks Sloan <[email protected]> Signed-off-by: Noah Perks Sloan <[email protected]>
20 lines
683 B
Go
20 lines
683 B
Go
package github_app_auth
|
|
|
|
import "context"
|
|
|
|
// Authentication has the authentication information required to access the GitHub API and repositories.
|
|
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
|
|
}
|
|
|
|
type Credentials interface {
|
|
GetAuthSecret(ctx context.Context, secretName string) (*Authentication, error)
|
|
}
|