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";
|
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
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user