logics

package
v3.0.8-rc.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 GetIDleModuleID

func GetIDleModuleID(cc *api.APIResource, appID int) (int, error)

获取业务下的默认模块

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL