github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/services/github_app_auth/auth.go (about) 1 package github_app_auth 2 3 import "context" 4 5 // Authentication has the authentication information required to access the GitHub API and repositories. 6 type Authentication struct { 7 // Id specifies the ID of the GitHub app used to access the repo 8 Id int64 9 // InstallationId specifies the installation ID of the GitHub App used to access the repo 10 InstallationId int64 11 // EnterpriseBaseURL specifies the base URL of GitHub Enterprise installation. If empty will default to https://api.github.com 12 EnterpriseBaseURL string 13 // PrivateKey in PEM format. 14 PrivateKey string 15 } 16 17 type Credentials interface { 18 GetAuthSecret(ctx context.Context, secretName string) (*Authentication, error) 19 }