mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-09 10:47:10 +00:00
2. Changed method of hidden stacking of event, to send self as an argument, by inheriting from "Hunter" class. where the publish acts as a proxy to the handler. 3. Added new way of categorizing events, while added an option to subscribe to a father event. if en event gets publish, if its father event is hooked, the hook will be triggered 4. Added a reporter in log/ which listens to parent events, meanwhile Vulnerability and OpenService were added. all logging will be made from reporter from now on
9 lines
176 B
Python
9 lines
176 B
Python
from ..events import handler
|
|
|
|
class Hunter(object):
|
|
def __init__(self):
|
|
pass
|
|
|
|
def publish_event(self, event):
|
|
handler.publish_event(event, caller=self)
|