discoverer

package
v0.0.0-...-ffcaa87 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCgroupIdByPath

func GetCgroupIdByPath(filepath string) (uint64, error)

Types

type CgroupData

type CgroupData struct {
	CgroupPath string
	CgroupID   CgroupID
}

type CgroupID

type CgroupID uint64

type ContainerID

type ContainerID string

type InternalEventsDiscoverer

type InternalEventsDiscoverer interface {
	Start() error
	CgroupsInfo() *lru.Cache[CgroupID, ContainerID]
	ContainersInfo() *lru.Cache[ContainerID, CgroupData]
	TargetCgroup(cgroupId uint64)
	UntargetCgroup(cgroupId uint64)
}

func NewInternalEventsDiscoverer

func NewInternalEventsDiscoverer(procfs string, bpfObjects *bpf.BpfObjects) InternalEventsDiscoverer

type InternalEventsDiscovererImpl

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

func (*InternalEventsDiscovererImpl) CgroupsInfo

func (*InternalEventsDiscovererImpl) ContainersInfo

func (*InternalEventsDiscovererImpl) Start

func (*InternalEventsDiscovererImpl) TargetCgroup

func (e *InternalEventsDiscovererImpl) TargetCgroup(cgroupId uint64)

func (*InternalEventsDiscovererImpl) UntargetCgroup

func (e *InternalEventsDiscovererImpl) UntargetCgroup(cgroupId uint64)

type RuntimeId

type RuntimeId int

func GetContainerIdFromCgroupPath

func GetContainerIdFromCgroupPath(cgroupPath string) (id string, runtime RuntimeId)

Borrowed from https://github.com/aquasecurity/tracee/blob/main/pkg/containers/containers.go

Jump to

Keyboard shortcuts

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