PB -> ADMIRALTY + MINIO
This commit is contained in:
@@ -172,7 +172,6 @@ const (
|
|||||||
PB_ADMIRALTY_CONFIG
|
PB_ADMIRALTY_CONFIG
|
||||||
PB_MINIO_CONFIG
|
PB_MINIO_CONFIG
|
||||||
PB_CLOSE_SEARCH
|
PB_CLOSE_SEARCH
|
||||||
PB_ARGO_KUBE_EVENT
|
|
||||||
NONE
|
NONE
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -200,15 +199,13 @@ func GetActionString(ss string) PubSubAction {
|
|||||||
return PB_MINIO_CONFIG
|
return PB_MINIO_CONFIG
|
||||||
case "close_search":
|
case "close_search":
|
||||||
return PB_CLOSE_SEARCH
|
return PB_CLOSE_SEARCH
|
||||||
case "argo_kube_event":
|
|
||||||
return PB_ARGO_KUBE_EVENT
|
|
||||||
default:
|
default:
|
||||||
return NONE
|
return NONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner",
|
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner",
|
||||||
"considers", "admiralty_config", "minio_config", "close_search", "argo_kube_event"}
|
"considers", "admiralty_config", "minio_config", "close_search"}
|
||||||
|
|
||||||
func (m PubSubAction) String() string {
|
func (m PubSubAction) String() string {
|
||||||
return strings.ToUpper(path[m])
|
return strings.ToUpper(path[m])
|
||||||
|
|||||||
Reference in New Issue
Block a user