Documentation ¶
Index ¶
- func CheckMAC(message, messageMAC, key []byte) bool
- func GetSignedJwtToken(appID, keyPath string) (string, error)
- func IsCustomer(repo types.Repository) (bool, error)
- func MakeAccessTokenForInstallation(appID string, installation int, privateKeyPath string) (string, error)
- func MakeClient(ctx context.Context, accessToken string) *github.Client
- func ValidateHMAC(bytesIn []byte, xHubSignature string, secretKey string) error
- type JwtAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSignedJwtToken ¶
GetSignedJwtToken get a tokens signed with private key
func IsCustomer ¶
func IsCustomer(repo types.Repository) (bool, error)
func MakeAccessTokenForInstallation ¶
func MakeAccessTokenForInstallation(appID string, installation int, privateKeyPath string) (string, error)
MakeAccessTokenForInstallation makes an access token for an installation / private key
func MakeClient ¶
MakeClient make a HTTP client with a signed access token
Types ¶
Click to show internal directories.
Click to hide internal directories.