collect

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 16 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 security implements §9 security frameworks and malware-defense inventory (Lynis-aligned).
Package security implements §9 security frameworks and malware-defense inventory (Lynis-aligned).

Jump to

Keyboard shortcuts

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