Documentation
¶
Index ¶
- Constants
- type Enricher
- type GenericRuleFailure
- func (rule *GenericRuleFailure) GetAlertPlatform() apitypes.AlertSourcePlatform
- func (rule *GenericRuleFailure) GetAlertType() apitypes.AlertType
- func (rule *GenericRuleFailure) GetBaseRuntimeAlert() apitypes.BaseRuntimeAlert
- func (rule *GenericRuleFailure) GetCloudServices() []string
- func (rule *GenericRuleFailure) GetExtra() interface{}
- func (rule *GenericRuleFailure) GetHttpRuleAlert() apitypes.HttpRuleAlert
- func (rule *GenericRuleFailure) GetRuleAlert() apitypes.RuleAlert
- func (rule *GenericRuleFailure) GetRuleId() string
- func (rule *GenericRuleFailure) GetRuntimeAlertK8sDetails() apitypes.RuntimeAlertK8sDetails
- func (rule *GenericRuleFailure) GetRuntimeProcessDetails() apitypes.ProcessTree
- func (rule *GenericRuleFailure) GetTriggerEvent() utils.EnrichEvent
- func (rule *GenericRuleFailure) SetAlertPlatform(alertPlatform apitypes.AlertSourcePlatform)
- func (rule *GenericRuleFailure) SetBaseRuntimeAlert(baseRuntimeAlert apitypes.BaseRuntimeAlert)
- func (rule *GenericRuleFailure) SetCloudServices(cloudServices []string)
- func (rule *GenericRuleFailure) SetExtra(extra interface{})
- func (rule *GenericRuleFailure) SetHttpRuleAlert(httpRuleAlert apitypes.HttpRuleAlert)
- func (rule *GenericRuleFailure) SetRuleAlert(ruleAlert apitypes.RuleAlert)
- func (rule *GenericRuleFailure) SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails apitypes.RuntimeAlertK8sDetails)
- func (rule *GenericRuleFailure) SetRuntimeProcessDetails(runtimeProcessDetails apitypes.ProcessTree)
- func (rule *GenericRuleFailure) SetTriggerEvent(triggerEvent utils.EnrichEvent)
- func (rule *GenericRuleFailure) SetWorkloadDetails(workloadDetails string)
- type RuleFailure
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 apitypes.BaseRuntimeAlert
AlertType apitypes.AlertType
AlertPlatform apitypes.AlertSourcePlatform
RuntimeProcessDetails apitypes.ProcessTree
TriggerEvent utils.EnrichEvent
RuleAlert apitypes.RuleAlert
RuntimeAlertK8sDetails apitypes.RuntimeAlertK8sDetails
RuleID string
CloudServices []string
HttpRuleAlert apitypes.HttpRuleAlert
Extra interface{}
}
func (*GenericRuleFailure) GetAlertPlatform ¶
func (rule *GenericRuleFailure) GetAlertPlatform() apitypes.AlertSourcePlatform
func (*GenericRuleFailure) GetAlertType ¶
func (rule *GenericRuleFailure) GetAlertType() apitypes.AlertType
func (*GenericRuleFailure) GetBaseRuntimeAlert ¶
func (rule *GenericRuleFailure) GetBaseRuntimeAlert() apitypes.BaseRuntimeAlert
func (*GenericRuleFailure) GetCloudServices ¶
func (rule *GenericRuleFailure) GetCloudServices() []string
func (*GenericRuleFailure) GetExtra ¶
func (rule *GenericRuleFailure) GetExtra() interface{}
func (*GenericRuleFailure) GetHttpRuleAlert ¶
func (rule *GenericRuleFailure) GetHttpRuleAlert() apitypes.HttpRuleAlert
func (*GenericRuleFailure) GetRuleAlert ¶
func (rule *GenericRuleFailure) GetRuleAlert() apitypes.RuleAlert
func (*GenericRuleFailure) GetRuleId ¶
func (rule *GenericRuleFailure) GetRuleId() string
func (*GenericRuleFailure) GetRuntimeAlertK8sDetails ¶
func (rule *GenericRuleFailure) GetRuntimeAlertK8sDetails() apitypes.RuntimeAlertK8sDetails
func (*GenericRuleFailure) GetRuntimeProcessDetails ¶
func (rule *GenericRuleFailure) GetRuntimeProcessDetails() apitypes.ProcessTree
func (*GenericRuleFailure) GetTriggerEvent ¶
func (rule *GenericRuleFailure) GetTriggerEvent() utils.EnrichEvent
func (*GenericRuleFailure) SetAlertPlatform ¶
func (rule *GenericRuleFailure) SetAlertPlatform(alertPlatform apitypes.AlertSourcePlatform)
func (*GenericRuleFailure) SetBaseRuntimeAlert ¶
func (rule *GenericRuleFailure) SetBaseRuntimeAlert(baseRuntimeAlert apitypes.BaseRuntimeAlert)
func (*GenericRuleFailure) SetCloudServices ¶
func (rule *GenericRuleFailure) SetCloudServices(cloudServices []string)
func (*GenericRuleFailure) SetExtra ¶
func (rule *GenericRuleFailure) SetExtra(extra interface{})
func (*GenericRuleFailure) SetHttpRuleAlert ¶
func (rule *GenericRuleFailure) SetHttpRuleAlert(httpRuleAlert apitypes.HttpRuleAlert)
func (*GenericRuleFailure) SetRuleAlert ¶
func (rule *GenericRuleFailure) SetRuleAlert(ruleAlert apitypes.RuleAlert)
func (*GenericRuleFailure) SetRuntimeAlertK8sDetails ¶
func (rule *GenericRuleFailure) SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails apitypes.RuntimeAlertK8sDetails)
func (*GenericRuleFailure) SetRuntimeProcessDetails ¶
func (rule *GenericRuleFailure) SetRuntimeProcessDetails(runtimeProcessDetails apitypes.ProcessTree)
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() apitypes.BaseRuntimeAlert
// Get Alert Type
GetAlertType() apitypes.AlertType
// Get Runtime Process Details
GetRuntimeProcessDetails() apitypes.ProcessTree
// Get Trigger Event
GetTriggerEvent() utils.EnrichEvent
// Get Rule Description
GetRuleAlert() apitypes.RuleAlert
// Get K8s Runtime Details
GetRuntimeAlertK8sDetails() apitypes.RuntimeAlertK8sDetails
// Get Rule ID
GetRuleId() string
// Get Cloud Services
GetCloudServices() []string
// Get Http Details
GetHttpRuleAlert() apitypes.HttpRuleAlert
// Get Alert Platform
GetAlertPlatform() apitypes.AlertSourcePlatform
// Get Extra
GetExtra() interface{}
// Set Workload Details
SetWorkloadDetails(workloadDetails string)
// Set Base Runtime Alert
SetBaseRuntimeAlert(baseRuntimeAlert apitypes.BaseRuntimeAlert)
// Set Runtime Process Details
SetRuntimeProcessDetails(runtimeProcessDetails apitypes.ProcessTree)
// Set Trigger Event
SetTriggerEvent(triggerEvent utils.EnrichEvent)
// Set Rule Description
SetRuleAlert(ruleAlert apitypes.RuleAlert)
// Set K8s Runtime Details
SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails apitypes.RuntimeAlertK8sDetails)
// Set Cloud Services
SetCloudServices(cloudServices []string)
// Set Alert Platform
SetAlertPlatform(alertPlatform apitypes.AlertSourcePlatform)
// Set Http Rule Alert
SetHttpRuleAlert(httpRuleAlert apitypes.HttpRuleAlert)
// Set Extra
SetExtra(extra interface{})
}
Click to show internal directories.
Click to hide internal directories.