controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectDriftStateMachineApply

func ProjectDriftStateMachineApply(project models.Project, tfplan string, resourcesCreated uint, resourcesUpdated uint, resourcesDeleted uint) error

Types

type DriftForOrgRequest

type DriftForOrgRequest struct {
	OrgId uint `json:"org_id"`
}

type MainController

type MainController struct {
	GithubClientProvider utils.GithubClientProvider
	CiBackendProvider    ci_backends.CiBackendProvider
}

func (MainController) Ping

func (mc MainController) Ping(c *gin.Context)

func (MainController) ProcessAllDrift

func (mc MainController) ProcessAllDrift(c *gin.Context)

func (MainController) ProcessAllNotifications

func (mc MainController) ProcessAllNotifications(c *gin.Context)

func (MainController) ProcessDriftForOrg

func (mc MainController) ProcessDriftForOrg(c *gin.Context)

func (MainController) SendRealSlackNotificationForOrg

func (mc MainController) SendRealSlackNotificationForOrg(c *gin.Context)

func (MainController) SendTestSlackNotificationForUrl

func (mc MainController) SendTestSlackNotificationForUrl(c *gin.Context)

func (MainController) SetJobStatusForProject

func (mc MainController) SetJobStatusForProject(c *gin.Context)

func (MainController) TriggerDriftRunForProject

func (mc MainController) TriggerDriftRunForProject(c *gin.Context)

type RealSlackNotificationForOrgRequest

type RealSlackNotificationForOrgRequest struct {
	OrgId uint `json:"org_id"`
}

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 TestSlackNotificationForUrl

type TestSlackNotificationForUrl struct {
	SlackNotificationUrl string `json:"notification_url"`
}

type TriggerDriftRunRequest

type TriggerDriftRunRequest struct {
	ProjectId uint `json:"project_id"`
}

Jump to

Keyboard shortcuts

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