feat(workers): implement worker service add/set/remove api tags
This commit is contained in:
1 parent
d5633952db
commit
28f53a64b4
15 files changed
+2354
-192
No files matched your search
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user