mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 14:51:42 +01:00
Adds an Bootstrap interface
This commit is contained in:
parent
43aaac69a0
commit
25effe2626
@ -28,15 +28,6 @@ $Rust.parentModule("schema");
|
||||
using CSharp = import "csharp.capnp";
|
||||
$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 {
|
||||
# The interface to the machines subsystem
|
||||
|
||||
|
@ -31,19 +31,15 @@ $CSharp.namespace("FabAccessAPI.Schema");
|
||||
using Auth = import "auth.capnp";
|
||||
using Api = import "api.capnp";
|
||||
|
||||
struct Message {
|
||||
union {
|
||||
greet @0 :Greeting;
|
||||
# Be polite and say hello to the other end
|
||||
interface Bootstrap {
|
||||
auth @0 () -> ( auth :Auth.Authentication );
|
||||
|
||||
leave @1 :Leave;
|
||||
permissions @1 () -> ( permissions :Api.Permissions );
|
||||
# Permission subsystem to manage permissions and systems underlying the authorization process
|
||||
|
||||
auth @2 :Auth.Authentication;
|
||||
# Start an authenticaion exchange
|
||||
|
||||
# TODO: RPC bootstrapping
|
||||
api @3 :Api.FabAccess;
|
||||
}
|
||||
machines @2 () -> ( machines :Api.Machines );
|
||||
# Diflouroborane stores machine¹ information in an opaque internal database. This interface is
|
||||
# the only stable process of modifying that information
|
||||
}
|
||||
|
||||
struct Greeting {
|
||||
|
Loading…
x
Reference in New Issue
Block a user