Documentation ¶
Index ¶
Constants ¶
const ( AppIDKey = "githubAppID" AppInstallationIDKey = "githubAppInstallationID" AppPrivateKey = "githubAppPrivateKey" AppBaseUrlKey = "githubAppBaseURL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an authentication provider for GitHub Apps.
func (*Client) GetToken ¶
GetToken returns the token that can be used to authenticate as a GitHub App installation. Ref: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation
type OptFunc ¶
type OptFunc func(*Client)
OptFunc enables specifying options for the provider.
func WithAppBaseURL ¶
WithAppBaseURL configures the GitHub API endpoint to use to fetch GitHub App installation token.
func WithAppData ¶
WithAppData configures the client using data from a map
func WithInstllationID ¶
WithInstallationID configures the installation ID of the GitHub App.
func WithPrivateKey ¶
WithPrivateKey configures the private key of the GitHub App.
func WithProxyURL ¶
WithProxyURL sets the proxy URL to use with the transport.