Expose API that accepts a context object for the binary exec (nft) backend.
When using the top level nft package, the new functions are: ReadConfigContext and ApplyConfigContext`.
The old functions are kept with a default context timeout of 30 seconds.
Expose API that accepts filter commands when reading the configuration.
When reading the configuration, by default all the ruleset are loaded.
Now, the caller can specify filter commands to limit the loaded entries.
E.g. ReadConfig("table", "inet", "mytable").
Breaking Changes
The functions exposed through nft/exec have been changed to accept a context.
ReadConfig exposed through nft/lib/exec has been changed to accept filter commands.
The new parameter is variadic, reducing the chances a caller will be influenced by this.
Expose API that accepts a context object for the binary exec (nft) backend.
When using the top level nft package, the new functions are: ReadConfigContext and ApplyConfigContext`.
The old functions are kept with a default context timeout of 30 seconds.
Expose API that accepts filter commands when reading the configuration.
When reading the configuration, by default all the ruleset are loaded.
Now, the caller can specify filter commands to limit the loaded entries.
E.g. ReadConfig("table", "inet", "mytable").
Breaking Changes
The functions exposed through nft/exec have been changed to accept a context.
ReadConfig exposed through nft/lib/exec has been changed to accept filter commands.
The new parameter is variadic, reducing the chances a caller will be influenced by this.
Commits
c9256f5 CHANGELOG: Update the release date of 0.3.0
ede55e6 nft: Increase the default-timeout to 30sec
d47cc2e nft: Add filter options when reading the configuration
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/networkplumbing/go-nft from 0.2.0 to 0.3.0.
Release notes
Sourced from github.com/networkplumbing/go-nft's releases.
Changelog
Sourced from github.com/networkplumbing/go-nft's changelog.
Commits
c9256f5
CHANGELOG: Update the release date of 0.3.0ede55e6
nft: Increase the default-timeout to 30secd47cc2e
nft: Add filter options when reading the configurationb60d22c
tests, testlib: Assure nftables cleanup21bb021
tests, testlib: Assure nftables cleanupaf8e1ae
CHANGELOG: Add description of the changes to the APIfd7ac04
exec: Expose a new API that accepts a context5c63072
exec: Add implicit timeout to thenft
commands4295f73
automation: Load extra kernel-modules to support CentOS Stream 99731a69
github/workflow: Update CodeQL default configurationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)