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

Unified Diff: go/src/infra/crimson/proto/crimson.proto

Issue 2108643006: crimson server: Implemented SelectHost and InsertHost (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@mactohex
Patch Set: Added NULL support for boot class 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 | « no previous file | go/src/infra/crimson/proto/crimson.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/crimson/proto/crimson.proto
diff --git a/go/src/infra/crimson/proto/crimson.proto b/go/src/infra/crimson/proto/crimson.proto
index 4a2e6bb2f64af2876c759b6f595b87b14acd0292..08b41b0649ec1a0d719ae1ca792a419dfb8ddc86 100644
--- a/go/src/infra/crimson/proto/crimson.proto
+++ b/go/src/infra/crimson/proto/crimson.proto
@@ -9,6 +9,9 @@ package crimson;
service Crimson {
rpc CreateIPRange (IPRange) returns (IPRangeStatus) {}
rpc ReadIPRange (IPRangeQuery) returns (IPRanges) {}
+
+ rpc CreateHost (HostList) returns (HostStatus) {}
+ rpc ReadHost (HostQuery) returns (HostList) {}
}
message IPRanges {
@@ -32,3 +35,26 @@ message IPRangeQuery {
uint32 limit = 3;
string ip = 4;
}
+
+message Host {
+ string site = 1;
+ string hostname = 2;
+ string mac_addr = 3;
+ string ip = 4;
+ string boot_class = 5;
+}
+
+message HostList {
+ repeated Host hosts = 1;
+}
+
+message HostStatus { }
+
+message HostQuery {
+ uint32 limit = 1;
+ string site = 2;
+ string hostname = 3;
+ string mac_addr = 4;
+ string ip = 5;
+ string boot_class = 6;
+}
« no previous file with comments | « no previous file | go/src/infra/crimson/proto/crimson.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698