Implement initial set of backend controllers/resources to handle nftables chains/rules etc. Replace the KubeSpan nftables operations with controller-based. See #4421 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
19 lines
569 B
Go
19 lines
569 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package nethelpers
|
|
|
|
//go:generate enumer -type=NfTablesVerdict -linecomment -text
|
|
|
|
// NfTablesVerdict wraps nftables.Verdict for YAML marshaling.
|
|
type NfTablesVerdict int64
|
|
|
|
// Constants copied from nftables to provide Stringer interface.
|
|
//
|
|
//structprotogen:gen_enum
|
|
const (
|
|
VerdictDrop NfTablesVerdict = 0 // drop
|
|
VerdictAccept NfTablesVerdict = 1 // accept
|
|
)
|