shrub/pkg/arvo/sur/metadata-store.hoon
Liam Fitzgerald d724e933b3
metadata-store: move to 1-1 mapping between groups and resources
Most of userspace already makes this assumption, but it was never
reflected in metadata-store itself.
2021-01-13 13:50:04 +10:00

34 lines
825 B
Plaintext

/- *resource
|%
::
+$ group-path path
+$ app-name term
+$ app-path path
+$ md-resource [=app-name =resource]
+$ association [group=resource =metadata]
+$ associations (map md-resource association)
::
+$ color @ux
+$ metadata
$: title=cord
description=cord
=color
date-created=time
creator=ship
module=term
==
::
+$ metadata-action
$% [%add group=resource resource=md-resource =metadata]
[%remove group=resource resource=md-resource]
[%update group=resource resource=md-resource =metadata]
[%initial-group group=resource resources=(map md-resource metadata)]
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%updated-metadata group=resource resource=md-resource before=metadata =metadata]
==
--