package
Version:
v0.0.0-...-5343e98
Opens a new window with list of versions in this module.
Published: Apr 22, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Observer struct {
ObservedOomsChannel chan OomInfo
}
Observer can observe pod resource update and collect OOM events.
NewObserver returns new instance of the Observer.
func (*Observer) OnDelete(obj interface{})
OnDelete is Noop
func (o *Observer) OnUpdate(oldObj, newObj interface{})
OnUpdate inspects if the update contains oom information and
passess it to the ObservedOomsChannel
OomInfo contains data of the OOM event occurrence
Source Files
¶
Click to show internal directories.
Click to hide internal directories.