Documentation ¶
Index ¶
- func AddSingleHostModuleRelation(ec *eventdata.EventContext, cc *api.APIResource, hostID, moduleID, appID int) (bool, error)
- func CheckHostInIDle(cc *api.APIResource, appID, emptyModuleID int, hostIDs []int) ([]int, []int, error)
- func DelSingleHostModuleRelation(ec *eventdata.EventContext, cc *api.APIResource, hostID, moduleID, appID int) (bool, error)
- func GetDefaultModuleIDs(cc *api.APIResource, appID int) ([]int, error)
- func GetIDleModuleID(cc *api.APIResource, appID int) (int, error)
- func GetModuleIDsByHostID(cc *api.APIResource, moduleCond interface{}) ([]int, error)
- func GetResourcePoolApp(cc *api.APIResource, ownerID int) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSingleHostModuleRelation ¶
func AddSingleHostModuleRelation(ec *eventdata.EventContext, cc *api.APIResource, hostID, moduleID, appID int) (bool, error)
AddSingleHostModuleRelation add single host module relation
func CheckHostInIDle ¶
func CheckHostInIDle(cc *api.APIResource, appID, emptyModuleID int, hostIDs []int) ([]int, []int, error)
check if host belong to empty module
func DelSingleHostModuleRelation ¶
func DelSingleHostModuleRelation(ec *eventdata.EventContext, cc *api.APIResource, hostID, moduleID, appID int) (bool, error)
DelSingleHostModuleRelation delete single host module relation
func GetDefaultModuleIDs ¶
func GetDefaultModuleIDs(cc *api.APIResource, appID int) ([]int, error)
GetDefaultModuleIDs get default module ids
func GetModuleIDsByHostID ¶
func GetModuleIDsByHostID(cc *api.APIResource, moduleCond interface{}) ([]int, error)
GetModuleIDsByHostID get module id by hostid
func GetResourcePoolApp ¶
func GetResourcePoolApp(cc *api.APIResource, ownerID int) (int, error)
GetResourcePoolApp get resource pool app
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.