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

27 lines
573 B
Plaintext
Raw Normal View History

2020-02-13 03:50:24 +03:00
|%
+$ group-path path
+$ app-name @tas
+$ app-path path
2020-06-24 03:28:57 +03:00
+$ md-resource [=app-name =app-path]
+$ associations (map [group-path md-resource] metadata)
2020-02-13 03:50:24 +03:00
::
+$ metadata
$: title=@t
description=@t
color=@ux
date-created=@da
creator=@p
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-action
$% [%add =group-path resource=md-resource =metadata]
[%remove =group-path resource=md-resource]
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%update-metadata =group-path resource=md-resource =metadata]
==
2020-02-13 03:50:24 +03:00
--