summaryrefslogtreecommitdiff
path: root/proto/jobs/v1beta/jobs.proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto/jobs/v1beta/jobs.proto')
-rw-r--r--proto/jobs/v1beta/jobs.proto45
1 files changed, 45 insertions, 0 deletions
diff --git a/proto/jobs/v1beta/jobs.proto b/proto/jobs/v1beta/jobs.proto
new file mode 100644
index 00000000..68d2ed97
--- /dev/null
+++ b/proto/jobs/v1beta/jobs.proto
@@ -0,0 +1,45 @@
+syntax = "proto3";
+
+package jobs.v1beta;
+option go_package = "./;jobsv1beta";
+
+// single job request
+message PushRequest {
+ Job job = 1;
+}
+
+// batch jobs request
+message PushBatchRequest {
+ repeated Job jobs = 1;
+}
+
+// request to pause/resume/list/Destroy
+message Pipelines {
+ repeated string pipelines = 1;
+}
+
+// some endpoints receives nothing
+// all endpoints returns nothing, except error
+message Empty {}
+
+message DeclareRequest {
+ map<string, string> pipeline = 1;
+}
+
+message Job {
+ string job = 1;
+ string id = 2;
+ string payload = 3;
+ map<string, HeaderValue> headers = 4;
+ Options options = 5;
+}
+
+message Options {
+ int64 priority = 1;
+ string pipeline = 2;
+ int64 delay = 3;
+}
+
+message HeaderValue {
+ repeated string value = 1;
+}