githubrotator

package
v0.15.9-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	CreateInstallationToken(owner string, repositories []string, permissions *githubapp.Permissions) (*githubapp.Token, error)
}

type AppFactory

type AppFactory interface {
	Create(integrationID, privateKey string) (App, error)
}

type Config

type Config struct {
	IntegrationIDs     []string
	PrivateKeys        []string
	Logger             *zap.Logger
	OptAppFactory      AppFactory
	OptRateLimitClient RateLimits
}

type RateLimits

type RateLimits interface {
	GetTokenRateLimits(ctx context.Context, token string) (*github.RateLimits, *github.Response, error)
}

type Rotator

type Rotator struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Rotator

func (*Rotator) CreateInstallationToken

func (r *Rotator) CreateInstallationToken(ctx context.Context, owner string, repositories []string, permissions *githubapp.Permissions) (*githubapp.Token, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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