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

Unified Diff: milo/api/resp/botstatus_string.go

Issue 2931773004: Milo: Add machine pool info for buildbot builder view. (Closed)
Patch Set: Review Created 3 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 | milo/api/resp/builder.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/api/resp/botstatus_string.go
diff --git a/milo/api/resp/botstatus_string.go b/milo/api/resp/botstatus_string.go
new file mode 100644
index 0000000000000000000000000000000000000000..5aaa83c6ece9542d2b4ab4d046bb4fed73cf75de
--- /dev/null
+++ b/milo/api/resp/botstatus_string.go
@@ -0,0 +1,16 @@
+// Code generated by "stringer -type=BotStatus"; DO NOT EDIT.
+
+package resp
+
+import "fmt"
+
+const _BotStatus_name = "UnknownStatusIdleBusyDisconnected"
+
+var _BotStatus_index = [...]uint8{0, 13, 17, 21, 33}
+
+func (i BotStatus) String() string {
+ if i < 0 || i >= BotStatus(len(_BotStatus_index)-1) {
+ return fmt.Sprintf("BotStatus(%d)", i)
+ }
+ return _BotStatus_name[_BotStatus_index[i]:_BotStatus_index[i+1]]
+}
« no previous file with comments | « no previous file | milo/api/resp/builder.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698