package
Version:
v3.11.0+incompatible
Opens a new window with list of versions in this module.
Published: Jun 15, 2018
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 occurence
Source Files
¶
Click to show internal directories.
Click to hide internal directories.