Versions in this module Expand all Collapse all v1 v1.1.0 Mar 5, 2024 Changes in this version + const IngressPodName + const IngressPodNamespace + func ConnStrFromConnProperties(allProtocolsAndPorts bool, protocolsAndPorts map[v1.Protocol][]PortRange) string + func InttoIP4(ipInt int64) string + type CanonicalIntervalSet struct + IntervalSet []Interval + func (c *CanonicalIntervalSet) AddHole(hole Interval) + func (c *CanonicalIntervalSet) AddInterval(intervalToAdd Interval) + func (c *CanonicalIntervalSet) ContainedIn(other CanonicalIntervalSet) bool + func (c *CanonicalIntervalSet) Copy() CanonicalIntervalSet + func (c *CanonicalIntervalSet) Equal(other CanonicalIntervalSet) bool + func (c *CanonicalIntervalSet) Intersection(other CanonicalIntervalSet) + func (c *CanonicalIntervalSet) IsEmpty() bool + func (c *CanonicalIntervalSet) Overlaps(other *CanonicalIntervalSet) bool + func (c *CanonicalIntervalSet) String() string + func (c *CanonicalIntervalSet) Subtraction(other CanonicalIntervalSet) + func (c *CanonicalIntervalSet) Union(other CanonicalIntervalSet) + type Connection interface + AllConnections func() bool + IsEmpty func() bool + ProtocolsAndPortsMap func() map[v1.Protocol][]PortRange + type ConnectionSet struct + AllowAll bool + AllowedProtocols map[v1.Protocol]*PortSet + func MakeConnectionSet(all bool) *ConnectionSet + func (conn *ConnectionSet) AddConnection(protocol v1.Protocol, ports PortSet) + func (conn *ConnectionSet) AllConnections() bool + func (conn *ConnectionSet) ContainedIn(other *ConnectionSet) bool + func (conn *ConnectionSet) Contains(port, protocol string) bool + func (conn *ConnectionSet) Equal(other *ConnectionSet) bool + func (conn *ConnectionSet) Intersection(other *ConnectionSet) + func (conn *ConnectionSet) IsEmpty() bool + func (conn *ConnectionSet) ProtocolsAndPortsMap() map[v1.Protocol][]PortRange + func (conn *ConnectionSet) String() string + func (conn *ConnectionSet) Union(other *ConnectionSet) + type IPBlock struct + func DisjointIPBlocks(set1, set2 []*IPBlock) []*IPBlock + func MergeIPBlocksList(inputList []*IPBlock) []*IPBlock + func NewIPBlock(cidr string, exceptions []string) (*IPBlock, error) + func NewIPBlockFromIPAddress(ipAddress string) (*IPBlock, error) + func (b *IPBlock) ContainedIn(other *IPBlock) bool + func (b *IPBlock) Copy() *IPBlock + func (b *IPBlock) IsIPAddress(ipAddress string) bool + func (b *IPBlock) Split() []*IPBlock + func (b *IPBlock) ToIPRanges() string + type Interval struct + End int64 + Start int64 + func (i *Interval) Equal(x Interval) bool + func (i *Interval) Lt(x Interval) bool + func (i *Interval) String() string + type NetpolError interface + Error func() error + IsFatal func() bool + IsSevere func() bool + Location func() string + type PortRange interface + End func() int64 + Start func() int64 + String func() string + type PortSet struct + ExcludedNamedPorts map[string]bool + NamedPorts map[string]bool + Ports CanonicalIntervalSet + func MakePortSet(all bool) PortSet + func (p *PortSet) AddPort(port intstr.IntOrString) + func (p *PortSet) AddPortRange(minPort, maxPort int64) + func (p *PortSet) ContainedIn(other PortSet) bool + func (p *PortSet) Contains(port int64) bool + func (p *PortSet) Copy() PortSet + func (p *PortSet) Equal(other PortSet) bool + func (p *PortSet) Intersection(other PortSet) + func (p *PortSet) IsAll() bool + func (p *PortSet) IsEmpty() bool + func (p *PortSet) RemovePort(port intstr.IntOrString) + func (p *PortSet) String() string + func (p *PortSet) Union(other PortSet)