Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPNetwork ¶
func CPNetwork(objectCache objectcache.ObjectCache, config config.Config, mm ...metricsmanager.MetricsManager) cel.EnvOption
func NN
deprecated
func NN(objectCache objectcache.ObjectCache, config config.Config, mm ...metricsmanager.MetricsManager) cel.EnvOption
NN returns the deprecated "nn.*" backward-compat alias namespace for this library's cp.* functions (e.g. nn.is_domain_in_egress, nn.was_address_in_egress, ...).
Deprecated: kubescape/node-agent#864 renamed the ap.*/nn.* CEL helper namespaces to cp.* with no backward-compatible aliases, which silently disabled any pre-existing user-authored CEL rule still referencing the old names (pkg/utils/cel.go logs a warning and just skips the rule on compile failure). NN restores those names for a transition window: it shares the same containerProfileNetworkLibrary instance and the same funcSpecs table as cp.*, so every nn.* call is wired to the exact same Go implementation (l.wasAddressInEgress, l.isDomainInEgress, ...) as its cp.* equivalent — only the CEL-facing function name and overload id differ (cel-go requires overload ids to be unique per environment, so nn.* can't literally reuse cp.*'s FunctionOpt values). Remove once user rules have migrated to cp.*.
func New ¶
func New(objectCache objectcache.ObjectCache, config config.Config, mm ...metricsmanager.MetricsManager) libraries.Library
Types ¶
This section is empty.