feat(workers): implement worker service add/set/remove api tags

This commit is contained in:
Haotian authored and GitHub committed 2022-07-14 10:19:03 -07:00
1 parent d5633952db
commit 28f53a64b4
15 files changed
+2354 -192

No files matched your search

+9
View File
@@ -54,6 +54,9 @@ const (
SetHostSources Type = 43
RemoveHostSources Type = 44
CreateWorkerLed Type = 45
AddWorkerTags Type = 46
SetWorkerTags Type = 47
RemoveWorkerTags Type = 48
// When adding new actions, be sure to update:
//
@@ -106,6 +109,9 @@ var Map = map[string]Type{
SetHostSources.String(): SetHostSources,
RemoveHostSources.String(): RemoveHostSources,
CreateWorkerLed.String(): CreateWorkerLed,
AddWorkerTags.String(): AddWorkerTags,
SetWorkerTags.String(): SetWorkerTags,
RemoveWorkerTags.String(): RemoveWorkerTags,
}
func (a Type) String() string {
@@ -156,6 +162,9 @@ func (a Type) String() string {
"set-host-sources",
"remove-host-sources",
"create:worker-led",
"add-worker-tags",
"set-worker-tags",
"remove-worker-tags",
}[a]
}