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 NewGitHubClientManager ¶
func NewGitHubClientManager(opts GitHubClientManagerOptions) (*GitHubClientManager, error)
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:
- no GitHub instance with host host is defined
- no GitHub App with id appID is defined in GitHub instance with host host
- 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
Click to show internal directories.
Click to hide internal directories.