Versions in this module Expand all Collapse all v0 v0.9.0 Oct 28, 2026 Changes in this version + const DefaultAPIURL + type APIError struct + Message string + Status int + func (e *APIError) Error() string + func (e *APIError) Permanent() bool + type Client struct + APIURL string + AppID string + HTTP *http.Client + InstallationID int64 + Key *rsa.PrivateKey + Now func() time.Time + func FromDir(dir, apiURL string) (*Client, error) + func New(appID string, installationID int64, privateKeyPEM []byte) (*Client, error) + func (c *Client) InstallationToken(ctx context.Context, req TokenRequest) (*Token, error) + func (c *Client) RevokeToken(ctx context.Context, token string) error + type Token struct + ExpiresAt time.Time + Value string + type TokenRequest struct + Permissions map[string]string + Repositories []string