Documentation
¶
Index ¶
- Variables
- func NewGithubClient(installationID int) (githubClient, error)
- type GithubIntegration
- func (githubIntegration *GithubIntegration) CreateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, ...) error
- func (githubIntegration *GithubIntegration) CreateLabels(ctx context.Context, asset models.Asset) error
- func (githubIntegration *GithubIntegration) FinishInstallation(ctx core.Context) error
- func (githubIntegration *GithubIntegration) GetID() core.IntegrationID
- func (githubIntegration *GithubIntegration) GetOrg(ctx context.Context, userID string, providerID string, groupID string) (models.Org, error)
- func (githubIntegration *GithubIntegration) GetRoleInGroup(ctx context.Context, userID string, providerID string, groupID string) (core.Role, error)
- func (githubIntegration *GithubIntegration) GetRoleInProject(ctx context.Context, userID string, providerID string, projectID string) (core.Role, error)
- func (githubIntegration *GithubIntegration) HandleEvent(event any) error
- func (githubIntegration *GithubIntegration) HandleWebhook(ctx core.Context) error
- func (githubIntegration *GithubIntegration) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)
- func (githubIntegration *GithubIntegration) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)
- func (githubIntegration *GithubIntegration) ListOrgs(ctx core.Context) ([]models.Org, error)
- func (githubIntegration *GithubIntegration) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)
- func (githubIntegration *GithubIntegration) ListRepositories(ctx core.Context) ([]core.Repository, error)
- func (githubIntegration *GithubIntegration) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, ...) error
- func (githubIntegration *GithubIntegration) WantsToFinishInstallation(ctx core.Context) bool
- func (githubIntegration *GithubIntegration) WantsToHandleWebhook(ctx core.Context) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGithubAppInstallation = fmt.Errorf("no github app installations found")
Functions ¶
func NewGithubClient ¶
Types ¶
type GithubIntegration ¶
type GithubIntegration struct {
// contains filtered or unexported fields
}
func NewGithubIntegration ¶
func NewGithubIntegration(db core.DB) *GithubIntegration
func (*GithubIntegration) CreateIssue ¶
func (*GithubIntegration) CreateLabels ¶ added in v0.17.3
func (*GithubIntegration) FinishInstallation ¶
func (githubIntegration *GithubIntegration) FinishInstallation(ctx core.Context) error
func (*GithubIntegration) GetID ¶
func (githubIntegration *GithubIntegration) GetID() core.IntegrationID
func (*GithubIntegration) GetRoleInGroup ¶
func (*GithubIntegration) GetRoleInProject ¶
func (*GithubIntegration) HandleEvent ¶
func (githubIntegration *GithubIntegration) HandleEvent(event any) error
func (*GithubIntegration) HandleWebhook ¶
func (githubIntegration *GithubIntegration) HandleWebhook(ctx core.Context) error
func (*GithubIntegration) HasAccessToExternalEntityProvider ¶
func (*GithubIntegration) ListGroups ¶
func (*GithubIntegration) ListProjects ¶
func (*GithubIntegration) ListRepositories ¶
func (githubIntegration *GithubIntegration) ListRepositories(ctx core.Context) ([]core.Repository, error)
func (*GithubIntegration) UpdateIssue ¶
func (*GithubIntegration) WantsToFinishInstallation ¶
func (githubIntegration *GithubIntegration) WantsToFinishInstallation(ctx core.Context) bool
func (*GithubIntegration) WantsToHandleWebhook ¶
func (githubIntegration *GithubIntegration) WantsToHandleWebhook(ctx core.Context) bool
Click to show internal directories.
Click to hide internal directories.