Documentation
¶
Index ¶
- Variables
- func ApproveRun(c *gin.Context)
- func AssociateTenantIdToDiggerOrg(c *gin.Context)
- func AutomergePRforBatchIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
- func BillingStatusApi(c *gin.Context)
- func CreateTerraformOutputsSummary(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
- func CreateVCSConnectionApi(c *gin.Context)
- func DeleteOlderPRCommentsIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
- func DeleteVCSConnection(c *gin.Context)
- func FindAccessPolicy(c *gin.Context)
- func FindAccessPolicyForOrg(c *gin.Context)
- func FindDriftPolicy(c *gin.Context)
- func FindDriftPolicyForOrg(c *gin.Context)
- func FindPlanPolicy(c *gin.Context)
- func FindPlanPolicyForOrg(c *gin.Context)
- func FindProjectsForOrg(c *gin.Context)
- func FindProjectsForRepo(c *gin.Context)
- func GenerateTerraformFromCode(payload *github.IssueCommentEvent, ...) error
- func GetActivity(c *gin.Context)
- func GetDashboardStatusApi(c *gin.Context)
- func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int64, repoFullName string, ...) (string, *github2.GithubService, *digger_config.DiggerConfig, ...)
- func GetDiggerConfigForBranchWithGracefulHandling(gh utils.GithubClientProvider, installationId int64, repoFullName string, ...) (string, *github2.GithubService, *digger_config.DiggerConfig, ...)
- func GetIndependentProjects(depGraph graph.Graph[string, string], ...) ([]dg_configuration.Project, error)
- func GetJobsForRepoApi(c *gin.Context)
- func GetOrgSettingsApi(c *gin.Context)
- func GetVCSConnection(c *gin.Context)
- func GithubAppSetup(c *gin.Context)
- func Home(c *gin.Context)
- func IssueAccessTokenForOrg(c *gin.Context)
- func JoinedOrganisationRepoProjectQuery() *gorm.DB
- func LinkGithubInstallationToOrgApi(c *gin.Context)
- func ListProjectsApi(c *gin.Context)
- func ListReposApi(c *gin.Context)
- func ListVCSConnectionsApi(c *gin.Context)
- func PolicyOrgGetApi(c *gin.Context)
- func PolicyOrgUpsertApi(c *gin.Context)
- func ProjectDetails(c *gin.Context)
- func ProjectsDetailsApi(c *gin.Context)
- func ReportProjectsForRepo(c *gin.Context)
- func RunDetails(c *gin.Context)
- func RunHistoryForProject(c *gin.Context)
- func RunsForProject(c *gin.Context)
- func TriggerDiggerJobs(ciBackend ci_backends.CiBackend, repoFullName string, repoOwner string, ...) error
- func UpdateCheckStatusForBatch(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
- func UpdateCheckStatusForJob(gh utils.GithubClientProvider, job *models.DiggerJob) error
- func UpdateCommentsForBatchGroup(gh utils.GithubClientProvider, batch *models.DiggerBatch, ...) error
- func UpdateOrgSettingsApi(c *gin.Context)
- func UpdateProjectApi(c *gin.Context)
- func UpsertAccessPolicyForOrg(c *gin.Context)
- func UpsertAccessPolicyForRepoAndProject(c *gin.Context)
- func UpsertDriftPolicyForOrg(c *gin.Context)
- func UpsertDriftPolicyForRepoAndProject(c *gin.Context)
- func UpsertPlanPolicyForOrg(c *gin.Context)
- func UpsertPlanPolicyForRepoAndProject(c *gin.Context)
- type CreatePolicyInput
- type CreateProjectRequest
- type CreateProjectRunRequest
- type DiggerController
- func (d DiggerController) CreateUserInternal(c *gin.Context)
- func (d DiggerController) GithubAppCallbackPage(c *gin.Context)
- func (d DiggerController) GithubAppWebHook(c *gin.Context)
- func (d DiggerController) GithubReposPage(c *gin.Context)
- func (d DiggerController) GithubSetupExchangeCode(c *gin.Context)
- func (d DiggerController) SetJobStatusForProject(c *gin.Context)
- func (d DiggerController) UpdateRepoCache(c *gin.Context)
- func (d DiggerController) UpsertOrgInternal(c *gin.Context)
- type IssueCommentHook
- type SetJobStatusRequest
- type TenantCreatedEvent
- type UpdateCacheRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBranchNotFoundPostMerge = errors.New("branch not found after PR merge")
Special error for when branch is not found after PR merge
Functions ¶
func ApproveRun ¶
func AutomergePRforBatchIfEnabled ¶
func AutomergePRforBatchIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
func BillingStatusApi ¶
func CreateTerraformOutputsSummary ¶
func CreateTerraformOutputsSummary(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
func CreateVCSConnectionApi ¶
func DeleteOlderPRCommentsIfEnabled ¶
func DeleteOlderPRCommentsIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
func DeleteVCSConnection ¶
func FindAccessPolicy ¶
func FindAccessPolicyForOrg ¶
func FindDriftPolicy ¶
func FindDriftPolicyForOrg ¶
func FindPlanPolicy ¶
func FindPlanPolicyForOrg ¶
func FindProjectsForOrg ¶
func FindProjectsForRepo ¶
func GenerateTerraformFromCode ¶
func GenerateTerraformFromCode(payload *github.IssueCommentEvent, commentReporterManager utils.CommentReporterManager, config *digger_config.DiggerConfig, defaultBranch string, ghService *github2.GithubService, repoOwner string, repoName string, commitSha *string, issueNumber int, branch *string) error
func GetActivity ¶
func GetDashboardStatusApi ¶
func GetDiggerConfigForBranch ¶
func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string, cloneUrl string, branch string, changedFiles []string, taConfig *tac.AtlantisConfig) (string, *github2.GithubService, *digger_config.DiggerConfig, graph.Graph[string, digger_config.Project], error)
func GetDiggerConfigForBranchWithGracefulHandling ¶
func GetDiggerConfigForBranchWithGracefulHandling(gh utils.GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string, cloneUrl string, branch string, isMerged bool, changedFiles []string, taConfig *tac.AtlantisConfig) (string, *github2.GithubService, *digger_config.DiggerConfig, graph.Graph[string, digger_config.Project], error)
handles post-merge branch not found
func GetIndependentProjects ¶
func GetIndependentProjects(depGraph graph.Graph[string, string], projectsToFilter []dg_configuration.Project) ([]dg_configuration.Project, error)
func GetJobsForRepoApi ¶
func GetOrgSettingsApi ¶
func GetVCSConnection ¶
func GithubAppSetup ¶
func IssueAccessTokenForOrg ¶
func ListProjectsApi ¶
func ListReposApi ¶
func ListVCSConnectionsApi ¶
func PolicyOrgGetApi ¶
func PolicyOrgUpsertApi ¶
func ProjectDetails ¶
func ProjectsDetailsApi ¶
func ReportProjectsForRepo ¶
func RunDetails ¶
func RunHistoryForProject ¶
func RunsForProject ¶
func TriggerDiggerJobs ¶
func TriggerDiggerJobs(ciBackend ci_backends.CiBackend, repoFullName string, repoOwner string, repoName string, batchId *uuid.UUID, prNumber int, prService ci.PullRequestService, gh utils.GithubClientProvider) error
func UpdateCheckStatusForBatch ¶
func UpdateCheckStatusForBatch(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
func UpdateCheckStatusForJob ¶
func UpdateCheckStatusForJob(gh utils.GithubClientProvider, job *models.DiggerJob) error
func UpdateCommentsForBatchGroup ¶
func UpdateCommentsForBatchGroup(gh utils.GithubClientProvider, batch *models.DiggerBatch, serializedJobs []orchestrator_scheduler.SerializedJob) error
func UpdateOrgSettingsApi ¶
func UpdateProjectApi ¶
func UpsertDriftPolicyForOrg ¶
func UpsertPlanPolicyForOrg ¶
Types ¶
type CreatePolicyInput ¶
type CreatePolicyInput struct {
Policy string
}
type CreateProjectRequest ¶
type CreateProjectRunRequest ¶
type DiggerController ¶
type DiggerController struct {
CiBackendProvider ci_backends.CiBackendProvider
GithubClientProvider utils.GithubClientProvider
GithubWebhookPostIssueCommentHooks []IssueCommentHook
}
func (DiggerController) CreateUserInternal ¶
func (d DiggerController) CreateUserInternal(c *gin.Context)
func (DiggerController) GithubAppCallbackPage ¶
func (d DiggerController) GithubAppCallbackPage(c *gin.Context)
func (DiggerController) GithubAppWebHook ¶
func (d DiggerController) GithubAppWebHook(c *gin.Context)
func (DiggerController) GithubReposPage ¶
func (d DiggerController) GithubReposPage(c *gin.Context)
func (DiggerController) GithubSetupExchangeCode ¶
func (d DiggerController) GithubSetupExchangeCode(c *gin.Context)
GithubSetupExchangeCode handles the user coming back from creating their app A code query parameter is exchanged for this app's ID, key, and webhook_secret Implements https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/#implementing-the-github-app-manifest-flow
func (DiggerController) SetJobStatusForProject ¶
func (d DiggerController) SetJobStatusForProject(c *gin.Context)
func (DiggerController) UpdateRepoCache ¶
func (d DiggerController) UpdateRepoCache(c *gin.Context)
func (DiggerController) UpsertOrgInternal ¶
func (d DiggerController) UpsertOrgInternal(c *gin.Context)
type IssueCommentHook ¶
type IssueCommentHook func(gh utils.GithubClientProvider, payload *github.IssueCommentEvent, ciBackendProvider ci_backends.CiBackendProvider) error
type SetJobStatusRequest ¶
type SetJobStatusRequest struct {
Status string `json:"status"`
Timestamp time.Time `json:"timestamp"`
JobSummary *iac_utils.IacSummary `json:"job_summary"`
Footprint *iac_utils.IacPlanFootprint `json:"job_plan_footprint"`
PrCommentUrl string `json:"pr_comment_url"`
PrCommentId string `json:"pr_comment_id"`
TerraformOutput string `json:"terraform_output"`
WorkflowUrl string `json:"workflow_url,omitempty"`
}
type TenantCreatedEvent ¶
Source Files
¶
- activity.go
- billing.go
- cache.go
- connections.go
- dashboard.go
- github.go
- github_api.go
- github_callback.go
- github_comment.go
- github_helpers.go
- github_installation.go
- github_pull_request.go
- github_push.go
- github_setup.go
- helpers.go
- internal_users.go
- jobs.go
- locking.go
- orgs.go
- policies.go
- policies_api.go
- projects.go
- projects_helpers.go
- repos.go
- runs.go
Click to show internal directories.
Click to hide internal directories.