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