offical pb for remote config
This commit is contained in:
@@ -30,8 +30,6 @@ const (
|
||||
LIVE_DATACENTER
|
||||
LIVE_STORAGE
|
||||
BILL
|
||||
MINIO_SVCACC
|
||||
MINIO_SVCACC_SECRET
|
||||
NATIVE_TOOL
|
||||
)
|
||||
|
||||
@@ -59,9 +57,6 @@ var DATACENTERAPI = func() string {
|
||||
var PURCHASEAPI = func() string {
|
||||
return config.GetConfig().InternalCatalogAPI + "/purchase"
|
||||
}
|
||||
var MINIO = func() string {
|
||||
return config.GetConfig().InternalDatacenterAPI + "/minio"
|
||||
}
|
||||
|
||||
// Bind the standard API name to the data type
|
||||
var InnerDefaultAPI = [...]func() string{
|
||||
@@ -85,8 +80,6 @@ var InnerDefaultAPI = [...]func() string{
|
||||
DATACENTERAPI,
|
||||
DATACENTERAPI,
|
||||
NOAPI,
|
||||
MINIO,
|
||||
MINIO,
|
||||
CATALOGAPI,
|
||||
}
|
||||
|
||||
@@ -112,8 +105,6 @@ var Str = [...]string{
|
||||
"live_datacenter",
|
||||
"live_storage",
|
||||
"bill",
|
||||
"service_account",
|
||||
"secret",
|
||||
"native_tool",
|
||||
}
|
||||
|
||||
@@ -170,6 +161,8 @@ const (
|
||||
PB_PLANNER
|
||||
PB_CLOSE_PLANNER
|
||||
PB_CONSIDERS
|
||||
PB_ADMIRALTY_CONFIG
|
||||
PB_MINIO_CONFIG
|
||||
NONE
|
||||
)
|
||||
|
||||
@@ -191,12 +184,16 @@ func GetActionString(ss string) PubSubAction {
|
||||
return PB_CLOSE_PLANNER
|
||||
case "considers":
|
||||
return PB_CONSIDERS
|
||||
case "admiralty_config":
|
||||
return PB_ADMIRALTY_CONFIG
|
||||
case "minio_config":
|
||||
return PB_MINIO_CONFIG
|
||||
default:
|
||||
return NONE
|
||||
}
|
||||
}
|
||||
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner", "considers"}
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner", "considers", "admiralty_config", "minio_config"}
|
||||
|
||||
func (m PubSubAction) String() string {
|
||||
return strings.ToUpper(path[m])
|
||||
|
||||
Reference in New Issue
Block a user