debian

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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 New

func New(env sense.Env) *Sensor

New returns a sensor reading the host described by env.

func (*Sensor) Collect

func (s *Sensor) Collect(ctx context.Context) (evidence.Batch, error)

Collect reads the dpkg database and returns a `present` observation for every installed crypto-relevant package.

func (*Sensor) Detect

func (s *Sensor) Detect(context.Context) (bool, error)

Detect reports whether a dpkg database exists on the host.

func (*Sensor) Info

func (*Sensor) Info() sense.Info

Info implements sense.Sensor.

Jump to

Keyboard shortcuts

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