types

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

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"
	ProtocolIPv6ICMP     Protocol      = "ipv6-icmp"
	ProtocolIPv6Route    Protocol      = "ipv6-route"
	ProtocolIPv6Opts     Protocol      = "ipv6-opts"
	ProtocolIPv6Nonxt    Protocol      = "ipv6-nonxt"
	ProtocolIPv6Frag     Protocol      = "ipv6-frag"
	ProtocolIPv6Encap    Protocol      = "ipv6-encap"
	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"
	ActionCreate         Action        = "create"
	ActionDelete         Action        = "delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.7.5

type Action string

func (Action) IsValid added in v0.7.5

func (a Action) IsValid() error

func (Action) List added in v0.7.5

func (a Action) List() []Action

func (*Action) MarshalJSON added in v0.7.5

func (a *Action) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface

func (Action) String added in v0.7.5

func (a Action) String() string

func (Action) StringList added in v0.7.5

func (a Action) StringList() []string

func (*Action) UnmarshalJSON added in v0.7.5

func (a *Action) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface

func (Action) ValidOrNil added in v0.7.5

func (a Action) ValidOrNil() (*Action, error)

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