Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.3.308 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleGroup  string = "kubescape.io"
	RuleKind   string = "Rule"
	RulePlural string = "rules"
)
View Source
const (
	ApplicationProfile = "applicationprofile"
	NetworkProfile     = "networkprofile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Enricher

type Enricher interface {
	EnrichRuleFailure(rule RuleFailure) error
}

type GenericRuleFailure

type GenericRuleFailure struct {
	BaseRuntimeAlert       armotypes.BaseRuntimeAlert
	AlertType              armotypes.AlertType
	AlertPlatform          armotypes.AlertSourcePlatform
	RuntimeProcessDetails  armotypes.ProcessTree
	TriggerEvent           utils.EnrichEvent
	RuleAlert              armotypes.RuleAlert
	RuntimeAlertK8sDetails armotypes.RuntimeAlertK8sDetails
	RuntimeAlertECSDetails armotypes.RuntimeAlertECSDetails
	RuleID                 string
	CloudServices          []string
	HttpRuleAlert          armotypes.HttpRuleAlert
	Extra                  any
	IsTriggerAlert         bool
	SourceContext          contextdetection.EventSourceContext
}

func (*GenericRuleFailure) GetAlertPlatform

func (rule *GenericRuleFailure) GetAlertPlatform() armotypes.AlertSourcePlatform

func (*GenericRuleFailure) GetAlertType

func (rule *GenericRuleFailure) GetAlertType() armotypes.AlertType

func (*GenericRuleFailure) GetBaseRuntimeAlert

func (rule *GenericRuleFailure) GetBaseRuntimeAlert() armotypes.BaseRuntimeAlert

func (*GenericRuleFailure) GetCloudServices

func (rule *GenericRuleFailure) GetCloudServices() []string

func (*GenericRuleFailure) GetExtra

func (rule *GenericRuleFailure) GetExtra() any

func (*GenericRuleFailure) GetHttpRuleAlert

func (rule *GenericRuleFailure) GetHttpRuleAlert() armotypes.HttpRuleAlert

func (*GenericRuleFailure) GetIsTriggerAlert added in v0.3.16

func (rule *GenericRuleFailure) GetIsTriggerAlert() bool

func (*GenericRuleFailure) GetRuleAlert

func (rule *GenericRuleFailure) GetRuleAlert() armotypes.RuleAlert

func (*GenericRuleFailure) GetRuleId

func (rule *GenericRuleFailure) GetRuleId() string

func (*GenericRuleFailure) GetRuntimeAlertEcsDetails added in v0.3.36

func (rule *GenericRuleFailure) GetRuntimeAlertEcsDetails() armotypes.RuntimeAlertECSDetails

func (*GenericRuleFailure) GetRuntimeAlertK8sDetails

func (rule *GenericRuleFailure) GetRuntimeAlertK8sDetails() armotypes.RuntimeAlertK8sDetails

func (*GenericRuleFailure) GetRuntimeProcessDetails

func (rule *GenericRuleFailure) GetRuntimeProcessDetails() armotypes.ProcessTree

func (*GenericRuleFailure) GetSourceContext added in v0.3.17

func (rule *GenericRuleFailure) GetSourceContext() contextdetection.EventSourceContext

func (*GenericRuleFailure) GetTriggerEvent

func (rule *GenericRuleFailure) GetTriggerEvent() utils.EnrichEvent

func (*GenericRuleFailure) SetAlertPlatform

func (rule *GenericRuleFailure) SetAlertPlatform(alertPlatform armotypes.AlertSourcePlatform)

func (*GenericRuleFailure) SetBaseRuntimeAlert

func (rule *GenericRuleFailure) SetBaseRuntimeAlert(baseRuntimeAlert armotypes.BaseRuntimeAlert)

func (*GenericRuleFailure) SetCloudServices

func (rule *GenericRuleFailure) SetCloudServices(cloudServices []string)

func (*GenericRuleFailure) SetExtra

func (rule *GenericRuleFailure) SetExtra(extra any)

func (*GenericRuleFailure) SetHttpRuleAlert

func (rule *GenericRuleFailure) SetHttpRuleAlert(httpRuleAlert armotypes.HttpRuleAlert)

func (*GenericRuleFailure) SetIsTriggerAlert added in v0.3.16

func (rule *GenericRuleFailure) SetIsTriggerAlert(isTriggerAlert bool)

func (*GenericRuleFailure) SetRuleAlert

func (rule *GenericRuleFailure) SetRuleAlert(ruleAlert armotypes.RuleAlert)

func (*GenericRuleFailure) SetRuntimeAlertEcsDetails added in v0.3.36

func (rule *GenericRuleFailure) SetRuntimeAlertEcsDetails(runtimeAlertEcsDetails armotypes.RuntimeAlertECSDetails)

func (*GenericRuleFailure) SetRuntimeAlertK8sDetails

func (rule *GenericRuleFailure) SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails armotypes.RuntimeAlertK8sDetails)

