collect

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stub

func Stub(machineUUID string, scanSeq int) payload.V1

Stub builds a v1 payload (listeners include firewall_rule; other blocks optional).

func StubWithObserver

func StubWithObserver(ctx context.Context, machineUUID string, scanSeq int, observe ActionEventObserver) (payload.V1, error)

StubWithObserver builds a v1 payload and calls observe before each data collection action. Pass a cancellable context (e.g. signal.NotifyContext) to abort a long scan; returns ctx.Err() when cancelled between steps.

Types

type ActionEvent

type ActionEvent struct {
	Action string
	Phase  string
	Items  int
	Error  string
}

type ActionEventObserver

type ActionEventObserver func(event ActionEvent)

Directories

Path Synopsis
Package container collects §6 container_and_cloud_native_linux data.
Package container collects §6 container_and_cloud_native_linux data.
Package security implements §9 security frameworks and malware-defense inventory (Lynis-aligned).
Package security implements §9 security frameworks and malware-defense inventory (Lynis-aligned).
ftp
Package ftp collects bounded security posture for FTP servers (vsftpd, ProFTPD, Pure-FTPd).
Package ftp collects bounded security posture for FTP servers (vsftpd, ProFTPD, Pure-FTPd).
mongodb
Package mongodb collects bounded security posture for MongoDB servers.
Package mongodb collects bounded security posture for MongoDB servers.
redis
Package redis collects bounded security posture for Redis/Valkey servers.
Package redis collects bounded security posture for Redis/Valkey servers.

Jump to

Keyboard shortcuts

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