security_advisory

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 16 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,
) (*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) GetOnOffState(actionOpt models.ActionOpt) 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