Documentation ¶
Index ¶
- Variables
- type ICMP
- type IpAddrFamily
- func (IpAddrFamily) Descriptor() protoreflect.EnumDescriptor
- func (x IpAddrFamily) Enum() *IpAddrFamily
- func (IpAddrFamily) EnumDescriptor() ([]byte, []int)deprecated
- func (x IpAddrFamily) Number() protoreflect.EnumNumber
- func (x IpAddrFamily) String() string
- func (IpAddrFamily) Type() protoreflect.EnumType
- type Networks
- type Networks_NetIP
- type Networks_NetIP_PortRange
- func (*Networks_NetIP_PortRange) Descriptor() ([]byte, []int)deprecated
- func (x *Networks_NetIP_PortRange) GetFrom() uint32
- func (x *Networks_NetIP_PortRange) GetTo() uint32
- func (*Networks_NetIP_PortRange) ProtoMessage()
- func (x *Networks_NetIP_PortRange) ProtoReflect() protoreflect.Message
- func (x *Networks_NetIP_PortRange) Reset()
- func (x *Networks_NetIP_PortRange) String() string
- type Networks_NetIP_Transport
- func (Networks_NetIP_Transport) Descriptor() protoreflect.EnumDescriptor
- func (x Networks_NetIP_Transport) Enum() *Networks_NetIP_Transport
- func (Networks_NetIP_Transport) EnumDescriptor() ([]byte, []int)deprecated
- func (x Networks_NetIP_Transport) Number() protoreflect.EnumNumber
- func (x Networks_NetIP_Transport) String() string
- func (Networks_NetIP_Transport) Type() protoreflect.EnumType
- type Traffic
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IpAddrFamily_name = map[int32]string{ 0: "_", 1: "IPv4", 2: "IPv6", } IpAddrFamily_value = map[string]int32{ "_": 0, "IPv4": 1, "IPv6": 2, } )
Enum value maps for IpAddrFamily.
View Source
var ( Traffic_name = map[int32]string{ 0: "Undef", 1: "Ingress", 2: "Egress", } Traffic_value = map[string]int32{ "Undef": 0, "Ingress": 1, "Egress": 2, } )
Enum value maps for Traffic.
View Source
var ( Networks_NetIP_Transport_name = map[int32]string{ 0: "TCP", 1: "UDP", } Networks_NetIP_Transport_value = map[string]int32{ "TCP": 0, "UDP": 1, } )
Enum value maps for Networks_NetIP_Transport.
View Source
var File_common_ip_transport_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ICMP ¶
type ICMP struct { IPv IpAddrFamily `protobuf:"varint,1,opt,name=IPv,proto3,enum=common.IpAddrFamily" json:"IPv,omitempty"` Types []uint32 `protobuf:"varint,2,rep,packed,name=Types,proto3" json:"Types,omitempty"` // ICMP message types // contains filtered or unexported fields }
IP/ICMP protocol
func (*ICMP) Descriptor
deprecated
func (*ICMP) GetIPv ¶
func (x *ICMP) GetIPv() IpAddrFamily
func (*ICMP) ProtoMessage ¶
func (*ICMP) ProtoMessage()
func (*ICMP) ProtoReflect ¶
func (x *ICMP) ProtoReflect() protoreflect.Message
type IpAddrFamily ¶
type IpAddrFamily int32
IP Anddress family
const ( IpAddrFamily__ IpAddrFamily = 0 IpAddrFamily_IPv4 IpAddrFamily = 1 //IPv4 IpAddrFamily_IPv6 IpAddrFamily = 2 //IPv6 )
func (IpAddrFamily) Descriptor ¶
func (IpAddrFamily) Descriptor() protoreflect.EnumDescriptor
func (IpAddrFamily) Enum ¶
func (x IpAddrFamily) Enum() *IpAddrFamily
func (IpAddrFamily) EnumDescriptor
deprecated
func (IpAddrFamily) EnumDescriptor() ([]byte, []int)
Deprecated: Use IpAddrFamily.Descriptor instead.
func (IpAddrFamily) Number ¶
func (x IpAddrFamily) Number() protoreflect.EnumNumber
func (IpAddrFamily) String ¶
func (x IpAddrFamily) String() string
func (IpAddrFamily) Type ¶
func (IpAddrFamily) Type() protoreflect.EnumType
type Networks ¶
type Networks struct {
// contains filtered or unexported fields
}
Networks: represents network types
func (*Networks) Descriptor
deprecated
func (*Networks) ProtoMessage ¶
func (*Networks) ProtoMessage()
func (*Networks) ProtoReflect ¶
func (x *Networks) ProtoReflect() protoreflect.Message
type Networks_NetIP ¶
type Networks_NetIP struct { // CIDR: IP range CIDR string `protobuf:"bytes,1,opt,name=CIDR,proto3" json:"CIDR,omitempty"` // contains filtered or unexported fields }
NetIP: represents IP-Network type (L3)
func (*Networks_NetIP) Descriptor
deprecated
func (*Networks_NetIP) Descriptor() ([]byte, []int)
Deprecated: Use Networks_NetIP.ProtoReflect.Descriptor instead.
func (*Networks_NetIP) GetCIDR ¶
func (x *Networks_NetIP) GetCIDR() string
func (*Networks_NetIP) ProtoMessage ¶
func (*Networks_NetIP) ProtoMessage()
func (*Networks_NetIP) ProtoReflect ¶
func (x *Networks_NetIP) ProtoReflect() protoreflect.Message
func (*Networks_NetIP) Reset ¶
func (x *Networks_NetIP) Reset()
func (*Networks_NetIP) String ¶
func (x *Networks_NetIP) String() string
type Networks_NetIP_PortRange ¶
type Networks_NetIP_PortRange struct { // range left bound From uint32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` // range right bound To uint32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
PortRange: port [from - to] range
func (*Networks_NetIP_PortRange) Descriptor
deprecated
func (*Networks_NetIP_PortRange) Descriptor() ([]byte, []int)
Deprecated: Use Networks_NetIP_PortRange.ProtoReflect.Descriptor instead.
func (*Networks_NetIP_PortRange) GetFrom ¶
func (x *Networks_NetIP_PortRange) GetFrom() uint32
func (*Networks_NetIP_PortRange) GetTo ¶
func (x *Networks_NetIP_PortRange) GetTo() uint32
func (*Networks_NetIP_PortRange) ProtoMessage ¶
func (*Networks_NetIP_PortRange) ProtoMessage()
func (*Networks_NetIP_PortRange) ProtoReflect ¶
func (x *Networks_NetIP_PortRange) ProtoReflect() protoreflect.Message
func (*Networks_NetIP_PortRange) Reset ¶
func (x *Networks_NetIP_PortRange) Reset()
func (*Networks_NetIP_PortRange) String ¶
func (x *Networks_NetIP_PortRange) String() string
type Networks_NetIP_Transport ¶
type Networks_NetIP_Transport int32
Transport: represents net transport (L4)
const ( Networks_NetIP_TCP Networks_NetIP_Transport = 0 Networks_NetIP_UDP Networks_NetIP_Transport = 1 )
func (Networks_NetIP_Transport) Descriptor ¶
func (Networks_NetIP_Transport) Descriptor() protoreflect.EnumDescriptor
func (Networks_NetIP_Transport) Enum ¶
func (x Networks_NetIP_Transport) Enum() *Networks_NetIP_Transport
func (Networks_NetIP_Transport) EnumDescriptor
deprecated
func (Networks_NetIP_Transport) EnumDescriptor() ([]byte, []int)
Deprecated: Use Networks_NetIP_Transport.Descriptor instead.
func (Networks_NetIP_Transport) Number ¶
func (x Networks_NetIP_Transport) Number() protoreflect.EnumNumber
func (Networks_NetIP_Transport) String ¶
func (x Networks_NetIP_Transport) String() string
func (Networks_NetIP_Transport) Type ¶
func (Networks_NetIP_Transport) Type() protoreflect.EnumType
type Traffic ¶
type Traffic int32
Ingress / Egress traffic dir
func (Traffic) Descriptor ¶
func (Traffic) Descriptor() protoreflect.EnumDescriptor
func (Traffic) EnumDescriptor
deprecated
func (Traffic) Number ¶
func (x Traffic) Number() protoreflect.EnumNumber
func (Traffic) Type ¶
func (Traffic) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.