service

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowTriggerAuditService

type WorkflowTriggerAuditService interface {
	// SaveTriggerAudit saves audit data for CI, Pre-cd and Post-cd trigger
	SaveTriggerAudit(workflowRequest *types.WorkflowRequest) (*repository.WorkflowConfigSnapshot, error)

	// GetWorkflowRequestFromSnapshotForRetrigger fetches workflow request by workflowId and workflowType from snapshot for retrigger
	GetWorkflowRequestFromSnapshotForRetrigger(workflowId int, workflowType types.WorkflowType) (*types.WorkflowRequest, error)
}

type WorkflowTriggerAuditServiceImpl

type WorkflowTriggerAuditServiceImpl struct {
	*sql.TransactionUtilImpl
	// contains filtered or unexported fields
}

func NewWorkflowTriggerAuditServiceImpl

func NewWorkflowTriggerAuditServiceImpl(
	logger *zap.SugaredLogger,
	workflowConfigSnapshotRepository repository.WorkflowConfigSnapshotRepository,
	config *types.CiCdConfig,
	dockerRegistryConfig pipeline.DockerRegistryConfig,
	transactionUtilImpl *sql.TransactionUtilImpl) *WorkflowTriggerAuditServiceImpl

func (*WorkflowTriggerAuditServiceImpl) GetWorkflowRequestFromSnapshotForRetrigger

func (impl *WorkflowTriggerAuditServiceImpl) GetWorkflowRequestFromSnapshotForRetrigger(workflowId int, workflowType types.WorkflowType) (*types.WorkflowRequest, error)

GetWorkflowRequestFromSnapshotForRetrigger retrieves workflow request for retrigger scenarios

func (*WorkflowTriggerAuditServiceImpl) SaveTriggerAudit

func (impl *WorkflowTriggerAuditServiceImpl) SaveTriggerAudit(workflowRequest *types.WorkflowRequest) (*repository.WorkflowConfigSnapshot, error)

Jump to

Keyboard shortcuts

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