event_v2

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventUIWS       = "event:ui"
	EventHatcheryWS = "event:run:job"
)

Variables

This section is empty.

Functions

func Dequeue

func Dequeue(ctx context.Context, db *gorp.DbMap, store cache.Store, goroutines *sdk.GoRoutines, cdsUIURL string)

Dequeue runs in a goroutine and dequeue event from cache

func NewEventJobSummaryV2 added in v0.55.0

func NewEventJobSummaryV2(wr sdk.V2WorkflowRun, jobrun sdk.V2WorkflowRunJob) sdk.EventJobSummary

func PublishAnalysisDone

func PublishAnalysisDone(ctx context.Context, store cache.Store, vcsName, repoName string, a *sdk.ProjectRepositoryAnalysis, u *sdk.V2Initiator)

func PublishAnalysisStart

func PublishAnalysisStart(ctx context.Context, store cache.Store, vcsName, repoName string, a *sdk.ProjectRepositoryAnalysis)

func PublishConcurrencyEvent added in v0.55.2

func PublishConcurrencyEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, concu sdk.ProjectConcurrency, u sdk.AuthentifiedUser)

func PublishEntityEvent

func PublishEntityEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, vcsName, repoName string, ent sdk.Entity, u *sdk.V2Initiator)

func PublishHatcheryEvent

func PublishHatcheryEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, h sdk.Hatchery, u *sdk.AuthentifiedUser)

func PublishIntegrationModelEvent

func PublishIntegrationModelEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, m sdk.IntegrationModel, u sdk.AuthentifiedUser)

func PublishOrganizationEvent

func PublishOrganizationEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, org sdk.Organization, u sdk.AuthentifiedUser)

func PublishPermissionEvent

func PublishPermissionEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, perm sdk.RBAC, u sdk.AuthentifiedUser)

func PublishPluginEvent

func PublishPluginEvent(ctx context.Context, store cache.Store, typeEvent sdk.EventType, p sdk.GRPCPlugin, u sdk.AuthentifiedUser)

func PublishProjectEvent

func PublishProjectEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, p sdk.Project, u sdk.AuthentifiedUser)

func PublishProjectIntegrationEvent

func PublishProjectIntegrationEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, i sdk.ProjectIntegration, u sdk.AuthentifiedUser)

func PublishProjectNotificationEvent

func PublishProjectNotificationEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, notif sdk.ProjectNotification, u sdk.AuthentifiedUser)

func PublishProjectPurgeEvent added in v0.56.0

func PublishProjectPurgeEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, purgeReport sdk.PurgeReport)

func PublishProjectVariableSetEvent

func PublishProjectVariableSetEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, vs sdk.ProjectVariableSet, u sdk.AuthentifiedUser)

func PublishProjectVariableSetItemEvent

func PublishProjectVariableSetItemEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, vsName string, item sdk.ProjectVariableSetItem, u sdk.AuthentifiedUser)

func PublishRegionEvent

func PublishRegionEvent(ctx context.Context, store cache.Store, typeEvent sdk.EventType, reg sdk.Region, u sdk.AuthentifiedUser)

func PublishRepositoryEvent

func PublishRepositoryEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, vcsName string, repo sdk.ProjectRepository, u sdk.AuthentifiedUser)

func PublishRunEvent

func PublishRunEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, wr sdk.V2WorkflowRun, jobs map[string]sdk.V2WorkflowRunJob, runResults []sdk.V2WorkflowRunResult, initiator *sdk.V2Initiator)

func PublishRunJobEvent

func PublishRunJobEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, wr sdk.V2WorkflowRun, rj sdk.V2WorkflowRunJob)

func PublishRunJobManualEvent

func PublishRunJobManualEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, wr sdk.V2WorkflowRun, jobID string, gateInputs map[string]interface{})

func PublishRunJobRunResult

func PublishRunJobRunResult(ctx context.Context, store cache.Store, eventType sdk.EventType, vcsName, repoName string, rj sdk.V2WorkflowRunJob, rr sdk.V2WorkflowRunResult)

func PublishUserEvent

func PublishUserEvent(ctx context.Context, store cache.Store, typeEvent sdk.EventType, u sdk.AuthentifiedUser)

func PublishUserGPGEvent

func PublishUserGPGEvent(ctx context.Context, store cache.Store, typeEvent sdk.EventType, g sdk.UserGPGKey, u sdk.AuthentifiedUser)

func PublishVCSEvent

func PublishVCSEvent(ctx context.Context, store cache.Store, eventType sdk.EventType, projectKey string, vcs sdk.VCSProject, u sdk.AuthentifiedUser)

Types

This section is empty.

Jump to

Keyboard shortcuts

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