acl

package
v0.83.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRuleReturned = errors.New("backend returned no rule")

ErrNoRuleReturned is returned when the firewall backend reports success from AddFilterRule but yields no rule to track.

View Source
var ErrSourceRangesEmpty = errors.New("sources range is empty")

Functions

func ConvertToFirewallProtocol added in v0.78.0

func ConvertToFirewallProtocol(protocol mgmProto.RuleProtocol) (firewall.Protocol, error)

ConvertToFirewallProtocol maps a management rule protocol to the firewall protocol type.

Types

type DefaultManager

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

DefaultManager uses firewall manager to handle

func NewDefaultManager added in v0.24.4

func NewDefaultManager(fm firewall.Manager) *DefaultManager

func (*DefaultManager) ApplyFiltering

func (d *DefaultManager) ApplyFiltering(networkMap *mgmProto.NetworkMap, dnsRouteFeatureFlag bool)

ApplyFiltering firewall rules to the local firewall manager processed by ACL policy.

If allowByDefault is true it appends allow ALL traffic rules to input and output chains.

type Manager

type Manager interface {
	ApplyFiltering(networkMap *mgmProto.NetworkMap, dnsRouteFeatureFlag bool)
}

Manager is a ACL rules manager

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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