Versions in this module Expand all Collapse all v0 v0.1.0 Oct 27, 2022 Changes in this version + const PolicyActionDrop + const PolicyActionPass + const PolicyTypeEgress + const PolicyTypeIngress + const ProtocolTCP + const ProtocolUDP + type InterfaceInfo struct + DeviceID string + IPs []net.IP + InterfaceName string + Network string + func (i *InterfaceInfo) GetUID() string + type PolicyAction string + type PolicyPortProtocol string + type PolicyRuleSet struct + IfcInfo InterfaceInfo + Rules []Rule + Type PolicyType + type PolicyType string + type Port struct + Number uint16 + Protocol PolicyPortProtocol + type Renderer interface + RenderEgress func(target *controllers.PodInfo, currentPolicies controllers.PolicyMap, ...) ([]PolicyRuleSet, error) + RenderIngress func(target *controllers.PodInfo, currentPolicies controllers.PolicyMap, ...) ([]PolicyRuleSet, error) + type RendererImpl struct + func NewRendererImpl(log klog.Logger) *RendererImpl + func (r *RendererImpl) RenderEgress(target *controllers.PodInfo, currentPolicies controllers.PolicyMap, ...) ([]PolicyRuleSet, error) + func (r *RendererImpl) RenderIngress(target *controllers.PodInfo, currentPolicies controllers.PolicyMap, ...) ([]PolicyRuleSet, error) + type Rule struct + Action PolicyAction + IPCidrs []*net.IPNet + Ports []Port