urbit/pkg/landscape/sur/graph-view.hoon

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-04-02 04:48:09 +03:00
/- *group, store=graph-store, met=metadata-store
2020-09-02 08:18:07 +03:00
/+ resource
^?
|%
2020-09-03 17:12:12 +03:00
:: $associated: A group to associate, or a policy if it is unmanaged
::
+$ associated
$% [%group rid=resource]
[%policy =policy]
==
::
2020-09-03 08:07:18 +03:00
:: $error: An error from a graph-view poke
::
:: %offline: Ship is offline
:: %bad-perms: Not permitted
:: %unknown: Anything not described above
::
+$ error
?(%offline %bad-perms %unknown)
:: $action: A semantic action on graphs
::
:: %create: Create a graph and associated metadata
:: %delete: Delete a graph
:: %join: Join a graph
:: %invite: Invite users to a graph
:: %groupify: Make graph into managed group
::
+$ action
2020-09-02 08:18:07 +03:00
$%
$: %create
rid=resource
title=@t
description=@t
2020-09-15 04:23:13 +03:00
mark=(unit mark)
2020-09-03 17:12:12 +03:00
=associated
module=@t
2020-09-02 08:18:07 +03:00
==
[%delete rid=resource]
[%leave rid=resource]
[%join rid=resource =ship]
2020-09-03 17:12:12 +03:00
::[%invite rid=resource ships=(set ship)]
[%groupify rid=resource to=(unit resource)]
[%forward rid=resource =update:store]
2020-12-11 08:51:29 +03:00
[%eval =cord]
[%pending-indices pending=(map hash:store index:store)]
2021-04-02 04:48:09 +03:00
[%create-group-feed group=resource vip=vip-metadata:met]
[%disable-group-feed group=resource]
2020-09-02 08:18:07 +03:00
==
--