phpapi

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHost

func AddHost(req *restful.Request, data map[string]interface{}, objURL string) (int64, error)

func AddModuleHostConfig

func AddModuleHostConfig(req *restful.Request, hostID, appID int64, moduleIDs []int64, hostCtrl string) error

func GetCustomerPropertyByOwner

func GetCustomerPropertyByOwner(req *restful.Request, OwnerId interface{}, ObjCtrl string) ([]map[string]interface{}, error)

func GetDefaultModules

func GetDefaultModules(req *restful.Request, appID int, objURL string) (interface{}, error)

func GetHostByCond

func GetHostByCond(req *restful.Request, param map[string]interface{}, objURL string) (interface{}, error)

func GetHostByIPAndSource

func GetHostByIPAndSource(req *restful.Request, innerIP string, platID int, objURL string) (interface{}, error)

func GetHostDataByConfig

func GetHostDataByConfig(req *restful.Request, configData []map[string]int) ([]interface{}, error)

GetHostDataByConfig get host info

func GetHostMapByCond

func GetHostMapByCond(req *restful.Request, condition map[string]interface{}) (map[int]interface{}, []int, error)

func In_existIpArr

func In_existIpArr(arr []string, ip string) bool

In_existIpArr exsit ip in array

func SetHostData

func SetHostData(req *restful.Request, moduleHostConfig []map[string]int, hostMap map[int]interface{}) ([]interface{}, error)

func UpdateHostMain

func UpdateHostMain(req *restful.Request, hostCondition, data map[string]interface{}, appID int, hostCtrl, objCtrl, auditCtrl string, errIf errorIfs.CCErrorIf) (string, error)

helpers

Types

This section is empty.

Jump to

Keyboard shortcuts

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