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(resDataV3 metadata.InstResult) (interface{}, error)
- func ResToV2ForAppTree(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForCpyHost(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForCustomerGroup(result bool, message string, data interface{}, appID string) ([]common.KvMap, error)
- func ResToV2ForCustomerGroupResult(result bool, message string, dataInfo interface{}) ([]common.KvMap, int, error)
- func ResToV2ForEnterIP(result bool, message string, data interface{}) error
- func ResToV2ForHostDataList(result bool, message string, data interface{}) (common.KvMap, error)
- func ResToV2ForHostGroup(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForHostList(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForModuleList(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForModuleMapList(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForPlatList(result bool, message string, data interface{}) (interface{}, error)
- func ResToV2ForPropertyList(result bool, message string, data interface{}, idName, idDisplayName string) (interface{}, error)
- func ResToV2ForRoleApp(resDataV3 metadata.InstResult, uin string, roleArr []string) (interface{}, error)
- func ResToV2ForSetList(result bool, message string, data metadata.InstResult) (interface{}, error)
- func ResV2ToForProcList(resDataV3 interface{}, defLang language.DefaultCCLanguageIf) interface{}
- func RespCommonResV2(result bool, code int, message string, 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 ¶
func ResToV2ForAppList(resDataV3 metadata.InstResult) (interface{}, error)
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 ¶
func ResToV2ForCustomerGroup(result bool, message string, data interface{}, appID string) ([]common.KvMap, error)
ResToV2ForCustomerGroup
func ResToV2ForCustomerGroupResult ¶
func ResToV2ForCustomerGroupResult(result bool, message string, dataInfo interface{}) ([]common.KvMap, int, error)
ResToV2ForCustomerGroupResult return list, total, error
func ResToV2ForEnterIP ¶
ResToV2ForEnterIP get enterip result for v2
func ResToV2ForHostDataList ¶
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 ¶
func ResToV2ForRoleApp(resDataV3 metadata.InstResult, uin string, roleArr []string) (interface{}, error)
ResToV2ForAppList: convert cc v3 json data to cc v2 for application list
func ResToV2ForSetList ¶
func ResToV2ForSetList(result bool, message string, data metadata.InstResult) (interface{}, error)
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 ¶
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.