Updated
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
type Metadata structMetadata holds contextual information captured at deletion time.
#Collect
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.