ios

package
v0.0.0-...-b3f592b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IP   = IPProtocol{"ip", 0}
	ICMP = IPProtocol{"icmp", 1}
	UDP  = IPProtocol{"udp", 17}
	ESP  = IPProtocol{"esp", 50}
)

Functions

func GetACL

func GetACL(name string, cfg string, acl_type string) ([]string, error)

Types

type ACE

type ACE struct {
	Index      uint8
	Action     Action
	Protocol   IPProtocol
	SrcPrefix  IPNetwork
	SrcMatch   PortMatcher
	DestPrefix IPNetwork
	DestMatch  PortMatcher
}

func (ACE) String

func (ace ACE) String() string

type ACL

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

func NewACL

func NewACL(s []string) (ACL, error)

func (ACL) String

func (acl ACL) String() string

type Action

type Action bool

func (Action) String

func (a Action) String() string

type Equator

type Equator interface {
	Equals() bool
}

type Gter

type Gter interface {
	Gt() bool
}

type IPNetwork

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

func (IPNetwork) String

func (ip IPNetwork) String() string

type IPProtocol

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

func (IPProtocol) Equals

func (p IPProtocol) Equals(o IPProtocol) bool

func (IPProtocol) Gter

func (p IPProtocol) Gter(o IPProtocol) bool

func (IPProtocol) Integer

func (p IPProtocol) Integer() int8

func (IPProtocol) Lter

func (p IPProtocol) Lter(o IPProtocol) bool

func (IPProtocol) String

func (p IPProtocol) String() string

type Integerer

type Integerer interface {
	Integer() int8
}

type Lter

type Lter interface {
	Lt() bool
}

type PortMatch

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

func (PortMatch) Match

func (p PortMatch) Match(o PortMatcher) bool

func (PortMatch) String

func (p PortMatch) String() string

type PortMatcher

type PortMatcher interface {
	Match(PortMatcher) bool
	String() string
}

type RangeMatch

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

func (RangeMatch) Match

func (r RangeMatch) Match(o PortMatcher) bool

func (RangeMatch) String

func (r RangeMatch) String() string

type Stringer

type Stringer interface {
	String() string
}

type TransProto

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

func (TransProto) Compare

func (t TransProto) Compare(o TransProto) bool

func (TransProto) Integer

func (t TransProto) Integer() uint16

func (TransProto) String

func (t TransProto) String() string

type TransportProtocol

type TransportProtocol interface {
	String() string
	Integer() uint16
	Compare(TransProto) bool
}

Jump to

Keyboard shortcuts

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