controllers

package
v0.0.0-...-949b1e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 39 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoByInstllationId

func GetRepoByInstllationId(installationId int64, repoOwner string, repoName string) (*model.Repo, error)

func GithubAppSetup

func GithubAppSetup(c *gin.Context)

func Home

func Home(c *gin.Context)

func TriggerDiggerJobs

func TriggerDiggerJobs(ciBackend ci_backends.CiBackend, repoFullName string, repoOwner string, repoName string, batchId string, prNumber int, prService ci.PullRequestService, gh next_utils.GithubClientProvider) error

func UpdateCommentsForBatchGroup

func UpdateCommentsForBatchGroup(gh utils.GithubClientProvider, batch *model.DiggerBatch, serializedJobs []orchestrator_scheduler.SerializedJob) error

Types

type DiggerController

type DiggerController struct {
	CiBackendProvider    ci_backends.CiBackendProvider
	GithubClientProvider next_utils.GithubClientProvider
}

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) ProcessRunQueueItems

func (d DiggerController) ProcessRunQueueItems(c *gin.Context)

func (DiggerController) SetJobStatusForProject

func (d DiggerController) SetJobStatusForProject(c *gin.Context)

func (DiggerController) TriggerCronForMatchingProjects

func (d DiggerController) TriggerCronForMatchingProjects(c *gin.Context)

func (DiggerController) TriggerDriftDetectionForProject

func (d DiggerController) TriggerDriftDetectionForProject(c *gin.Context)

func (DiggerController) TriggerRunForProjectAssumingUser

func (d DiggerController) TriggerRunForProjectAssumingUser(c *gin.Context)

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 TriggerDriftRequest

type TriggerDriftRequest struct {
	ProjectId string `json:"project_id"`
}

type TriggerRunAssumingUserRequest

type TriggerRunAssumingUserRequest struct {
	UserId    string `json:"user_id"`
	ProjectId string `json:"project_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL