mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 14:51:42 +01:00
Changed Schema, so it compiles in C#
This commit is contained in:
parent
8211afd22e
commit
9fb856a4db
@ -26,6 +26,7 @@ using Rust = import "rust.capnp";
|
||||
$Rust.parentModule("schema");
|
||||
|
||||
using CSharp = import "csharp.capnp";
|
||||
$CSharp.namespace("FabAccessAPI.Schema");
|
||||
|
||||
struct FabAccess {
|
||||
permissions @0 :Permissions;
|
||||
@ -42,7 +43,7 @@ interface Machines {
|
||||
listMachines @0 () -> ( machines :List(Machine) );
|
||||
# List all machines that BFFH knows about the user has been granted at least read access on
|
||||
|
||||
getMachine @1 ( uuid :UUID ) -> ( machine :Machine );
|
||||
getMachine @1 ( uuid :UUID ) -> ( machine :Machine, dummy :UInt8 = 0 );
|
||||
# Access a particular machine by known UUID. This may fail for two reasons: The user
|
||||
# has not been granted access to know the machine exists or the machine does in fact
|
||||
# not exist. In both cases the `machine` result will be a NULL-pointer
|
||||
@ -95,7 +96,7 @@ struct Machine {
|
||||
|
||||
read @0 :Read;
|
||||
interface Read $CSharp.name("ReadInterface") {
|
||||
info @0 () -> ( minfo :MInfo );
|
||||
info @0 () -> ( minfo :MInfo, dummy :UInt8 = 0 );
|
||||
# Check the state of a machine.
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,9 @@
|
||||
using Rust = import "rust.capnp";
|
||||
$Rust.parentModule("schema");
|
||||
|
||||
using CSharp = import "csharp.capnp";
|
||||
$CSharp.namespace("FabAccessAPI.Schema");
|
||||
|
||||
struct AuthMessage {
|
||||
union {
|
||||
mechanisms @0 :List(Text);
|
||||
|
@ -25,6 +25,9 @@
|
||||
using Rust = import "rust.capnp";
|
||||
$Rust.parentModule("schema");
|
||||
|
||||
using CSharp = import "csharp.capnp";
|
||||
$CSharp.namespace("FabAccessAPI.Schema");
|
||||
|
||||
using Auth = import "auth.capnp";
|
||||
using Api = import "api.capnp";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user