Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: common/api/dm/distributor/distributor.proto

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/cmd/dm/static/dummy.go ('k') | common/api/dm/distributor/distributor.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/api/dm/distributor/distributor.proto
diff --git a/common/api/dm/distributor/distributor.proto b/common/api/dm/distributor/distributor.proto
new file mode 100644
index 0000000000000000000000000000000000000000..7cbdb0a0d92aadf578a7bbceeb47e5e3e3b67be0
--- /dev/null
+++ b/common/api/dm/distributor/distributor.proto
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto3";
+
+package distributor;
+
+message Alias {
+ string other_config = 1;
+}
+
+message Distributor {
+ reserved 2; // future: generic pRPC based distributor
+ reserved 3; // future: generic gRPC based distributor
+
+ reserved 4; // future swarming_v1 distributor
+ reserved 2048; // future jobsim distributor
+
+ // TODO(iannucci): Maybe something like Any or extensions would be a better
+ // fit here? The ultimate goal is that users will be able to use the proto
+ // text format for luci-config. I suspect that Any or extensions would lose
+ // the ability to validate such text-formatted protobufs, but maybe that's
+ // not the case.
+ oneof distributor_type {
+ Alias alias = 1;
+ }
+}
+
+message Config {
+ map<string, Distributor> distributor_configs = 1;
+}
« no previous file with comments | « appengine/cmd/dm/static/dummy.go ('k') | common/api/dm/distributor/distributor.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698