actions

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package actions provide necessary interfaces and implementations for processing actions, such as remediation and alerts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleActionsEngine

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

RuleActionsEngine is the engine responsible for processing all actions i.e., remediation and alerts

func NewRuleActions

func NewRuleActions(
	ctx context.Context,
	ruletype *minderv1.RuleType,
	provider provinfv1.Provider,
	actionConfig *models.ActionConfiguration,
) (*RuleActionsEngine, error)

NewRuleActions creates a new rule actions engine

func (*RuleActionsEngine) DoActions

DoActions processes all actions i.e., remediation and alerts

func (*RuleActionsEngine) GetOnOffState

func (rae *RuleActionsEngine) GetOnOffState() map[engif.ActionType]models.ActionOpt

GetOnOffState returns the on/off state of the actions

Directories

Path Synopsis
Package alert provides necessary interfaces and implementations for processing alerts.
Package alert provides necessary interfaces and implementations for processing alerts.
noop
Package noop provides a fallback alert engine for cases where no alert is set.
Package noop provides a fallback alert engine for cases where no alert is set.
security_advisory
Package security_advisory provides necessary interfaces and implementations for creating alerts of type security advisory.
Package security_advisory provides necessary interfaces and implementations for creating alerts of type security advisory.
Package remediate provides necessary interfaces and implementations for remediating rules.
Package remediate provides necessary interfaces and implementations for remediating rules.
gh_branch_protect
Package gh_branch_protect provides the github branch protection remediation engine
Package gh_branch_protect provides the github branch protection remediation engine
noop
Package noop provides a fallback remediation engine for cases where no remediation is set.
Package noop provides a fallback remediation engine for cases where no remediation is set.
pull_request
Package pull_request provides the pull request remediation engine
Package pull_request provides the pull request remediation engine
rest
Package rest provides the REST remediation engine
Package rest provides the REST remediation engine

Jump to

Keyboard shortcuts

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