githubinstalls

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppID         int64  `envconfig:"APP_ID" json:"app_id"`
	AppPrivateKey string `envconfig:"APP_PRIVATE_KEY" json:"app_private_key"`
}

type Installs

type Installs struct {
	Config Config
	Store  kvstore.Store
}

func GetInstalls

func GetInstalls() *Installs

func New

func New(cfg Config, store kvstore.Store) *Installs

func (*Installs) Add

func (i *Installs) Add(ctx context.Context, owner, repo string, inst *github.Installation) error

func (*Installs) GetClient

func (i *Installs) GetClient(ctx context.Context, owner, repo string) (*github.Client, error)

Jump to

Keyboard shortcuts

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