urbit/pkg/arvo/sur/metadata-store.hoon

34 lines
825 B
Plaintext
Raw Normal View History

2021-01-12 07:26:19 +03:00
/- *resource
2020-02-13 03:50:24 +03:00
|%
2021-01-12 07:26:19 +03:00
::
+$ group-path path
+$ app-name term
+$ app-path path
2021-01-12 07:26:19 +03:00
+$ md-resource [=app-name =resource]
+$ association [group=resource =metadata]
+$ associations (map md-resource association)
2020-02-13 03:50:24 +03:00
::
+$ color @ux
2020-02-13 03:50:24 +03:00
+$ metadata
$: title=cord
description=cord
=color
date-created=time
creator=ship
module=term
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-action
2021-01-12 07:26:19 +03:00
$% [%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)]
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%updated-metadata group=resource resource=md-resource before=metadata =metadata]
==
2020-02-13 03:50:24 +03:00
--