Documentation ¶
Index ¶
- Variables
- type Argument
- func (*Argument) Descriptor() ([]byte, []int)deprecated
- func (x *Argument) GetName() string
- func (x *Argument) GetValue() *Value
- func (x *Argument) GetValueType() ValueType
- func (*Argument) ProtoMessage()
- func (x *Argument) ProtoReflect() protoreflect.Message
- func (x *Argument) Reset()
- func (x *Argument) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetArgs() []*Argument
- func (x *Event) GetArgsNum() int64
- func (x *Event) GetCgroupID() uint64
- func (x *Event) GetContainerID() string
- func (x *Event) GetContainerImage() string
- func (x *Event) GetContainerName() string
- func (x *Event) GetEventID() int64
- func (x *Event) GetEventName() string
- func (x *Event) GetHostName() string
- func (x *Event) GetHostParentProcessID() int64
- func (x *Event) GetHostProcessID() int64
- func (x *Event) GetHostThreadID() int64
- func (x *Event) GetMountNS() int64
- func (x *Event) GetPIDNS() int64
- func (x *Event) GetParentProcessID() int64
- func (x *Event) GetPodName() string
- func (x *Event) GetPodNamespace() string
- func (x *Event) GetPodUID() string
- func (x *Event) GetProcessID() int64
- func (x *Event) GetProcessName() string
- func (x *Event) GetProcessorID() int64
- func (x *Event) GetReturnValue() int64
- func (x *Event) GetStackAddresses() []uint64
- func (x *Event) GetThreadID() int64
- func (x *Event) GetTimestamp() *timestamp.Timestamp
- func (x *Event) GetUserID() int64
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type SaFamilyT
- type Sockaddr
- func (*Sockaddr) Descriptor() ([]byte, []int)deprecated
- func (x *Sockaddr) GetSaFamily() SaFamilyT
- func (x *Sockaddr) GetSin6Addr() string
- func (x *Sockaddr) GetSin6Flowinfo() uint32
- func (x *Sockaddr) GetSin6Port() uint32
- func (x *Sockaddr) GetSin6Scopeid() uint32
- func (x *Sockaddr) GetSinAddr() string
- func (x *Sockaddr) GetSinPort() uint32
- func (x *Sockaddr) GetSunPath() string
- func (*Sockaddr) ProtoMessage()
- func (x *Sockaddr) ProtoReflect() protoreflect.Message
- func (x *Sockaddr) Reset()
- func (x *Sockaddr) String() string
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetInt32Value() int32
- func (x *Value) GetInt64Value() int64
- func (x *Value) GetSockaddrValue() *Sockaddr
- func (x *Value) GetStringArrayValue() []string
- func (x *Value) GetStringValue() string
- func (x *Value) GetUint32Value() uint32
- func (x *Value) GetUint64Value() uint64
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type ValueType
Constants ¶
This section is empty.
Variables ¶
var ( ValueType_name = map[int32]string{ 0: "UNKNOWN_VALUE_TYPE", 1: "STRING", 2: "STRING_ARRAY", 3: "UINT32", 4: "UINT64", 5: "INT32", 6: "INT64", 7: "SOCKADDR", } ValueType_value = map[string]int32{ "UNKNOWN_VALUE_TYPE": 0, "STRING": 1, "STRING_ARRAY": 2, "UINT32": 3, "UINT64": 4, "INT32": 5, "INT64": 6, "SOCKADDR": 7, } )
Enum value maps for ValueType.
var ( SaFamilyT_name = map[int32]string{ 0: "SA_FAMILY_T_UNSPEC", 1: "AF_UNIX", 2: "AF_INET", 10: "AF_INET6", } SaFamilyT_value = map[string]int32{ "SA_FAMILY_T_UNSPEC": 0, "AF_UNIX": 1, "AF_INET": 2, "AF_INET6": 10, } )
Enum value maps for SaFamilyT.
var File_pkg_rules_celsig_wrapper_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { // name is the name of this argument. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // valueType the type of the value held by this argument. ValueType ValueType `protobuf:"varint,2,opt,name=valueType,proto3,enum=wrapper.ValueType" json:"valueType,omitempty"` // value the value held by this argument. Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Argument represents an argument associated with the given Event.
func (*Argument) Descriptor
deprecated
func (*Argument) GetValueType ¶
func (*Argument) ProtoMessage ¶
func (*Argument) ProtoMessage()
func (*Argument) ProtoReflect ¶
func (x *Argument) ProtoReflect() protoreflect.Message
type Event ¶
type Event struct { Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` ProcessorID int64 `protobuf:"varint,2,opt,name=processorID,proto3" json:"processorID,omitempty"` ProcessID int64 `protobuf:"varint,3,opt,name=processID,proto3" json:"processID,omitempty"` CgroupID uint64 `protobuf:"varint,4,opt,name=cgroupID,proto3" json:"cgroupID,omitempty"` ThreadID int64 `protobuf:"varint,5,opt,name=threadID,proto3" json:"threadID,omitempty"` ParentProcessID int64 `protobuf:"varint,6,opt,name=parentProcessID,proto3" json:"parentProcessID,omitempty"` HostProcessID int64 `protobuf:"varint,7,opt,name=hostProcessID,proto3" json:"hostProcessID,omitempty"` HostThreadID int64 `protobuf:"varint,8,opt,name=hostThreadID,proto3" json:"hostThreadID,omitempty"` HostParentProcessID int64 `protobuf:"varint,9,opt,name=hostParentProcessID,proto3" json:"hostParentProcessID,omitempty"` UserID int64 `protobuf:"varint,10,opt,name=userID,proto3" json:"userID,omitempty"` MountNS int64 `protobuf:"varint,11,opt,name=mountNS,proto3" json:"mountNS,omitempty"` PIDNS int64 `protobuf:"varint,12,opt,name=PIDNS,proto3" json:"PIDNS,omitempty"` ProcessName string `protobuf:"bytes,13,opt,name=processName,proto3" json:"processName,omitempty"` HostName string `protobuf:"bytes,14,opt,name=hostName,proto3" json:"hostName,omitempty"` ContainerID string `protobuf:"bytes,15,opt,name=containerID,proto3" json:"containerID,omitempty"` ContainerImage string `protobuf:"bytes,16,opt,name=containerImage,proto3" json:"containerImage,omitempty"` ContainerName string `protobuf:"bytes,17,opt,name=containerName,proto3" json:"containerName,omitempty"` PodName string `protobuf:"bytes,18,opt,name=podName,proto3" json:"podName,omitempty"` PodNamespace string `protobuf:"bytes,19,opt,name=podNamespace,proto3" json:"podNamespace,omitempty"` PodUID string `protobuf:"bytes,20,opt,name=podUID,proto3" json:"podUID,omitempty"` EventID int64 `protobuf:"varint,21,opt,name=eventID,proto3" json:"eventID,omitempty"` EventName string `protobuf:"bytes,22,opt,name=eventName,proto3" json:"eventName,omitempty"` ArgsNum int64 `protobuf:"varint,23,opt,name=argsNum,proto3" json:"argsNum,omitempty"` ReturnValue int64 `protobuf:"varint,24,opt,name=returnValue,proto3" json:"returnValue,omitempty"` StackAddresses []uint64 `protobuf:"varint,25,rep,packed,name=stackAddresses,proto3" json:"stackAddresses,omitempty"` Args []*Argument `protobuf:"bytes,26,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func Wrap ¶
Wrap the specified protocol.Event as Event so we can use cel-go without implementing custom ref.TypeProvider.
func (*Event) Descriptor
deprecated
func (*Event) GetArgsNum ¶
func (*Event) GetCgroupID ¶
func (*Event) GetContainerID ¶
func (*Event) GetContainerImage ¶
func (*Event) GetContainerName ¶
func (*Event) GetEventID ¶
func (*Event) GetEventName ¶
func (*Event) GetHostName ¶
func (*Event) GetHostParentProcessID ¶
func (*Event) GetHostProcessID ¶
func (*Event) GetHostThreadID ¶
func (*Event) GetMountNS ¶
func (*Event) GetParentProcessID ¶
func (*Event) GetPodName ¶
func (*Event) GetPodNamespace ¶
func (*Event) GetProcessID ¶
func (*Event) GetProcessName ¶
func (*Event) GetProcessorID ¶
func (*Event) GetReturnValue ¶
func (*Event) GetStackAddresses ¶
func (*Event) GetThreadID ¶
func (*Event) GetTimestamp ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type SaFamilyT ¶
type SaFamilyT int32
func (SaFamilyT) Descriptor ¶
func (SaFamilyT) Descriptor() protoreflect.EnumDescriptor
func (SaFamilyT) EnumDescriptor
deprecated
func (SaFamilyT) Number ¶
func (x SaFamilyT) Number() protoreflect.EnumNumber
func (SaFamilyT) Type ¶
func (SaFamilyT) Type() protoreflect.EnumType
type Sockaddr ¶
type Sockaddr struct { SaFamily SaFamilyT `protobuf:"varint,1,opt,name=sa_family,json=saFamily,proto3,enum=wrapper.SaFamilyT" json:"sa_family,omitempty"` SunPath string `protobuf:"bytes,2,opt,name=sun_path,json=sunPath,proto3" json:"sun_path,omitempty"` SinAddr string `protobuf:"bytes,3,opt,name=sin_addr,json=sinAddr,proto3" json:"sin_addr,omitempty"` SinPort uint32 `protobuf:"varint,4,opt,name=sin_port,json=sinPort,proto3" json:"sin_port,omitempty"` Sin6Addr string `protobuf:"bytes,5,opt,name=sin6_addr,json=sin6Addr,proto3" json:"sin6_addr,omitempty"` Sin6Port uint32 `protobuf:"varint,6,opt,name=sin6_port,json=sin6Port,proto3" json:"sin6_port,omitempty"` Sin6Flowinfo uint32 `protobuf:"varint,7,opt,name=sin6_flowinfo,json=sin6Flowinfo,proto3" json:"sin6_flowinfo,omitempty"` Sin6Scopeid uint32 `protobuf:"varint,8,opt,name=sin6_scopeid,json=sin6Scopeid,proto3" json:"sin6_scopeid,omitempty"` // contains filtered or unexported fields }
func (*Sockaddr) Descriptor
deprecated
func (*Sockaddr) GetSaFamily ¶
func (*Sockaddr) GetSin6Addr ¶
func (*Sockaddr) GetSin6Flowinfo ¶
func (*Sockaddr) GetSin6Port ¶
func (*Sockaddr) GetSin6Scopeid ¶
func (*Sockaddr) GetSinAddr ¶
func (*Sockaddr) GetSinPort ¶
func (*Sockaddr) GetSunPath ¶
func (*Sockaddr) ProtoMessage ¶
func (*Sockaddr) ProtoMessage()
func (*Sockaddr) ProtoReflect ¶
func (x *Sockaddr) ProtoReflect() protoreflect.Message
type Value ¶
type Value struct { StringValue *string `protobuf:"bytes,1,opt,name=stringValue,proto3,oneof" json:"stringValue,omitempty"` StringArrayValue []string `protobuf:"bytes,2,rep,name=stringArrayValue,proto3" json:"stringArrayValue,omitempty"` Uint32Value *uint32 `protobuf:"varint,3,opt,name=uint32Value,proto3,oneof" json:"uint32Value,omitempty"` Uint64Value *uint64 `protobuf:"varint,4,opt,name=uint64Value,proto3,oneof" json:"uint64Value,omitempty"` Int32Value *int32 `protobuf:"varint,5,opt,name=int32Value,proto3,oneof" json:"int32Value,omitempty"` Int64Value *int64 `protobuf:"varint,6,opt,name=int64Value,proto3,oneof" json:"int64Value,omitempty"` SockaddrValue *Sockaddr `protobuf:"bytes,7,opt,name=sockaddrValue,proto3,oneof" json:"sockaddrValue,omitempty"` // contains filtered or unexported fields }
Value is a union-like structure that wraps the value of a given Argument. We are not using Oneof nor Any type because of their limitations. The Oneof type does not allow repeated values, whereas Any is not convenient to unpack structured values. A similar approach is taken by Kubernetes APIs. For example, PersistentVolumeSource holds mutually exclusive volume definitions. See https://github.com/kubernetes/api/blob/master/core/v1/generated.proto
func (*Value) Descriptor
deprecated
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) GetSockaddrValue ¶
func (*Value) GetStringArrayValue ¶
func (*Value) GetStringValue ¶
func (*Value) GetUint32Value ¶
func (*Value) GetUint64Value ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
type ValueType ¶
type ValueType int32
ValueType enumerates types of Argument values.
const ( ValueType_UNKNOWN_VALUE_TYPE ValueType = 0 ValueType_STRING ValueType = 1 ValueType_STRING_ARRAY ValueType = 2 ValueType_UINT32 ValueType = 3 ValueType_UINT64 ValueType = 4 ValueType_INT32 ValueType = 5 ValueType_INT64 ValueType = 6 // SOCKADDR is just an example of a complex type wrapped from trace.Event to Protocol Buffer message to demonstrate // CEL capabilities with more complex expressions. ValueType_SOCKADDR ValueType = 7 )
func (ValueType) Descriptor ¶
func (ValueType) Descriptor() protoreflect.EnumDescriptor
func (ValueType) EnumDescriptor
deprecated
func (ValueType) Number ¶
func (x ValueType) Number() protoreflect.EnumNumber
func (ValueType) Type ¶
func (ValueType) Type() protoreflect.EnumType