daemons

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("daemons",
	fx.Provide(NewDaemonRunner),
	fx.Invoke(func(dr *DaemonRunner) {
		dr.Start()
	}),
)

Functions

func AutoReopenAcceptedVulnerabilities

func AutoReopenAcceptedVulnerabilities(
	dependencyVulnRepository shared.DependencyVulnRepository,
	assetRepository shared.AssetRepository,
) error

func CompareStatesAndResolveDifferences

func CompareStatesAndResolveDifferences(client shared.GitlabClientFacade, asset models.Asset, devguardStateIIDs []int) error

func DeleteOldAssetVersions

func DeleteOldAssetVersions(
	assetVersionRepository shared.AssetVersionRepository,
	vulnEventRepository shared.VulnEventRepository,
) error

func RecalculateRisk

func RecalculateRisk(
	dependencyVulnService shared.DependencyVulnService,
) error

func ScanArtifacts

func ScanArtifacts(
	db shared.DB,
	scanController *controllers.ScanController,
	assetVersionService shared.AssetVersionService,
	assetVersionRepository shared.AssetVersionRepository,
	assetRepository shared.AssetRepository,
	projectRepository shared.ProjectRepository,
	orgRepository shared.OrganizationRepository,
	artifactService shared.ArtifactService,
	componentRepository shared.ComponentRepository,
) error

func Start

func Start(
	db shared.DB,
	broker database.Broker,
	configService services.ConfigService,
	rbacProvider shared.RBACProvider,
	integrationAggregate shared.IntegrationAggregate,
	scanController *controllers.ScanController,
	assetVersionService shared.AssetVersionService,
	assetVersionRepository shared.AssetVersionRepository,
	assetRepository shared.AssetRepository,
	projectRepository shared.ProjectRepository,
	orgRepository shared.OrganizationRepository,
	artifactService shared.ArtifactService,
	componentRepository shared.ComponentRepository,
	componentService shared.ComponentService,
	dependencyVulnService shared.DependencyVulnService,
	dependencyVulnRepository shared.DependencyVulnRepository,
	componentProjectRepository shared.ComponentProjectRepository,
	vulnEventRepository shared.VulnEventRepository,
	statisticsService shared.StatisticsService,
	artifactRepository shared.ArtifactRepository,
	cveRepository shared.CveRepository,
	cweRepository shared.CweRepository,
	exploitsRepository shared.ExploitRepository,
	affectedComponentsRepository shared.AffectedComponentRepository,
)

func SyncTickets

func SyncTickets(
	db shared.DB,
	thirdPartyIntegrationAggregate shared.IntegrationAggregate,
	dependencyVulnService shared.DependencyVulnService,
	assetVersionRepository shared.AssetVersionRepository,
	assetRepository shared.AssetRepository,
	projectRepository shared.ProjectRepository,
	orgRepository shared.OrganizationRepository,
	dependencyVulnRepository shared.DependencyVulnRepository,
) error

func SyncUpstream

func SyncUpstream(
	db shared.DB,
	assetVersionService shared.AssetVersionService,
	assetVersionRepository shared.AssetVersionRepository,
	assetRepository shared.AssetRepository,
	projectRepository shared.ProjectRepository,
	orgRepository shared.OrganizationRepository,
	artifactService shared.ArtifactService,
	componentService shared.ComponentService,
) error

func UpdateFixedVersions

func UpdateFixedVersions(
	db shared.DB,
	dependencyVulnRepository shared.DependencyVulnRepository,
) error

func UpdateOpenSourceInsightInformation

func UpdateOpenSourceInsightInformation(
	componentProjectRepository shared.ComponentProjectRepository,
	componentService shared.ComponentService,
) error

func UpdateStatistics

func UpdateStatistics(
	statisticsService shared.StatisticsService,
	assetVersionRepository shared.AssetVersionRepository,
	artifactRepository shared.ArtifactRepository,
) error

func UpdateVulnDB

func UpdateVulnDB(
	cveRepository shared.CveRepository,
	cweRepository shared.CweRepository,
	exploitsRepository shared.ExploitRepository,
	affectedComponentsRepository shared.AffectedComponentRepository,
	configService shared.ConfigService,
) error

Types

type DaemonRunner

type DaemonRunner struct {
	// contains filtered or unexported fields
}

DaemonRunner encapsulates daemon dependencies and lifecycle

func NewDaemonRunner

func NewDaemonRunner(
	db shared.DB,
	broker database.Broker,
	configService services.ConfigService,
	rbacProvider shared.RBACProvider,
	integrationAggregate shared.IntegrationAggregate,
	scanController *controllers.ScanController,
	assetVersionService shared.AssetVersionService,
	assetVersionRepository shared.AssetVersionRepository,
	assetRepository shared.AssetRepository,
	projectRepository shared.ProjectRepository,
	orgRepository shared.OrganizationRepository,
	artifactService shared.ArtifactService,
	componentRepository shared.ComponentRepository,
	componentService shared.ComponentService,
	dependencyVulnService shared.DependencyVulnService,
	dependencyVulnRepository shared.DependencyVulnRepository,
	componentProjectRepository shared.ComponentProjectRepository,
	vulnEventRepository shared.VulnEventRepository,
	statisticsService shared.StatisticsService,
	artifactRepository shared.ArtifactRepository,
	cveRepository shared.CveRepository,
	cweRepository shared.CweRepository,
	exploitsRepository shared.ExploitRepository,
	affectedComponentsRepository shared.AffectedComponentRepository,
) *DaemonRunner

NewDaemonRunner creates a new daemon runner with injected dependencies

func (*DaemonRunner) Start

func (dr *DaemonRunner) Start()

Start initiates all background daemons

Jump to

Keyboard shortcuts

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