mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
31 lines
737 B
Cap'n Proto
31 lines
737 B
Cap'n Proto
@0xc2cbd510f16dab57;
|
|
|
|
interface LaminarCi {
|
|
|
|
queue @0 (jobName :Text, params :List(JobParam)) -> (result :MethodResult);
|
|
start @1 (jobName :Text, params :List(JobParam)) -> (result :MethodResult, buildNum :UInt32);
|
|
run @2 (jobName :Text, params :List(JobParam)) -> (result :JobResult, buildNum :UInt32);
|
|
set @3 (jobName :Text, buildNum :UInt32, param :JobParam) -> (result :MethodResult);
|
|
lock @4 (lockName :Text) -> ();
|
|
release @5 (lockName :Text) -> ();
|
|
|
|
struct JobParam {
|
|
name @0 :Text;
|
|
value @1 :Text;
|
|
}
|
|
|
|
enum MethodResult {
|
|
failed @0;
|
|
success @1;
|
|
}
|
|
|
|
enum JobResult {
|
|
unknown @0;
|
|
failed @1;
|
|
aborted @2;
|
|
success @3;
|
|
}
|
|
|
|
}
|
|
|