google / nftables

This repository contains a Go module to interact with Linux nftables (the iptables successor).
Apache License 2.0
1.12k stars 140 forks source link

Added GetNamedObjects and ResetNamedObjects #267

Closed turekt closed 3 months ago

turekt commented 3 months ago

Hi,

now that NamedObj type is implemented we would need to introduce new variant of GetObjects(table) and ResetObjects(table) funcs as current ones work only with legacy QuotaObj and CounterObj types. This PR introduces GetNamedObjects(table) and ResetNamedObjects(table) funcs which work only with the new NamedObj type.

Let me know what you think.