Adds an Bootstrap interface

This commit is contained in:
Gregor Reitzenstein 2020-10-23 11:52:20 +02:00
parent 43aaac69a0
commit 25effe2626
2 changed files with 7 additions and 20 deletions

View File

@ -28,15 +28,6 @@ $Rust.parentModule("schema");
using CSharp = import "csharp.capnp"; using CSharp = import "csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema"); $CSharp.namespace("FabAccessAPI.Schema");
struct FabAccess {
permissions @0 :Permissions;
# Permission subsystem to manage permissions and systems underlying the authorization process
machines @1 :Machines;
# Diflouroborane stores machine¹ information in an opaque internal database. This interface is
# the only stable process of modifying that information
}
interface Machines { interface Machines {
# The interface to the machines subsystem # The interface to the machines subsystem

View File

@ -31,19 +31,15 @@ $CSharp.namespace("FabAccessAPI.Schema");
using Auth = import "auth.capnp"; using Auth = import "auth.capnp";
using Api = import "api.capnp"; using Api = import "api.capnp";
struct Message { interface Bootstrap {
union { auth @0 () -> ( auth :Auth.Authentication );
greet @0 :Greeting;
# Be polite and say hello to the other end
leave @1 :Leave; permissions @1 () -> ( permissions :Api.Permissions );
# Permission subsystem to manage permissions and systems underlying the authorization process
auth @2 :Auth.Authentication; machines @2 () -> ( machines :Api.Machines );
# Start an authenticaion exchange # Diflouroborane stores machine¹ information in an opaque internal database. This interface is
# the only stable process of modifying that information
# TODO: RPC bootstrapping
api @3 :Api.FabAccess;
}
} }
struct Greeting { struct Greeting {