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

27 lines
537 B
Plaintext
Raw Normal View History

2020-02-13 03:50:24 +03:00
|%
+$ group-path path
+$ app-name @tas
+$ app-path path
+$ resource [=app-name =app-path]
+$ associations (map [group-path 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 =metadata]
[%remove =group-path =resource]
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%update-metadata =group-path =resource =metadata]
==
2020-02-13 03:50:24 +03:00
--