urbit/pkg/arvo/sur/metadata-store.hoon
2021-01-14 11:12:48 +10:00

37 lines
837 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
+$ url @t
+$ metadata
$: title=cord
description=cord
=color
date-created=time
creator=ship
module=term
picture=url
==
::
+$ 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 =associations]
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%updated-metadata group=resource resource=md-resource before=metadata =metadata]
==
--