Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppSecret ¶
type AppSecret struct { AppId string `json:"app_id"` InstallationId string `json:"installation_id"` PrivateKey string `json:"private_key"` }
AppSecret provides the necessary components for GitHub authentication as an installation.
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator is the entrypoint for authentication.
func NewAuthenticator ¶
func NewAuthenticator(secretProvider SecretProvider) *Authenticator
NewAuthenticator creates an Authenticator
func (*Authenticator) Authenticate ¶
func (auth *Authenticator) Authenticate() (string, error)
Authenticate provides the string output for a git credential command.
type SecretProvider ¶
SecretProvider is the interface to anything that can provide the AppSecret for authentication.
Click to show internal directories.
Click to hide internal directories.