iptables

package
v0.0.0-...-48f6368 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Policy  string
	Packets uint64
	Bytes   uint64
	Rules   []Rule
}

type ParseError

type ParseError struct {
	Message    string
	LineNumber int
	LineText   string
}

func (ParseError) Error

func (e ParseError) Error() string

type Rule

type Rule struct {
	Packets uint64
	Bytes   uint64
	Rule    string
}

type Table

type Table map[string]Chain

type Tables

type Tables map[string]Table

func GetTables

func GetTables() (Tables, error)

func ParseIptablesSave

func ParseIptablesSave(r io.Reader) (Tables, error)

Jump to

Keyboard shortcuts

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