Documentation ¶
Index ¶
- Constants
- type Logics
- func (lgc *Logics) AddSingleHostModuleRelation(ec *eventclient.EventContext, hostID, moduleID, appID int64, ownerID string) (bool, error)
- func (lgc *Logics) CheckHostInIDle(appID, emptyModuleID int64, hostIDs []int64) ([]int64, []int64, error)
- func (lgc *Logics) CreateObject(objType string, input interface{}, idName *string) (int64, error)
- func (lgc *Logics) DelSingleHostModuleRelation(ec *eventclient.EventContext, hostID, moduleID, appID int64, ownerID string) (bool, error)
- func (lgc *Logics) GetDefaultModuleIDs(appID int64) ([]int64, error)
- func (lgc *Logics) GetIDleModuleID(appID int64) (int64, error)
- func (lgc *Logics) GetModuleIDsByHostID(moduleCond interface{}) ([]int64, error)
- func (lgc *Logics) GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, ...) error
- func (lgc *Logics) GetObjectByID(objType string, fields []string, id int64, result interface{}, sort string) error
- func (lgc *Logics) GetResourcePoolApp(ownerID int64) (int64, error)
Constants ¶
View Source
const ( ModuleBaseCollectioin = "cc_ModuleBase" ModuleHostCollection = "cc_ModuleHostConfig" ApplicationBaseCollection = "cc_ApplicationBase" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logics ¶
func (*Logics) AddSingleHostModuleRelation ¶
func (lgc *Logics) AddSingleHostModuleRelation(ec *eventclient.EventContext, hostID, moduleID, appID int64, ownerID string) (bool, error)
AddSingleHostModuleRelation add single host module relation
func (*Logics) CheckHostInIDle ¶
func (lgc *Logics) CheckHostInIDle(appID, emptyModuleID int64, hostIDs []int64) ([]int64, []int64, error)
check if host belong to empty module
func (*Logics) CreateObject ¶
func (*Logics) DelSingleHostModuleRelation ¶
func (lgc *Logics) DelSingleHostModuleRelation(ec *eventclient.EventContext, hostID, moduleID, appID int64, ownerID string) (bool, error)
DelSingleHostModuleRelation delete single host module relation
func (*Logics) GetDefaultModuleIDs ¶
GetDefaultModuleIDs get default module ids
func (*Logics) GetModuleIDsByHostID ¶
GetModuleIDsByHostID get module id by hostid
func (*Logics) GetObjectByCondition ¶
func (*Logics) GetObjectByID ¶
Click to show internal directories.
Click to hide internal directories.