Documentation ¶
Index ¶
- func ConverterV2FieldsToV3(fields, objType string) string
- func ConverterV3Fields(fields, objType string) string
- func DecorateUserName(originUserName string) string
- func GeneralV2Data(data interface{}) interface{}
- func ResToV2ForAppList(respV3 string) (interface{}, error)
- func ResToV2ForAppTree(respV3 string) (interface{}, error)
- func ResToV2ForCpyHost(respV3 string) (interface{}, error)
- func ResToV2ForCustomerGroup(respV3 string, appID string) ([]common.KvMap, error)
- func ResToV2ForCustomerGroupResult(respV3 string) ([]common.KvMap, int, error)
- func ResToV2ForEnterIP(respV3 string) error
- func ResToV2ForHostDataList(respV3 string) (common.KvMap, error)
- func ResToV2ForHostGroup(respV3 string) (interface{}, error)
- func ResToV2ForHostList(respV3 string) (interface{}, error)
- func ResToV2ForModuleList(respV3 string) (interface{}, error)
- func ResToV2ForModuleMapList(respV3 string) (interface{}, error)
- func ResToV2ForPlatList(respV3 string) (interface{}, error)
- func ResToV2ForPropertyList(respV3, idName, idDisplayName string) (interface{}, error)
- func ResToV2ForRoleApp(respV3, uin string, roleArr []string) (interface{}, error)
- func ResToV2ForSetList(respV3 string) (interface{}, error)
- func ResV2ToForProcList(resDataV3 interface{}, defLang language.DefaultCCLanguageIf) interface{}
- func RespCommonResV2(resV3 []byte, resp *restful.Response)
- func RespFailV2(code int, msg string, resp *restful.Response)
- func RespSuccessV2(data interface{}, resp *restful.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConverterV2FieldsToV3 ¶
ConverterV2FieldsToV3 converter v2 field to v3
func ConverterV3Fields ¶
ConverterV3Fields converter v3 fields
func DecorateUserName ¶
DecorateUserName add suffixes to usernames to filter in roles
func GeneralV2Data ¶
func GeneralV2Data(data interface{}) interface{}
GeneralV2Data general convertor v2 funcation
func ResToV2ForAppList ¶
ResToV2ForAppList convert cc v3 json data to cc v2 for application list
func ResToV2ForAppTree ¶
ResToV2ForAppTree: convert cc v3 json data to cc v2 for topo tree
func ResToV2ForCpyHost ¶
ResToV2ForCpyHost: convert cc v3 json data to cc v2 for getCompanyIDByIps
func ResToV2ForCustomerGroup ¶
ResToV2ForCustomerGroup 将用户userApi转换成2.0的动态分组
func ResToV2ForCustomerGroupResult ¶
ResToV2ForCustomerGroupResult return list, total, error
func ResToV2ForEnterIP ¶
ResToV2ForEnterIP get enterip result for v2
func ResToV2ForHostGroup ¶
ResToV2ForHostGroup: convert cc v3 json data to cc v2 for host group
func ResToV2ForHostList ¶
ResToV2ForHostList: convert cc v3 json data to cc v2 for host
func ResToV2ForModuleList ¶
ResToV2ForModuleList: convert cc v3 json data to cc v2 for module
func ResToV2ForModuleMapList ¶
ResToV2ForModuleList: convert cc v3 json data to cc v2 for module map list
func ResToV2ForPlatList ¶
ResToV2ForPlatList: convert cc v3 json data to cc v2 for plat
func ResToV2ForPropertyList ¶
func ResToV2ForRoleApp ¶
ResToV2ForAppList: convert cc v3 json data to cc v2 for application list
func ResToV2ForSetList ¶
ResToV2ForSetList: convert cc v3 json data to cc v2 for set
func ResV2ToForProcList ¶
func ResV2ToForProcList(resDataV3 interface{}, defLang language.DefaultCCLanguageIf) interface{}
ResV2ToForProcList get process info for v2
func RespCommonResV2 ¶
func RespCommonResV2(resV3 []byte, resp *restful.Response)
RespCommonResV2 turn the result without data into version V2
func RespFailV2 ¶
RespSuccessV2 convert the result of the failed data to V2
func RespSuccessV2 ¶
func RespSuccessV2(data interface{}, resp *restful.Response)
RespSuccessV2 turn the result of successful data into V2 version
Types ¶
This section is empty.