Documentation ¶
Index ¶
- Constants
- Variables
- type RuleBindingChangedHandler
- type RuleBindingK8sStore
- func (store *RuleBindingK8sStore) Destroy()
- func (store *RuleBindingK8sStore) GetRulesForPod(podName, namespace string) ([]RuntimeAlertRuleBindingRule, error)
- func (store *RuleBindingK8sStore) SetRuleBindingChangedHandlers(handlers []RuleBindingChangedHandler)
- func (store *RuleBindingK8sStore) StartController()
- type RuntimeAlertRuleBinding
- type RuntimeAlertRuleBindingList
- type RuntimeAlertRuleBindingRule
- type RuntimeAlertRuleBindingSpec
Constants ¶
View Source
const RuntimeRuleBindingAlertPlural = "runtimerulealertbindings"
Variables ¶
View Source
var RuleBindingAlertGvr schema.GroupVersionResource = schema.GroupVersionResource{ Group: collector.ApplicationProfileGroup, Version: collector.ApplicationProfileVersion, Resource: RuntimeRuleBindingAlertPlural, }
Functions ¶
This section is empty.
Types ¶
type RuleBindingChangedHandler ¶
type RuleBindingChangedHandler func(ruleBinding RuntimeAlertRuleBinding)
type RuleBindingK8sStore ¶
type RuleBindingK8sStore struct {
// contains filtered or unexported fields
}
func NewRuleBindingK8sStore ¶
func NewRuleBindingK8sStore(dynamicClient dynClient, coreV1Client v1.CoreV1Interface, nodeName, storeNamespace string) (*RuleBindingK8sStore, error)
func (*RuleBindingK8sStore) Destroy ¶
func (store *RuleBindingK8sStore) Destroy()
func (*RuleBindingK8sStore) GetRulesForPod ¶
func (store *RuleBindingK8sStore) GetRulesForPod(podName, namespace string) ([]RuntimeAlertRuleBindingRule, error)
func (*RuleBindingK8sStore) SetRuleBindingChangedHandlers ¶
func (store *RuleBindingK8sStore) SetRuleBindingChangedHandlers(handlers []RuleBindingChangedHandler)
func (*RuleBindingK8sStore) StartController ¶
func (store *RuleBindingK8sStore) StartController()
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 { RuleName string `json:"ruleName" yaml:"ruleName"` RuleID string `json:"ruleID" yaml:"ruleID"` RuleTags []string `json:"ruleTags" yaml:"ruleTags"` Severity string `json:"severity" yaml:"severity"` Parameters map[string]interface{} `json:"parameters" yaml:"parameters"` }
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.