Documentation ¶
Index ¶
- type Service
- func (cli *Service) CreateClassification(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateInstObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateObjectAssociation(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateObjectAtt(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateObjectIntoDB(objType string, input interface{}, idName *string) (int, error)
- func (cli *Service) CreatePropertyGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateRolePri(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateUserGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) CreateUserGroupPrivi(req *restful.Request, resp *restful.Response)
- func (cli *Service) DelObjByCondition(objType string, condition interface{}) error
- func (cli *Service) DeleteClassification(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteInstObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteObjectAssociation(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteObjectAttByID(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeletePropertyGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeletePropertyGroupObjectAtt(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteSetHost(req *restful.Request, resp *restful.Response)
- func (cli *Service) DeleteUserGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) GetCntByCondition(objType string, condition interface{}) (int, error)
- func (cli *Service) GetHostByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error
- func (cli *Service) GetIdleModule(appID interface{}, ownerID string) (interface{}, interface{}, error)
- func (cli *Service) GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, ...) error
- func (cli *Service) GetObjectByID(objType string, fields []string, id int, result interface{}, sort string) error
- func (cli *Service) GetProcessesByModuleName(req *restful.Request, resp *restful.Response)
- func (cli *Service) GetRolePri(req *restful.Request, resp *restful.Response)
- func (cli *Service) GetSystemFlag(req *restful.Request, resp *restful.Response)
- func (cli *Service) GetUserGroupPrivi(req *restful.Request, resp *restful.Response)
- func (s *Service) Healthz(req *restful.Request, resp *restful.Response)
- func (cli *Service) SearchIdentifier(req *restful.Request, resp *restful.Response)
- func (cli *Service) SearchInstObjects(req *restful.Request, resp *restful.Response)
- func (cli *Service) SearchTopoGraphics(req *restful.Request, resp *restful.Response)
- func (cli *Service) SearchUserGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectClassificationWithObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectClassifications(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectObjectAssociations(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectObjectAttByID(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectObjectAttWithParams(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectObjects(req *restful.Request, resp *restful.Response)
- func (cli *Service) SelectPropertyGroupByObjectID(req *restful.Request, resp *restful.Response)
- func (cli *Service) TranslateClassificationName(defLang language.DefaultCCLanguageIf, att *meta.Classification) string
- func (cli *Service) TranslateDescription(defLang language.DefaultCCLanguageIf, att *meta.Attribute) string
- func (cli *Service) TranslateEnumName(defLang language.DefaultCCLanguageIf, att *meta.Attribute, val interface{}) interface{}
- func (cli *Service) TranslateInstName(defLang language.DefaultCCLanguageIf, obj *meta.Object) string
- func (cli *Service) TranslateObjectName(defLang language.DefaultCCLanguageIf, obj *meta.Object) string
- func (cli *Service) TranslatePropertyGroupName(defLang language.DefaultCCLanguageIf, att *meta.Group) string
- func (cli *Service) TranslatePropertyName(defLang language.DefaultCCLanguageIf, att *meta.Attribute) string
- func (cli *Service) UpdateClassification(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateInstObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateObjByCondition(objType string, data interface{}, condition interface{}) error
- func (cli *Service) UpdateObject(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateObjectAssociation(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateObjectAttByID(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdatePropertyGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdatePropertyGroupObjectAtt(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateRolePri(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateTopoGraphics(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateUserGroup(req *restful.Request, resp *restful.Response)
- func (cli *Service) UpdateUserGroupPrivi(req *restful.Request, resp *restful.Response)
- func (s *Service) WebService() *restful.WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) CreateClassification ¶
func (cli *Service) CreateClassification(req *restful.Request, resp *restful.Response)
CreateClassification create object's classification
func (*Service) CreateInstObject ¶
func (cli *Service) CreateInstObject(req *restful.Request, resp *restful.Response)
CreateInstObject CreateInstObject
func (*Service) CreateObject ¶
func (cli *Service) CreateObject(req *restful.Request, resp *restful.Response)
CreateObject create a common object
func (*Service) CreateObjectAssociation ¶
func (cli *Service) CreateObjectAssociation(req *restful.Request, resp *restful.Response)
CreateObjectAssociation create object association map
func (*Service) CreateObjectAtt ¶
func (cli *Service) CreateObjectAtt(req *restful.Request, resp *restful.Response)
CreateObjectAtt create object's attribute
func (*Service) CreateObjectIntoDB ¶
func (cli *Service) CreateObjectIntoDB(objType string, input interface{}, idName *string) (int, error)
CreateObjectIntoDB add new object
func (*Service) CreatePropertyGroup ¶
CreatePropertyGroup to create property group
func (*Service) CreateRolePri ¶
func (cli *Service) CreateRolePri(req *restful.Request, resp *restful.Response)
CreateRolePri create role privilege
func (*Service) CreateUserGroup ¶
func (cli *Service) CreateUserGroup(req *restful.Request, resp *restful.Response)
CreateUserGroup create group
func (*Service) CreateUserGroupPrivi ¶
func (cli *Service) CreateUserGroupPrivi(req *restful.Request, resp *restful.Response)
CreateUserGroupPrivi create group privi
func (*Service) DelObjByCondition ¶
func (*Service) DeleteClassification ¶
func (cli *Service) DeleteClassification(req *restful.Request, resp *restful.Response)
DeleteClassification delete object's classification
func (*Service) DeleteInstObject ¶
func (cli *Service) DeleteInstObject(req *restful.Request, resp *restful.Response)
DeleteInstObject DeleteInstObject
func (*Service) DeleteObject ¶
func (cli *Service) DeleteObject(req *restful.Request, resp *restful.Response)
删除Object
func (*Service) DeleteObjectAssociation ¶
func (cli *Service) DeleteObjectAssociation(req *restful.Request, resp *restful.Response)
DeleteObjectAssociation delete object association map
func (*Service) DeleteObjectAttByID ¶
func (cli *Service) DeleteObjectAttByID(req *restful.Request, resp *restful.Response)
DeleteObjectAttByID delete object's attribute by id
func (*Service) DeletePropertyGroup ¶
DeletePropertyGroup to update property group
func (*Service) DeletePropertyGroupObjectAtt ¶
DeletePropertyGroupObjectAtt to delete property group object attribute
func (*Service) DeleteSetHost ¶
func (cli *Service) DeleteSetHost(req *restful.Request, resp *restful.Response)
func (*Service) DeleteUserGroup ¶
func (cli *Service) DeleteUserGroup(req *restful.Request, resp *restful.Response)
DeleteUserGroup create group
func (*Service) GetCntByCondition ¶
GetCntByCondition get count by condition
func (*Service) GetHostByCondition ¶
func (cli *Service) GetHostByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error
GetHostByCondition query
func (*Service) GetIdleModule ¶
func (*Service) GetObjectByCondition ¶
func (cli *Service) GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, condition, result interface{}, sort string, skip, limit int) error
GetObjectByCondition get object by condition
func (*Service) GetObjectByID ¶
func (cli *Service) GetObjectByID(objType string, fields []string, id int, result interface{}, sort string) error
GetObjectByID get object by id
func (*Service) GetProcessesByModuleName ¶
func (cli *Service) GetProcessesByModuleName(req *restful.Request, resp *restful.Response)
func (*Service) GetRolePri ¶
func (cli *Service) GetRolePri(req *restful.Request, resp *restful.Response)
GetRolePri get role privilege
func (*Service) GetSystemFlag ¶
func (cli *Service) GetSystemFlag(req *restful.Request, resp *restful.Response)
GetSystemFlag get the system define flag
func (*Service) GetUserGroupPrivi ¶
func (cli *Service) GetUserGroupPrivi(req *restful.Request, resp *restful.Response)
GetUserGroupPrivi get group privi
func (*Service) SearchIdentifier ¶
func (cli *Service) SearchIdentifier(req *restful.Request, resp *restful.Response)
search object
func (*Service) SearchInstObjects ¶
func (cli *Service) SearchInstObjects(req *restful.Request, resp *restful.Response)
SearchInstObjects SearchInstObjects
func (*Service) SearchTopoGraphics ¶
func (cli *Service) SearchTopoGraphics(req *restful.Request, resp *restful.Response)
CreateClassification create object's classification
func (*Service) SearchUserGroup ¶
func (cli *Service) SearchUserGroup(req *restful.Request, resp *restful.Response)
SearchUserGroup create group
func (*Service) SelectClassificationWithObject ¶
func (cli *Service) SelectClassificationWithObject(req *restful.Request, resp *restful.Response)
SelectClassificationWithObject select objects by classification information
func (*Service) SelectClassifications ¶
func (cli *Service) SelectClassifications(req *restful.Request, resp *restful.Response)
SelectClassifications select object's classification informations
func (*Service) SelectGroup ¶
SelectGroup search groups
func (*Service) SelectObjectAssociations ¶
func (cli *Service) SelectObjectAssociations(req *restful.Request, resp *restful.Response)
SelectObjectAssociations search all object association map
func (*Service) SelectObjectAttByID ¶
func (cli *Service) SelectObjectAttByID(req *restful.Request, resp *restful.Response)
SelectObjectAttByID select object's attribute by id
func (*Service) SelectObjectAttWithParams ¶
func (cli *Service) SelectObjectAttWithParams(req *restful.Request, resp *restful.Response)
SelectObjectAttWithParams select object's attribute with some params
func (*Service) SelectObjects ¶
func (cli *Service) SelectObjects(req *restful.Request, resp *restful.Response)
查询所有主机信息
func (*Service) SelectPropertyGroupByObjectID ¶
SelectPropertyGroupByObjectID to search
func (*Service) TranslateClassificationName ¶
func (cli *Service) TranslateClassificationName(defLang language.DefaultCCLanguageIf, att *meta.Classification) string
func (*Service) TranslateDescription ¶
func (*Service) TranslateEnumName ¶
func (cli *Service) TranslateEnumName(defLang language.DefaultCCLanguageIf, att *meta.Attribute, val interface{}) interface{}
func (*Service) TranslateInstName ¶
func (*Service) TranslateObjectName ¶
func (*Service) TranslatePropertyGroupName ¶
func (*Service) TranslatePropertyName ¶
func (*Service) UpdateClassification ¶
func (cli *Service) UpdateClassification(req *restful.Request, resp *restful.Response)
UpdateClassification update object's classification information
func (*Service) UpdateInstObject ¶
func (cli *Service) UpdateInstObject(req *restful.Request, resp *restful.Response)
UpdateInstObject UpdateInstObject
func (*Service) UpdateObjByCondition ¶
func (cli *Service) UpdateObjByCondition(objType string, data interface{}, condition interface{}) error
UpdateObjByCondition update object by condition
func (*Service) UpdateObject ¶
func (cli *Service) UpdateObject(req *restful.Request, resp *restful.Response)
func (*Service) UpdateObjectAssociation ¶
func (cli *Service) UpdateObjectAssociation(req *restful.Request, resp *restful.Response)
UpdateObjectAssociation update object association map
func (*Service) UpdateObjectAttByID ¶
func (cli *Service) UpdateObjectAttByID(req *restful.Request, resp *restful.Response)
UpdateObjectAttByID update object's attribute by id
func (*Service) UpdatePropertyGroup ¶
UpdatePropertyGroup to update property group
func (*Service) UpdatePropertyGroupObjectAtt ¶
UpdatePropertyGroupObjectAtt to update property group object attribute
func (*Service) UpdateRolePri ¶
func (cli *Service) UpdateRolePri(req *restful.Request, resp *restful.Response)
UpdateRolePri update role privilege
func (*Service) UpdateTopoGraphics ¶
func (cli *Service) UpdateTopoGraphics(req *restful.Request, resp *restful.Response)
func (*Service) UpdateUserGroup ¶
func (cli *Service) UpdateUserGroup(req *restful.Request, resp *restful.Response)
UpdateUserGroup create group
func (*Service) UpdateUserGroupPrivi ¶
func (cli *Service) UpdateUserGroupPrivi(req *restful.Request, resp *restful.Response)
UpdateUserGroupPrivi update group privi
func (*Service) WebService ¶
func (s *Service) WebService() *restful.WebService