client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientCacheSize = 128
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken interface {
	GetInstallationID() int64
	IsExpired() bool
	GetToken() string
}

type GithubClientManager

type GithubClientManager interface {
	Get(installationID int64) (*github.Client, error)
	CreateToken(repository string, runID int64, installationID int64) (AccessToken, error)
	RevokeToken(repository string, runID int64) error
}

func BuildFromConfig

func BuildFromConfig(config *config.Config) (GithubClientManager, error)

func New

func New(
	appID int64,
	privateKeyFile string,
	cache *lru.Cache,
	transport http.RoundTripper,
	userAgent string,
	appClient *github.Client,
) GithubClientManager

Jump to

Keyboard shortcuts

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