security_advisory

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package security_advisory provides necessary interfaces and implementations for creating alerts of type security advisory.

Index

Constants

View Source
const (
	// AlertType is the type of the security advisory alert engine
	AlertType = "security_advisory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

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

Alert is the structure backing the security-advisory alert action

func NewSecurityAdvisoryAlert

func NewSecurityAdvisoryAlert(
	actionType interfaces.ActionType,
	ruleType *pb.RuleType,
	saCfg *pb.RuleType_Definition_Alert_AlertTypeSA,
	cli provifv1.GitHub,
	setting models.ActionOpt,
) (*Alert, error)

NewSecurityAdvisoryAlert creates a new security-advisory alert action

func (*Alert) Class

func (alert *Alert) Class() interfaces.ActionType

Class returns the action type of the security-advisory engine

func (*Alert) Do

Do alerts through security advisory

func (*Alert) GetOnOffState

func (alert *Alert) GetOnOffState() models.ActionOpt

GetOnOffState returns the alert action state read from the profile

func (*Alert) Type

func (_ *Alert) Type() string

Type returns the action subtype of the remediation engine

Jump to

Keyboard shortcuts

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