Documentation
¶
Index ¶
- func IsInvalidSource(err error) bool
- func IsNotFound(err error) bool
- func IsTerminalAccessError(err error) bool
- func NormalizeSource(source api.GitHubSource) (api.GitHubSource, error)
- type InstallationToken
- type InvalidSourceError
- type Repository
- type ResolvedSource
- type Resolver
- func (r *Resolver) CreateRepositoryToken(ctx context.Context, installationID int64, githubRepositoryID int64) (InstallationToken, error)
- func (r *Resolver) InstallURL() string
- func (r *Resolver) ResolveCommit(ctx context.Context, installationID int64, githubRepositoryID int64, ...) (ResolvedSource, error)
- func (r *Resolver) VerifyUserInstallation(ctx context.Context, userAccessToken string, installationID int64) (VerifiedInstallation, error)
- type VerifiedInstallation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidSource ¶
func IsNotFound ¶
func IsTerminalAccessError ¶
func NormalizeSource ¶
func NormalizeSource(source api.GitHubSource) (api.GitHubSource, error)
Types ¶
type InstallationToken ¶
type InvalidSourceError ¶
type InvalidSourceError struct {
Err error
}
func (InvalidSourceError) Error ¶
func (e InvalidSourceError) Error() string
func (InvalidSourceError) Unwrap ¶
func (e InvalidSourceError) Unwrap() error
type Repository ¶
type ResolvedSource ¶
type ResolvedSource struct {
Source api.GitHubSource
InstallationID int64
GitHubRepositoryID int64
}
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) CreateRepositoryToken ¶
func (*Resolver) InstallURL ¶
func (*Resolver) ResolveCommit ¶
func (r *Resolver) ResolveCommit(ctx context.Context, installationID int64, githubRepositoryID int64, source api.GitHubSource) (ResolvedSource, error)
func (*Resolver) VerifyUserInstallation ¶
type VerifiedInstallation ¶
Click to show internal directories.
Click to hide internal directories.