Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeEventHook ¶
type KubeEventHook struct { HookName string Name string EventTypes []kube_events_manager.OnKubernetesEventType Kind string Namespace string Selector *metav1.LabelSelector ObjectName string JqFilter string AllowFailure bool Debug bool Config kube_events_manager.OnKubernetesEventConfig }
a link between a hook and a kube event
func ConvertOnKubernetesEventToKubeEventHook ¶
func ConvertOnKubernetesEventToKubeEventHook(hook *hook.Hook, config kube_events_manager.OnKubernetesEventConfig, namespace string) *KubeEventHook
func MakeKubeEventHookDescriptors ¶
func MakeKubeEventHookDescriptors(hook *hook.Hook) []*KubeEventHook
type KubeEventsHooksController ¶
type KubeEventsHooksController interface { // EnableGlobalHooks(moduleManager module_manager.ModuleManager, eventsManager kube_events_manager.KubeEventsManager) error // EnableModuleHooks(moduleName string, moduleManager module_manager.ModuleManager, eventsManager kube_events_manager.KubeEventsManager) error // DisableModuleHooks(moduleName string, moduleManager module_manager.ModuleManager, eventsManager kube_events_manager.KubeEventsManager) error EnableHooks(hookManager hook.HookManager, eventsManager kube_events_manager.KubeEventsManager) error HandleEvent(kubeEvent kube_events_manager.KubeEvent) (*struct{ Tasks []task.Task }, error) }
type MainKubeEventsHooksController ¶
type MainKubeEventsHooksController struct {
KubeHooks map[string]*KubeEventHook
}
func NewMainKubeEventsHooksController ¶
func NewMainKubeEventsHooksController() *MainKubeEventsHooksController
func (*MainKubeEventsHooksController) EnableHooks ¶
func (obj *MainKubeEventsHooksController) EnableHooks(hookManager hook.HookManager, eventsManager kube_events_manager.KubeEventsManager) error
func (*MainKubeEventsHooksController) HandleEvent ¶
func (obj *MainKubeEventsHooksController) HandleEvent(kubeEvent kube_events_manager.KubeEvent) (*struct{ Tasks []task.Task }, error)
Click to show internal directories.
Click to hide internal directories.