package
0.8.0
Repository: https://github.com/abcxyz/pkg.git
Documentation: pkg.go.dev

# Functions

NewApp creates a new GitHub App from the given inputs.
NewStaticTokenSource returns a [StaticTokenSource] which returns the token string as given.
WithAccessTokenURLPattern allows overriding of the GitHub api url that is used when generating installation access tokens.
WithHTTPClient is an option that allows a consumer to provider their own http client implementation.
WithJWTTokenCaching is an option that tells the GitHub app to cache its JWT App tokens.
WithJWTTokenExpiration is an option that allows overriding the default expiration date of the application JWTs.

# Structs

App is an object that can be used to generate application level JWTs or to request an OIDC token on behalf of an installation.
StaticTokenSource is a GitHubToken provider that returns the provided token.
TokenRequest is a struct that contains the list of repositories and the requested permissions / scopes that are requested when generating a new installation access token.
TokenRequestAllRepos is a struct that contains the requested permissions/scopes that are requested when generating a new installation access token.

# Interfaces

TokenSource is an interface which returns a GitHub token.

# Type aliases

Option is a function that provides an option to the GitHub App creation.
TokenSourceFunc is a function that implements [TokenSource].