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

35 lines
805 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]
2021-01-13 07:50:37 +03:00
[%initial-group group=resource =associations]
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
--