kube_event

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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