Documentation
¶
Index ¶
Constants ¶
View Source
const ( GitHubAppAuthInstallationIDKey = "github_app_installation_id" GitHubAppAuthIDKey = "github_app_id" GitHubAppAuthPrivateKeyKey = "github_app_private_key" )
View Source
const ( GithubAppIDKey = "github_app_id" GithubAppInstallationIDKey = "github_app_installation_id" GithubAppPrivateKeyKey = "github_app_private_key" )
Variables ¶
View Source
var ErrNotGithubAppSecret = errors.New("not a GitHub App secret")
Functions ¶
func HasGitHubAppKeys ¶
HasGitHubAppKeys checks if the provided Kubernetes secret contains the necessary keys for a GitHub App: app ID, installation ID, and private key.
Types ¶
type AppAuthGetter ¶
type DefaultAppAuthGetter ¶
type DefaultAppAuthGetter struct{}
type GitHubApp ¶
type GitHubApp struct {
// contains filtered or unexported fields
}
func NewApp ¶
NewApp creates a new GitHubApp instance with the provided app ID, installation ID, and private key, and returns a pointer to it.
Click to show internal directories.
Click to hide internal directories.