firewall

package
v0.0.0-...-468a501 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallMock

type FirewallMock struct {
	Rules []firewall.Rule
}

func NewMockFirewall

func NewMockFirewall() FirewallMock

func (*FirewallMock) Add

func (mf *FirewallMock) Add(rules []firewall.Rule) error

Add and apply firewall rules

func (*FirewallMock) Delete

func (mf *FirewallMock) Delete(names []string) error

Delete a list of firewall rules by defined names

func (*FirewallMock) Disable

func (mf *FirewallMock) Disable() error

Disable firewall

func (*FirewallMock) Enable

func (mf *FirewallMock) Enable() error

Enable firewall

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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