github

package
v0.0.0-...-84ddfae Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubClientManager

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

func (*GitHubClientManager) GetGitHubAppClient

func (g *GitHubClientManager) GetGitHubAppClient(ctx context.Context, host string, appID int64, repoOwner string) (*github.Client,
	TokenGetter, error)

GetGitHubAppClient returns a NotDefinedError if:

  1. no GitHub instance with host host is defined
  2. no GitHub App with id appID is defined in GitHub instance with host host
  3. the GitHub App with id appID in GitHub instance with host host is not installed in account repoOwner (and no error occurred attempting to query GitHub App installations)

type GitHubClientManagerOptions

type GitHubClientManagerOptions struct {
	Instances []*config.GitHubInstance
	Transport http.RoundTripper
}

type NotDefinedError

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

func (*NotDefinedError) Error

func (n *NotDefinedError) Error() string

type TokenGetter

type TokenGetter = func(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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