api.fabaccess-api/resources.capnp

22 lines
674 B
Cap'n Proto
Raw Normal View History

2021-02-01 23:23:12 +01:00
@0xe89d197dcef9c49b;
using CSharp = import "programming_language/csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema");
2022-10-31 15:19:56 +01:00
using import "/capnp/rpc.capnp".SturdyRef;
2021-10-01 20:09:42 +02:00
using Resource = import "resource.capnp".Resource;
2021-02-01 23:23:12 +01:00
2022-10-31 15:19:56 +01:00
interface Resources {
restore @0 ( sturdy :SturdyRef ) -> ( resources :Resource );
# Restore a previously saved SturdyRef pointing to a Resource
list @1 () -> ( resources :List(Resource) );
getByUrn @2 ( urn :Text ) -> ( resource :Resource );
# Returns a NULL capability if the resource doesn't exist or an user
# doesn't have disclose permission for that resource.
getByName @3 ( name :Text ) -> ( resource :Resource );
}