server

package
v0.0.0-...-b4abb51 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRepositoryToken

func GenerateRepositoryToken() string

func GetOrGenerateRepoToken

func GetOrGenerateRepoToken(ctx context.Context, s storage.GitHubRepositoryTokenStore,
	owner, repo string, repoID int64) (string, error)

func NewGitHubClient

func NewGitHubClient(ctx context.Context, opt *NewGitHubClientOption) (*github.Client, error)

func RegenerateRepoToken

func RegenerateRepoToken(ctx context.Context, s storage.GitHubRepositoryTokenStore,
	owner, repo string, repoID int64) (string, error)

Types

type Checker

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

func NewChecker

func NewChecker(req *doghouse.CheckRequest, gh *github.Client) *Checker

func (*Checker) Check

func (ch *Checker) Check(ctx context.Context) (*doghouse.CheckResponse, error)

type NewGitHubClientOption

type NewGitHubClientOption struct {
	// Required
	PrivateKey []byte
	// Required
	IntegrationID int

	// RepoOwner is required for installation API.
	RepoOwner string

	// Optional
	Client *http.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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