common

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use ICMP.ProtoReflect.Descriptor instead.

func (*ICMP) GetIPv

func (x *ICMP) GetIPv() IpAddrFamily

func (*ICMP) GetTypes

func (x *ICMP) GetTypes() []uint32

func (*ICMP) ProtoMessage

func (*ICMP) ProtoMessage()

func (*ICMP) ProtoReflect

func (x *ICMP) ProtoReflect() protoreflect.Message

func (*ICMP) Reset

func (x *ICMP) Reset()

func (*ICMP) String

func (x *ICMP) String() string

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) Enum

func (x IpAddrFamily) Enum() *IpAddrFamily

func (IpAddrFamily) EnumDescriptor deprecated

func (IpAddrFamily) EnumDescriptor() ([]byte, []int)

Deprecated: Use IpAddrFamily.Descriptor instead.

func (IpAddrFamily) Number

func (IpAddrFamily) String

func (x IpAddrFamily) String() string

func (IpAddrFamily) Type

type Networks

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

Networks: represents network types

func (*Networks) Descriptor deprecated

func (*Networks) Descriptor() ([]byte, []int)

Deprecated: Use Networks.ProtoReflect.Descriptor instead.

func (*Networks) ProtoMessage

func (*Networks) ProtoMessage()

func (*Networks) ProtoReflect

func (x *Networks) ProtoReflect() protoreflect.Message

func (*Networks) Reset

func (x *Networks) Reset()

func (*Networks) String

func (x *Networks) String() string

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) Enum

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 (Networks_NetIP_Transport) String

func (x Networks_NetIP_Transport) String() string

func (Networks_NetIP_Transport) Type

type Traffic

type Traffic int32

Ingress / Egress traffic dir

const (
	Traffic_Undef   Traffic = 0 // undefined tfaffic direction
	Traffic_Ingress Traffic = 1 // Ingress
	Traffic_Egress  Traffic = 2 // Egress
)

func (Traffic) Descriptor

func (Traffic) Descriptor() protoreflect.EnumDescriptor

func (Traffic) Enum

func (x Traffic) Enum() *Traffic

func (Traffic) EnumDescriptor deprecated

func (Traffic) EnumDescriptor() ([]byte, []int)

Deprecated: Use Traffic.Descriptor instead.

func (Traffic) Number

func (x Traffic) Number() protoreflect.EnumNumber

func (Traffic) String

func (x Traffic) String() string

func (Traffic) Type

func (Traffic) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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