2017-06-06 18:01:18 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
message Op {
|
2017-06-09 01:16:19 +00:00
|
|
|
repeated Input inputs = 1;
|
2017-06-06 18:01:18 +00:00
|
|
|
oneof op {
|
|
|
|
ExecOp exec = 2;
|
|
|
|
SourceOp source = 3;
|
|
|
|
CopyOp copy = 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-09 01:16:19 +00:00
|
|
|
message Input {
|
|
|
|
string digest = 1;
|
|
|
|
int64 index = 2;
|
|
|
|
}
|
|
|
|
|
2017-06-06 18:01:18 +00:00
|
|
|
message ExecOp {
|
|
|
|
Meta meta = 1;
|
|
|
|
repeated Mount mounts = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Meta {
|
|
|
|
repeated string args = 1;
|
|
|
|
repeated string env = 2;
|
|
|
|
string cwd = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mount {
|
|
|
|
int64 input = 1;
|
|
|
|
string selector = 2;
|
|
|
|
string dest = 3;
|
|
|
|
int64 output = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CopyOp {
|
|
|
|
repeated CopySource src = 1;
|
|
|
|
string dest = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CopySource {
|
|
|
|
int64 input = 1;
|
|
|
|
string selector = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SourceOp {
|
|
|
|
string identifier = 1;
|
|
|
|
}
|