object

package
v3.0.8-alpha.10+incomp... Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelperFunction

type HelperFunction struct {
	// SelectInstTopo return the inst topo
	SelectInstTopo func(forward *api.ForwardParam, ownerid, objid string, appid, instid, level int, req *restful.Request) ([]manager.TopoInstRst, error)
}

HelperFunction helper function definition

func CreateHelperFunction

func CreateHelperFunction() *HelperFunction

CreateHelperFunction return the helper function items

type InstItem

type InstItem struct {
	Count int                      `json:"count"`
	Info  []map[string]interface{} `json:"info"`
}

InstItem item 结构

type ObjInstRsp

type ObjInstRsp struct {
	Result  bool        `json:"result"`
	Code    int         `json:"code"`
	Message interface{} `json:"message"`
	Data    InstItem    `json:"data"`
}

ObjInstRsp 用于提取controller 返回的实例数据结构

type ObjectTopo

type ObjectTopo struct {
	LabelType string   `json:"label_type"`
	LabelName string   `json:"label_name"`
	Label     string   `json:"label"`
	From      TopoItem `json:"from"`
	To        TopoItem `json:"to"`
	Arrows    string   `json:"arrows"`
}

ObjectTopo define the common object topo

type Page

type Page struct {
	Sort  string `json:"sort"`
	Limit int    `json:"limit"`
	Skip  int    `json:"start"`
}

Page 用于分页查询

type TopoItem

type TopoItem struct {
	ClassificationID string `json:"bk_classification_id"`
	Position         string `json:"position"`
	ObjID            string `json:"bk_obj_id"`
	OwnerID          string `json:"bk_supplier_account"`
	ObjName          string `json:"bk_obj_name"`
}

TopoItem define topo item

Jump to

Keyboard shortcuts

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