hook

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TriggerAuditHook

type TriggerAuditHook interface {
	// AuditCiTrigger audits CI trigger
	AuditCiTrigger(workflowRequest *types.WorkflowRequest) error

	// AuditPrePostCdTrigger audits Pre/Post-CD trigger
	AuditPrePostCdTrigger(workflowRequest *types.WorkflowRequest) error
}

TriggerAuditHook provides common hooks for auditing workflow triggers

type TriggerAuditHookImpl

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

func NewTriggerAuditHookImpl

func NewTriggerAuditHookImpl(logger *zap.SugaredLogger, workflowTriggerAuditService service.WorkflowTriggerAuditService) *TriggerAuditHookImpl

func (*TriggerAuditHookImpl) AuditCiTrigger

func (impl *TriggerAuditHookImpl) AuditCiTrigger(workflowRequest *types.WorkflowRequest) error

func (*TriggerAuditHookImpl) AuditPrePostCdTrigger

func (impl *TriggerAuditHookImpl) AuditPrePostCdTrigger(workflowRequest *types.WorkflowRequest) error

Jump to

Keyboard shortcuts

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