flowdesc

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIPFilterRule

func NewIPFilterRule() *ipFilterRule

Types

type IPFilterRule

type IPFilterRule interface {
	// initial structure
	//Init() error
	// Set action of IPFilterRule
	SetAction(bool) error
	// Set Direction of IPFilterRule
	SetDirection(bool) error
	// Set Protocol of IPFilterRule
	// 0xfc stand for ip (any)
	SetProtocal(int) error
	// Set Source IP of IPFilterRule
	// format: IP or IP/mask or "any"
	SetSourceIp(string) error
	// Set Source port of IPFilterRule
	// format: {port/port-port}[,ports[,...]]
	SetSourcePorts(string) error
	// Set Destination IP of IPFilterRule
	// format: IP or IP/mask or "assigned"
	SetDestinationIp(string) error
	// Set Destination port of IPFilterRule
	// format: {port/port-port}[,ports[,...]]
	SetDestinationPorts(string) error
	// Encode the IPFilterRule
	Encode() (string, error)
	// Decode the IPFilterRule
	Decode() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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