Documentation ¶
Index ¶
Constants ¶
View Source
const DenyAllNetpol = "deny-all"
DenyAllNetpol defines the deny all netpol name
View Source
const DenyIngressNetpol = "deny-ingress"
DenyIngressNetpol defines the deny all netpol name
Variables ¶
This section is empty.
Functions ¶
func DeletePreviousNetpols ¶
DeletePreviousNetpols deletes previous applied network policies
Types ¶
type Handler ¶
type Handler interface { Init(c *config.Config) error Handle(e event.Event, c kubernetes.Interface) }
Handler is implemented by any handler. The Handle method is used to process event
type HandlerConfig ¶
HandlerConfig hadler configuration
func (*HandlerConfig) Handle ¶
func (h *HandlerConfig) Handle(e event.Event, client kubernetes.Interface)
Handle handles an event.
Click to show internal directories.
Click to hide internal directories.