Versions in this module Expand all Collapse all v1 v1.4.11 Aug 31, 2021 v1.4.10 Aug 27, 2021 Changes in this version + const ANY + const Base + const Bitsize + const MinUnsortedIPSetLength + var AzureNPMChains = []string + var MembersBytes = []byte("Members") + type Converter struct + AzureNPMChains map[string]bool + ListMap map[string]string + NPMCache *NPMCache + SetMap map[string]string + func (c *Converter) GetJSONRulesFromIptableFile(tableName string, npmCacheFile string, iptableSaveFile string) ([][]byte, error) + func (c *Converter) GetJSONRulesFromIptables(tableName string) ([][]byte, error) + func (c *Converter) GetProtobufRulesFromIptable(tableName string) ([]*pb.RuleResponse, error) + func (c *Converter) GetProtobufRulesFromIptableFile(tableName string, npmCacheFile string, iptableSaveFile string) ([]*pb.RuleResponse, error) + func (c *Converter) NpmCache() error + func (c *Converter) NpmCacheFromFile(npmCacheJSONFile string) error + type Input struct + Content string + Type InputType + type InputType int32 + const EXTERNAL + const IPADDRS + const PODNAME + func GetInputType(input string) InputType + type NPMCache struct + Exec interface{} + Nodename string + NsMap map[string]*npm.Namespace + PodMap map[string]*npm.NpmPod + ProcessedNpMap map[string]*networkingv1.NetworkPolicy + RawNpMap map[string]*networkingv1.NetworkPolicy + TelemetryEnabled bool + type Tuple struct + Direction string + DstIP string + DstPort string + Protocol string + RuleType string + SrcIP string + SrcPort string + func GetNetworkTuple(src, dst *Input) ([][]byte, []*Tuple, error) + func GetNetworkTupleFile(src, dst *Input, npmCacheFile string, iptableSaveFile string) ([][]byte, []*Tuple, error)