Versions in this module Expand all Collapse all v0 v0.1.0 Sep 13, 2026 Changes in this version + const DefaultBaseURL + const DefaultTimeout + var ErrNotFound = errors.New("github: not found") + var ErrNotInstalled = errors.New("the app is not installed on that account") + var ErrUnauthorized = errors.New("github refused the app credential") + func ParsePrivateKey(pemBytes []byte) (*rsa.PrivateKey, error) + func SplitRepoURL(raw string) (owner, repo string, err error) + type Client struct + func New(opts Options) (*Client, error) + func (c *Client) Identity(ctx context.Context) (Identity, error) + func (c *Client) Token(ctx context.Context, owner string, repos []string) (Token, error) + type Identity struct + Email string + Name string + type Options struct + AppID string + BaseURL string + HTTPClient *http.Client + Now func() time.Time + PrivateKeyPEM []byte + type Token struct + ExpiresAt time.Time + Value string