target

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HitsMetrics

type HitsMetrics struct {
	// contains filtered or unexported fields
}

func NewTargetHitsMetrics

func NewTargetHitsMetrics() (*HitsMetrics, error)

func (*HitsMetrics) Collect

func (hm *HitsMetrics) Collect() error

Collect collects the metrics for the all the target rules.

func (*HitsMetrics) Delete

func (hm *HitsMetrics) Delete() error

func (*HitsMetrics) Register

func (hm *HitsMetrics) Register(id int, target *nspAPI.Target) error

Register adds a target as nftables rule in the postrouting chain

func (*HitsMetrics) Unregister

func (hm *HitsMetrics) Unregister(id int) error

Unregister removes the nftables rule of a target from the postrouting chain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL