saferm v0.2.0 /internal/meta
On this page

API reference for the meta package — collects environment variables, git context, parent process info, and user-supplied key-value pairs for each deletion.

#internal/meta

#internal/meta

Package meta collects rich metadata about each deletion: environment variables, git repository context, parent process information, and arbitrary user-supplied key-value pairs.

#Metadata

Go go
type Metadata struct

Metadata holds contextual information captured at deletion time.

#Collect

Go go
func Collect(cfg *config.Config, customMeta map[string]string) (*Metadata, error)

Collect gathers metadata from the current environment. Never fails fatally -- if a collector errors, it populates what it can.