Documentation ¶
Index ¶
- Constants
- type EtherType
- func (et EtherType) IsValid() error
- func (et EtherType) List() []EtherType
- func (et *EtherType) MarshalJSON() ([]byte, error)
- func (et EtherType) String() string
- func (et EtherType) StringList() []string
- func (et *EtherType) UnmarshalJSON(data []byte) error
- func (et EtherType) ValidOrNil() (*EtherType, error)
- type Protocol
- type RuleDirection
- func (rd RuleDirection) IsValid() error
- func (rd RuleDirection) List() []RuleDirection
- func (rd *RuleDirection) MarshalJSON() ([]byte, error)
- func (rd RuleDirection) String() string
- func (rd RuleDirection) StringList() []string
- func (rd *RuleDirection) UnmarshalJSON(data []byte) error
- func (rd RuleDirection) ValidOrNil() (*RuleDirection, error)
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) MarshalJSON ¶
MarshalJSON - implements Marshaler interface.
func (EtherType) StringList ¶
func (*EtherType) UnmarshalJSON ¶
UnmarshalJSON - implements Unmarshaler interface.
func (EtherType) ValidOrNil ¶
type Protocol ¶
type Protocol string
func (*Protocol) MarshalJSON ¶
MarshalJSON - implements Marshaler interface.
func (Protocol) StringList ¶
func (*Protocol) UnmarshalJSON ¶
UnmarshalJSON - implements Unmarshaler interface.
func (Protocol) ValidOrNil ¶
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)
Click to show internal directories.
Click to hide internal directories.