logics

package
v3.0.8-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendDefaultTopo

func AppendDefaultTopo(topo map[string]interface{}, defaultTopo map[string]interface{}) map[string]interface{}

AppendDefaultTopo combin idle pool set

func AutoInputV3Field

func AutoInputV3Field(params common.KvMap, objId, url string, header http.Header) (common.KvMap, error)

AutoInputV3Field fields required to automatically populate the current object v3

func GetAppTopo

func GetAppTopo(req *restful.Request, cc *api.APIResource, ownerID string, appID int64, conds common.KvMap) (map[string]interface{}, int)

func GetDefaultTopo

func GetDefaultTopo(req *restful.Request, appID string, topoApi string) (map[string]interface{}, error)

GetDefaultTopo 获取空闲机池topo

func GetModuleHostCount

func GetModuleHostCount(appID, mouduleID interface{}, req *restful.Request, cc *api.APIResource) (int, error)

GetModuleHostCount get module host count

func GetObjFieldIDs

func GetObjFieldIDs(objID, url string, header http.Header) (common.KvMap, error)

getObjFieldIDs get the values of properyID and properyName

func SetModuleHostCount

func SetModuleHostCount(data []map[string]interface{}, req *restful.Request, cc *api.APIResource) error

SetModuleHostCount get set host count

Types

type UserAPI

type UserAPI struct {
}

func NewUserAPI

func NewUserAPI() *UserAPI

func (*UserAPI) GetNameByID

func (cli *UserAPI) GetNameByID(req *restful.Request, detailURL string) (string, error, int)

GetNameByID

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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