logics

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

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 15 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 GetDefaultTopo

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

GetDefaultTopo get resource topo

Types

type Logics

type Logics struct {
	*backbone.Engine
}

func (*Logics) AutoInputV3Field

func (lgc *Logics) AutoInputV3Field(params mapstr.MapStr, objId, user string, header http.Header) (mapstr.MapStr, error)

AutoInputV3Field fields required to automatically populate the current object v3

func (*Logics) CheckAppTopoIsThreeLevel

func (lgc *Logics) CheckAppTopoIsThreeLevel(user string, pheader http.Header) (bool, error)

func (*Logics) GetAppTopo

func (lgc *Logics) GetAppTopo(user string, pheader http.Header, appID int64, conds mapstr.MapStr) (map[string]interface{}, int)

func (*Logics) GetModuleHostCount

func (lgc *Logics) GetModuleHostCount(appID, mouduleID interface{}, user string, pheader http.Header) (int, error)

GetModuleHostCount get module host count

func (*Logics) GetObjFieldIDs

func (lgc *Logics) GetObjFieldIDs(objID, user string, header http.Header) (common.KvMap, error)

getObjFieldIDs get the values of properyID and properyName

func (*Logics) SetModuleHostCount

func (lgc *Logics) SetModuleHostCount(data []map[string]interface{}, user string, pheader http.Header) error

SetModuleHostCount get set host count

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