func (*GenericRuleFailure) SetRuntimeProcessDetails

func (rule *GenericRuleFailure) SetRuntimeProcessDetails(runtimeProcessDetails armotypes.ProcessTree)

func (*GenericRuleFailure) SetSourceContext added in v0.3.17

func (rule *GenericRuleFailure) SetSourceContext(sourceContext contextdetection.EventSourceContext)

func (*GenericRuleFailure) SetTriggerEvent

func (rule *GenericRuleFailure) SetTriggerEvent(triggerEvent utils.EnrichEvent)

func (*GenericRuleFailure) SetWorkloadDetails

func (rule *GenericRuleFailure) SetWorkloadDetails(workloadDetails string)

type RuleFailure

type RuleFailure interface {
	// Get Base Runtime Alert
	GetBaseRuntimeAlert() armotypes.BaseRuntimeAlert
	// Get Alert Type
	GetAlertType() armotypes.AlertType
	// Get Runtime Process Details
	GetRuntimeProcessDetails() armotypes.ProcessTree
	// Get Trigger Event
	GetTriggerEvent() utils.EnrichEvent
	// Get Rule Description
	GetRuleAlert() armotypes.RuleAlert
	// Get K8s Runtime Details
	GetRuntimeAlertK8sDetails() armotypes.RuntimeAlertK8sDetails
	// Get ECS Runtime Details
	GetRuntimeAlertEcsDetails() armotypes.RuntimeAlertECSDetails
	// Get Rule ID
	GetRuleId() string
	// Get Cloud Services
	GetCloudServices() []string
	// Get Http Details
	GetHttpRuleAlert() armotypes.HttpRuleAlert
	// Get Alert Platform
	GetAlertPlatform() armotypes.AlertSourcePlatform
	// Get Extra
	GetExtra() any
	// Get Source Context
	GetSourceContext() contextdetection.EventSourceContext

	// Set Workload Details
	SetWorkloadDetails(workloadDetails string)
	// Set Base Runtime Alert
	SetBaseRuntimeAlert(baseRuntimeAlert armotypes.BaseRuntimeAlert)
	// Set Runtime Process Details
	SetRuntimeProcessDetails(runtimeProcessDetails armotypes.ProcessTree)
	// Set Trigger Event
	SetTriggerEvent(triggerEvent utils.EnrichEvent)
	// Set Rule Description
	SetRuleAlert(ruleAlert armotypes.RuleAlert)
	// Set K8s Runtime Details
	SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails armotypes.RuntimeAlertK8sDetails)
	// Set ECS Runtime Details
	SetRuntimeAlertEcsDetails(runtimeAlertEcsDetails armotypes.RuntimeAlertECSDetails)
	// Set Cloud Services
	SetCloudServices(cloudServices []string)
	// Set Alert Platform
	SetAlertPlatform(alertPlatform armotypes.AlertSourcePlatform)
	// Set Http Rule Alert
	SetHttpRuleAlert(httpRuleAlert armotypes.HttpRuleAlert)
	// Set Extra
	SetExtra(extra any)
	// Get IsTriggerAlert
	GetIsTriggerAlert() bool
	// Set IsTriggerAlert
	SetIsTriggerAlert(isTriggerAlert bool)
	// Set Source Context
	SetSourceContext(sourceContext contextdetection.EventSourceContext)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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