Documentation
¶
Overview ¶
Package debian is the sensor for Debian-family hosts (Debian, Ubuntu, Kali and derivatives). It reads the dpkg database directly, in pure Go, so it needs no subprocess, no root, and works unchanged against a host filesystem mounted into a container.
It reports one thing: which crypto-relevant packages are installed (evidence rung `present`, method debian.dpkg.status, authoritative). It says nothing about what those packages can do: that is knowledge, applied later by internal/derive from internal/knowledge.
Index ¶
Constants ¶
const ( // Name is the sensor's registry name. It is "apt" (not "debian") so existing // plugins.enabled / plugins.disabled configuration keeps working. Name = "apt" // Version is the version of this sensor's behaviour. Version = "0.2.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sensor ¶
type Sensor struct {
// contains filtered or unexported fields
}
Sensor implements sense.Sensor for dpkg-managed hosts.
func (*Sensor) Collect ¶
Collect reads the dpkg database and returns a `present` observation for every installed crypto-relevant package.