tokens

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	InstallationToken(ctx context.Context, gh github.API, installationID int64) (string, error)
}

Fetcher fetches and caches GitHub App installation tokens.

func NewFetcher

func NewFetcher(signer github.JWTSigner, appID int64, keyAlias string, ttl time.Duration) Fetcher

NewFetcher returns a Fetcher that caches installation tokens for the provided TTL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL