Documentation ¶
Index ¶
- func ApproveRun(c *gin.Context)
- func AssociateTenantIdToDiggerOrg(c *gin.Context)
- func AutomergePRforBatchIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
- func CreateDiggerWorkflowWithPullRequest(org *models.Organisation, client *github.Client, githubRepo string) error
- func CreateFronteggOrgFromWebhook(c *gin.Context)
- func CreateRunForProject(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 GetActivity(c *gin.Context)
- func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int64, repoFullName string, ...) (string, *dg_github.GithubService, *dg_configuration.DiggerConfig, ...)
- func GetIndependentProjects(depGraph graph.Graph[string, string], ...) ([]dg_configuration.Project, error)
- func GetPrServiceFromBatch(batch *models.DiggerBatch, gh utils.GithubClientProvider) (ci.PullRequestService, error)
- func GetRepoByInstllationId(installationId int64, repoOwner string, repoName string) (*models.Repo, error)
- func GithubAppSetup(c *gin.Context)
- func Home(c *gin.Context)
- func IssueAccessTokenForOrg(c *gin.Context)
- func JoinedOrganisationRepoProjectQuery() *gorm.DB
- func ListProjects(c *gin.Context)
- func ProjectDetails(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 UpdateCommentsForBatchGroup(gh utils.GithubClientProvider, batch *models.DiggerBatch, ...) error
- 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) 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)
- type IssueCommentHook
- type SetJobStatusRequest
- type TenantCreatedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveRun ¶
func AutomergePRforBatchIfEnabled ¶
func AutomergePRforBatchIfEnabled(gh utils.GithubClientProvider, batch *models.DiggerBatch) error
func CreateDiggerWorkflowWithPullRequest ¶
func CreateDiggerWorkflowWithPullRequest(org *models.Organisation, client *github.Client, githubRepo string) error
CreateDiggerWorkflowWithPullRequest for specified repo it will create a new branch 'digger/configure' and a pull request to default branch in the pull request it will try to add .github/workflows/digger_workflow.yml file with workflow for digger
func CreateRunForProject ¶
func FindAccessPolicy ¶
func FindAccessPolicyForOrg ¶
func FindDriftPolicy ¶
func FindDriftPolicyForOrg ¶
func FindPlanPolicy ¶
func FindPlanPolicyForOrg ¶
func FindProjectsForOrg ¶
func FindProjectsForRepo ¶
func GetActivity ¶
func GetDiggerConfigForBranch ¶
func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string, cloneUrl string, branch string, changedFiles []string) (string, *dg_github.GithubService, *dg_configuration.DiggerConfig, graph.Graph[string, dg_configuration.Project], error)
func GetIndependentProjects ¶
func GetIndependentProjects(depGraph graph.Graph[string, string], projectsToFilter []dg_configuration.Project) ([]dg_configuration.Project, error)
func GetPrServiceFromBatch ¶
func GetPrServiceFromBatch(batch *models.DiggerBatch, gh utils.GithubClientProvider) (ci.PullRequestService, error)
func GetRepoByInstllationId ¶
func GithubAppSetup ¶
func IssueAccessTokenForOrg ¶
func ListProjects ¶
func ProjectDetails ¶
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 UpdateCommentsForBatchGroup ¶
func UpdateCommentsForBatchGroup(gh utils.GithubClientProvider, batch *models.DiggerBatch, serializedJobs []orchestrator_scheduler.SerializedJob) error
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) 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)
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"` TerraformOutput string `json:"terraform_output"` }
type TenantCreatedEvent ¶
Click to show internal directories.
Click to hide internal directories.