Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RuleBinderVersion is the version of RuleBinder // TODO: we should probably set to v1alpha1 RuleBinderVersion string = "v1" )
Variables ¶
View Source
var RuleBindingAlertGvr = schema.GroupVersionResource{ Group: types.RuleBinderGroup, Version: RuleBinderVersion, Resource: types.RuntimeRuleBindingAlertPlural, }
Functions ¶
This section is empty.
Types ¶
type RuntimeAlertRuleBinding ¶
type RuntimeAlertRuleBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the RuntimeAlertRuleBinding Spec RuntimeAlertRuleBindingSpec `json:"spec,omitempty"` }
type RuntimeAlertRuleBindingList ¶
type RuntimeAlertRuleBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is the list of RuntimeAlertRuleBinding Items []RuntimeAlertRuleBinding `json:"items"` }
type RuntimeAlertRuleBindingRule ¶
type RuntimeAlertRuleBindingRule struct { Parameters map[string]interface{} `json:"parameters" yaml:"parameters"` RuleName string `json:"ruleName" yaml:"ruleName"` RuleID string `json:"ruleID" yaml:"ruleID"` Severity string `json:"severity" yaml:"severity"` RuleTags []string `json:"ruleTags" yaml:"ruleTags"` }
func (*RuntimeAlertRuleBindingRule) Equal ¶
func (r *RuntimeAlertRuleBindingRule) Equal(other *RuntimeAlertRuleBindingRule) bool
type RuntimeAlertRuleBindingSpec ¶
type RuntimeAlertRuleBindingSpec struct { Rules []RuntimeAlertRuleBindingRule `json:"rules" yaml:"rules"` PodSelector metav1.LabelSelector `json:"podSelector" yaml:"podSelector"` NamespaceSelector metav1.LabelSelector `json:"namespaceSelector" yaml:"namespaceSelector"` }
Click to show internal directories.
Click to hide internal directories.