Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppCredentialProvider ¶
func NewAppCredentialProvider() credentials.Provider
NewAppCredentialProvider returns an implementation of credentials.Provider.
Types ¶
type AppCredentialProvider ¶
type AppCredentialProvider struct {
// contains filtered or unexported fields
}
func (*AppCredentialProvider) GetCredentials ¶
func (p *AppCredentialProvider) GetCredentials( _ context.Context, project string, credType credentials.Type, repoURL string, data map[string][]byte, metadata map[string]string, ) (*credentials.Credentials, error)
GetCredentials implements the credentials.Provider interface for GitHub Apps. If the provided data represents a GitHub App installation and any optional constraints specified by the metadata do not prevent it, this method returns an App installation access token that is scoped only to the repository specified by repoURL.
Click to show internal directories.
Click to hide internal directories.