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

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

Issue 2931773004: Milo: Add machine pool info for buildbot builder view. (Closed)
Patch Set: Rebase 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
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..f008fc02e3c8ca27c8a5b0d0b9ba83a674cf2e77
--- /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 = "UnknownIdleBusyDisconnected"
+
+var _BotStatus_index = [...]uint8{0, 7, 11, 15, 27}
+
+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 | « milo/Makefile ('k') | milo/api/resp/builder.go » ('j') | milo/api/resp/builder.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698