Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kloudlens
command
Command kloudlens is the node-local orchestrator.
|
Command kloudlens is the node-local orchestrator. |
|
internal
|
|
|
admin
Package admin implements the klctl ↔ kloudlens control plane .
|
Package admin implements the klctl ↔ kloudlens control plane . |
|
bpf2frame
Package bpf2frame decodes raw BPF ring-buffer records into typed Frame values.
|
Package bpf2frame decodes raw BPF ring-buffer records into typed Frame values. |
|
bpf2frame/frametest
Package frametest exposes raw-frame builders used by unit tests across the sensor and bpf2frame packages.
|
Package frametest exposes raw-frame builders used by unit tests across the sensor and bpf2frame packages. |
|
correlation
Package correlation implements five user-space detection heuristics.
|
Package correlation implements five user-space detection heuristics. |
|
downgrade
Package downgrade implements the adaptive downgrade controller from It watches ring buffer usage and moves the agent through four levels: Normal → Sampled → HeavilySampled → CriticalOnly, emitting an audit hook on every transition.
|
Package downgrade implements the adaptive downgrade controller from It watches ring buffer usage and moves the agent through four levels: Normal → Sampled → HeavilySampled → CriticalOnly, emitting an audit hook on every transition. |
|
exporter
Package exporter ships IntentEvents off-node.
|
Package exporter ships IntentEvents off-node. |
|
graph
Package graph implements the node-local session graph.
|
Package graph implements the node-local session graph. |
|
history
Package history implements the Historical Context Ring
|
Package history implements the Historical Context Ring |
|
hookprobe
Package caps implements Capability Discovery: probe the running kernel for syscall tracepoints, BPF-LSM hook availability, kprobe-capable symbols, and BPF helper support.
|
Package caps implements Capability Discovery: probe the running kernel for syscall tracepoints, BPF-LSM hook availability, kprobe-capable symbols, and BPF helper support. |
|
hookprobe/publisher
Package publisher writes the agent's CapabilityReport to a cluster-scoped NodeCapability CR (kloudlens.io/v1).
|
Package publisher writes the agent's CapabilityReport to a cluster-scoped NodeCapability CR (kloudlens.io/v1). |
|
intent
Package intent implements the Intent Aggregator.
|
Package intent implements the Intent Aggregator. |
|
lineage
Package lineage resolves a process's ancestor chain by walking /proc.
|
Package lineage resolves a process's ancestor chain by walking /proc. |
|
metrics
Package metrics exposes KloudLens runtime counters on a Prometheus-style /metrics endpoint: ringbuf_usage_ratio, ringbuf_lost_total, coalesce_ratio, intern_hit_ratio, adaptive_level, overflow_summary_total, path_resolve_miss_total, capability_info, hook_available, wal_overflow_total.
|
Package metrics exposes KloudLens runtime counters on a Prometheus-style /metrics endpoint: ringbuf_usage_ratio, ringbuf_lost_total, coalesce_ratio, intern_hit_ratio, adaptive_level, overflow_summary_total, path_resolve_miss_total, capability_info, hook_available, wal_overflow_total. |
|
path
Package path implements full path resolution.
|
Package path implements full path resolution. |
|
peers
Package peermatch tracks listening sockets per container on this node so the Session Graph can resolve a connect destination to its owning container — turning an opaque "peer:10.0.0.5:8080" leaf into a typed cross-container edge.
|
Package peermatch tracks listening sockets per container on this node so the Session Graph can resolve a connect destination to its owning container — turning an opaque "peer:10.0.0.5:8080" leaf into a typed cross-container edge. |
|
policy
Package policy implements the HookSubscription YAML loader, selector matcher, and graceful fallback resolution against a CapabilityReport.
|
Package policy implements the HookSubscription YAML loader, selector matcher, and graceful fallback resolution against a CapabilityReport. |
|
sensor
Package sensor is the kernel-facing event source.
|
Package sensor is the kernel-facing event source. |
|
wal
Package wal implements a bounded append-only write-ahead log for the agent's in-flight IntentEvent stream.
|
Package wal implements a bounded append-only write-ahead log for the agent's in-flight IntentEvent stream. |
|
pkg
|
|
|
baseline
Package baseline implements the Behavioral Baseline engine.
|
Package baseline implements the Behavioral Baseline engine. |
|
contract
Package contract implements the Behavior Contract IR and Gap Analysis engine.
|
Package contract implements the Behavior Contract IR and Gap Analysis engine. |
|
enricher
Package enricher maps (pidNS, mntNS) → ContainerMeta by scanning /proc and (when available) consulting the node's CRI runtime.
|
Package enricher maps (pidNS, mntNS) → ContainerMeta by scanning /proc and (when available) consulting the node's CRI runtime. |
|
policyspec
Package policyspec is a thin public façade over the internal policy loaders so out-of-tree callers (klctl, CI linters, IDE plugins) can validate KloudLens policy YAML without an agent running.
|
Package policyspec is a thin public façade over the internal policy loaders so out-of-tree callers (klctl, CI linters, IDE plugins) can validate KloudLens policy YAML without an agent running. |
|
types
Package types defines the on-wire data model shared by tracer, enricher, exporter, and klctl.
|
Package types defines the on-wire data model shared by tracer, enricher, exporter, and klctl. |
|
tests
|
|
|
e2e
Package e2e drives end-to-end tests against the kloudlens binary: compile the daemon, spawn it (under sudo where eBPF is needed), drive deterministic syscalls in a child, and assert the JSONL stream carries the expected IntentEvents.
|
Package e2e drives end-to-end tests against the kloudlens binary: compile the daemon, spawn it (under sudo where eBPF is needed), drive deterministic syscalls in a child, and assert the JSONL stream carries the expected IntentEvents. |
Click to show internal directories.
Click to hide internal directories.