Backup lines are derived from each module's data section instead of written by hand; the holder measures declared items, reads the array under them, and deletes a retired item only after a last restore point; the Go providers say each held consumer's size so an empty replacement is seen.
53 lines
869 B
JSON
53 lines
869 B
JSON
{
|
|
"module": "audit-logger",
|
|
"version": "1",
|
|
"slug": "audit",
|
|
"consumes": [
|
|
"**"
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"index.js"
|
|
],
|
|
"loads": [
|
|
"index.js"
|
|
],
|
|
"env": {
|
|
"AUDIT_LOG": "${dir:trail}/audit.log"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": {
|
|
"own": [
|
|
{
|
|
"id": "trail",
|
|
"path": "${dir:trail}",
|
|
"class": "valuable",
|
|
"why": "the audit trail, written nowhere else"
|
|
}
|
|
]
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "trail",
|
|
"type": "directory",
|
|
"mode": "0700"
|
|
}
|
|
],
|
|
"capabilities": [
|
|
"container-runtime"
|
|
]
|
|
}
|