Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsResolver ¶
type DnsResolver interface {
LookupAddr(context context.Context, ip string) (names []string, err error)
}
DnsResolver allows for mocking out the functionality of net.DefaultResolver when testing getPacketDropMessage()
type NodeGetter ¶
type PodLocator ¶
type PodLocator struct {
// contains filtered or unexported fields
}
PodLocator handles the process of locating corresponding Pods having iptables packet drops in Kubernetes cluster.
func NewApiServerPodLocator ¶
func NewApiServerPodLocator(client *kubernetes.Clientset) (*PodLocator, error)
* Returns a locator that pulls pod data from the apiserver
func (*PodLocator) Run ¶
func (locator *PodLocator) Run(stopCh <-chan struct{})
type Poster ¶
type Poster struct {
// contains filtered or unexported fields
}
Poster handles submitting Kubernetes Events to Pods running in the cluster.
func (*Poster) Run ¶
func (poster *Poster) Run(stopCh <-chan struct{}, packetDropCh <-chan drop.PacketDrop)
Run the poster by handling PacketDrop from given channel. Apply exponential backoff if server is down.
type TrafficDirection ¶
type TrafficDirection int
func (TrafficDirection) String ¶
func (td TrafficDirection) String() string
Click to show internal directories.
Click to hide internal directories.