Documentation ¶
Index ¶
- Constants
- func DetectContainerRuntime(hostMount string) (*containerutilsTypes.RuntimeConfig, error)
- type AtachableTracer
- type CapabilitiesEvent
- type ContainerActivityEvent
- type ContainerActivityEventListener
- type DnsEvent
- type EventSink
- type EventType
- type ExecveEvent
- type GadgetTracerCommon
- type GeneralEvent
- type ITracer
- type NetworkEvent
- type OpenEvent
- type PeekableTracer
- type ProcessDetails
- type RandomXEvent
- type SyscallEvent
- type Tracer
- func (t *Tracer) AddContainerActivityListener(listener ContainerActivityEventListener)
- func (t *Tracer) AddEventSink(sink EventSink)
- func (t *Tracer) GenerateContainerEventsOnStart()
- func (t *Tracer) GetListOfRunningContainers() (*[]ContainerActivityEvent, error)
- func (t *Tracer) PeekSyscallInContainer(nsMountId uint64) ([]string, error)
- func (t *Tracer) RemoveContainerActivityListener(listener ContainerActivityEventListener)
- func (t *Tracer) RemoveEventSink(sink EventSink)
- func (t *Tracer) Start() error
- func (t *Tracer) StartTraceContainer(mntns uint64, pid uint32, eventType EventType) error
- func (t *Tracer) Stop() error
- func (t *Tracer) StopTraceContainer(mntns uint64, pid uint32, eventType EventType) error
- type TracingState
Constants ¶
View Source
const ( ContainerActivityEventStart = "start" ContainerActivityEventAttached = "attached" ContainerActivityEventStop = "stop" )
Variables ¶
This section is empty.
Functions ¶
func DetectContainerRuntime ¶ added in v0.0.22
func DetectContainerRuntime(hostMount string) (*containerutilsTypes.RuntimeConfig, error)
Types ¶
type AtachableTracer ¶ added in v0.0.21
type CapabilitiesEvent ¶
type CapabilitiesEvent struct { GeneralEvent Syscall string CapabilityName string }
type ContainerActivityEvent ¶
type ContainerActivityEventListener ¶
type ContainerActivityEventListener interface { // OnContainerActivityEvent is called when a container activity event is received OnContainerActivityEvent(event *ContainerActivityEvent) }
type DnsEvent ¶
type DnsEvent struct { GeneralEvent DnsName string Addresses []string }
type EventSink ¶
type EventSink interface { // SendExecveEvent sends an execve event to the sink SendExecveEvent(event *ExecveEvent) // SendOpenEvent sends a OPEN event to the sink SendOpenEvent(event *OpenEvent) // SendCapabilitiesEvent sends a Capabilities event to the sink SendCapabilitiesEvent(event *CapabilitiesEvent) // SendDnsEvent sends a Dns event to the sink SendDnsEvent(event *DnsEvent) // SendNetworkEvent sends a Network event to the sink SendNetworkEvent(event *NetworkEvent) // SendRandomXEvent sends a RandomX event to the sink SendRandomXEvent(event *RandomXEvent) // ReportError reports an error to the sink ReportError(eventType EventType, err error) }
type ExecveEvent ¶
type ExecveEvent struct { GeneralEvent PathName string UpperLayer bool Args []string Env []string }
type GadgetTracerCommon ¶ added in v0.0.21
type GadgetTracerCommon interface {
Stop()
}
type GeneralEvent ¶ added in v0.0.14
type ITracer ¶
type ITracer interface { Start() error Stop() error AddContainerActivityListener(listener ContainerActivityEventListener) RemoveContainerActivityListener(listener ContainerActivityEventListener) PeekSyscallInContainer(nsMountId uint64) ([]string, error) AddEventSink(sink EventSink) RemoveEventSink(sink EventSink) StartTraceContainer(mntns uint64, pid uint32, eventType EventType) error StopTraceContainer(mntns uint64, pid uint32, eventType EventType) error }
type NetworkEvent ¶
type NetworkEvent struct { GeneralEvent PacketType string Protocol string Port uint16 DstEndpoint string }
type OpenEvent ¶
type OpenEvent struct { GeneralEvent TaskName string TaskId uint32 PathName string Flags []string }
type PeekableTracer ¶ added in v0.0.21
type ProcessDetails ¶ added in v0.0.25
type RandomXEvent ¶ added in v0.0.54
type RandomXEvent struct {
GeneralEvent
}
type SyscallEvent ¶ added in v0.0.19
type SyscallEvent struct { GeneralEvent Syscalls []string }
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) AddContainerActivityListener ¶
func (t *Tracer) AddContainerActivityListener(listener ContainerActivityEventListener)
func (*Tracer) AddEventSink ¶ added in v0.0.13
func (*Tracer) GenerateContainerEventsOnStart ¶ added in v0.0.22
func (t *Tracer) GenerateContainerEventsOnStart()
func (*Tracer) GetListOfRunningContainers ¶ added in v0.0.22
func (t *Tracer) GetListOfRunningContainers() (*[]ContainerActivityEvent, error)
func (*Tracer) PeekSyscallInContainer ¶
func (*Tracer) RemoveContainerActivityListener ¶
func (t *Tracer) RemoveContainerActivityListener(listener ContainerActivityEventListener)
func (*Tracer) RemoveEventSink ¶ added in v0.0.13
func (*Tracer) StartTraceContainer ¶ added in v0.0.21
type TracingState ¶ added in v0.0.21
type TracingState struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.