types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RuleDirectionIngress RuleDirection = "ingress"
	RuleDirectionEgress  RuleDirection = "egress"
	EtherTypeIPv4        EtherType     = "IPv4"
	EtherTypeIPv6        EtherType     = "IPv6"
	ProtocolTCP          Protocol      = "tcp"
	ProtocolUDP          Protocol      = "udp"
	ProtocolICMP         Protocol      = "icmp"
	ProtocolAny          Protocol      = "any"
	ProtocolAH           Protocol      = "ah"
	ProtocolDCCP         Protocol      = "dccp"
	ProtocolEGP          Protocol      = "egp"
	ProtocolESP          Protocol      = "esp"
	ProtocolGRE          Protocol      = "gre"
	ProtocolIGMP         Protocol      = "igmp"
	ProtocolOSPF         Protocol      = "ospf"
	ProtocolPGM          Protocol      = "pgm"
	ProtocolRSVP         Protocol      = "rsvp"
	ProtocolSCTP         Protocol      = "sctp"
	ProtocolUDPLITE      Protocol      = "udplite"
	ProtocolVRRP         Protocol      = "vrrp"
	Protocol51           Protocol      = "51"
	Protocol50           Protocol      = "50"
	Protocol112          Protocol      = "112"
	Protocol0            Protocol      = "0"
	ProtocolIPinIP       Protocol      = "4"
	ProtocolIPIP         Protocol      = "ipip"
	ProtocolIPEncap      Protocol      = "ipencap"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtherType

type EtherType string

func (EtherType) IsValid

func (et EtherType) IsValid() error

func (EtherType) List

func (et EtherType) List() []EtherType

func (*EtherType) MarshalJSON

func (et *EtherType) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface.

func (EtherType) String

func (et EtherType) String() string

func (EtherType) StringList

func (et EtherType) StringList() []string

func (*EtherType) UnmarshalJSON

func (et *EtherType) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface.

func (EtherType) ValidOrNil

func (et EtherType) ValidOrNil() (*EtherType, error)

type Protocol

type Protocol string

func (Protocol) IsValid

func (p Protocol) IsValid() error

func (Protocol) List

func (p Protocol) List() []Protocol

func (*Protocol) MarshalJSON

func (p *Protocol) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface.

func (Protocol) String

func (p Protocol) String() string

func (Protocol) StringList

func (p Protocol) StringList() []string

func (*Protocol) UnmarshalJSON

func (p *Protocol) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface.

func (Protocol) ValidOrNil

func (p Protocol) ValidOrNil() (*Protocol, error)

type RuleDirection

type RuleDirection string

func (RuleDirection) IsValid

func (rd RuleDirection) IsValid() error

func (RuleDirection) List

func (rd RuleDirection) List() []RuleDirection

func (*RuleDirection) MarshalJSON

func (rd *RuleDirection) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface.

func (RuleDirection) String

func (rd RuleDirection) String() string

func (RuleDirection) StringList

func (rd RuleDirection) StringList() []string

func (*RuleDirection) UnmarshalJSON

func (rd *RuleDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface.

func (RuleDirection) ValidOrNil

func (rd RuleDirection) ValidOrNil() (*RuleDirection, error)

Jump to

Keyboard shortcuts

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