api

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

Documentation

Index

Constants

View Source
const CCTopoFailed = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client

func NewClient

func NewClient(address string) *Client

NewMetaObjectClient 创建Object 操作接口

func (*Client) ReForwardCreateMetaInst

func (cli *Client) ReForwardCreateMetaInst(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardCreateMetaModule

func (cli *Client) ReForwardCreateMetaModule(callfunc func(url, method string) (string, error), appid, setid string) func() (string, error)

func (*Client) ReForwardCreateMetaObjAtt

func (cli *Client) ReForwardCreateMetaObjAtt(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardCreateMetaObjAttGroup

func (cli *Client) ReForwardCreateMetaObjAttGroup(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardCreateMetaObjCls

func (cli *Client) ReForwardCreateMetaObjCls(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardCreateMetaObject

func (cli *Client) ReForwardCreateMetaObject(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardCreateMetaObjectBatch

func (cli *Client) ReForwardCreateMetaObjectBatch(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardCreateMetaSet

func (cli *Client) ReForwardCreateMetaSet(callfunc func(url, method string) (string, error), appid string) func() (string, error)

func (*Client) ReForwardCreateMetaTopo

func (cli *Client) ReForwardCreateMetaTopo(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardDeleteMetaInst

func (cli *Client) ReForwardDeleteMetaInst(callfunc func(url, method string) (string, error), ownerid, objid, instid string) func() (string, error)

func (*Client) ReForwardDeleteMetaModule

func (cli *Client) ReForwardDeleteMetaModule(callfunc func(url, method string) (string, error), appid, setid, moduleid string) func() (string, error)

func (*Client) ReForwardDeleteMetaObjAtt

func (cli *Client) ReForwardDeleteMetaObjAtt(callfunc func(url, method string) (string, error), attrid string) func() (string, error)

func (*Client) ReForwardDeleteMetaObjAttGroup

func (cli *Client) ReForwardDeleteMetaObjAttGroup(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardDeleteMetaObjAttGroupProperty

func (cli *Client) ReForwardDeleteMetaObjAttGroupProperty(callfunc func(url, method string) (string, error), ownerID, objectID, propertyID, groupID string) func() (string, error)

func (*Client) ReForwardDeleteMetaObjCls

func (cli *Client) ReForwardDeleteMetaObjCls(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardDeleteMetaObject

func (cli *Client) ReForwardDeleteMetaObject(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardDeleteMetaSet

func (cli *Client) ReForwardDeleteMetaSet(callfunc func(url, method string) (string, error), appid, setid string) func() (string, error)

func (*Client) ReForwardDeleteMetaTopo

func (cli *Client) ReForwardDeleteMetaTopo(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardSelectInstAssociationTopo

func (cli *Client) ReForwardSelectInstAssociationTopo(callfunc func(url, method string) (string, error), ownerid, objid, instID string) func() (string, error)

func (*Client) ReForwardSelectInstByAssociation

func (cli *Client) ReForwardSelectInstByAssociation(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardSelectInstByObject

func (cli *Client) ReForwardSelectInstByObject(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardSelectMetaInst

func (cli *Client) ReForwardSelectMetaInst(callfunc func(url, method string) (string, error), ownerid, objid, instid string) func() (string, error)

func (*Client) ReForwardSelectMetaInsts

func (cli *Client) ReForwardSelectMetaInsts(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardSelectMetaInstsAndAsstDetail

func (cli *Client) ReForwardSelectMetaInstsAndAsstDetail(callfunc func(url, method string) (string, error), ownerid, objid string) func() (string, error)

func (*Client) ReForwardSelectMetaInstsTopo

func (cli *Client) ReForwardSelectMetaInstsTopo(callfunc func(url, method string) (string, error), ownerid, objid, instid string) func() (string, error)

func (*Client) ReForwardSelectMetaModule

func (cli *Client) ReForwardSelectMetaModule(callfunc func(url, method string) (string, error), ownerid, appid, setid string) func() (string, error)

func (*Client) ReForwardSelectMetaObjAtt

func (cli *Client) ReForwardSelectMetaObjAtt(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardSelectMetaObjCls

func (cli *Client) ReForwardSelectMetaObjCls(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardSelectMetaObjClsWithObjects

func (cli *Client) ReForwardSelectMetaObjClsWithObjects(callfunc func(url, method string) (string, error), ownerID string) func() (string, error)

func (*Client) ReForwardSelectMetaObject

func (cli *Client) ReForwardSelectMetaObject(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardSelectMetaObjectBatch

func (cli *Client) ReForwardSelectMetaObjectBatch(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardSelectMetaObjectTopo

func (cli *Client) ReForwardSelectMetaObjectTopo(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardSelectMetaSet

func (cli *Client) ReForwardSelectMetaSet(callfunc func(url, method string) (string, error), ownerid, appid string) func() (string, error)

func (*Client) ReForwardSelectMetaTopo

func (cli *Client) ReForwardSelectMetaTopo(callfunc func(url, method string) (string, error), ownerid string) func() (string, error)

func (*Client) ReForwardSelectMetaTopoByClsID

func (cli *Client) ReForwardSelectMetaTopoByClsID(callfunc func(url, method string) (string, error), ownerid, clsid, objid string) func() (string, error)

func (*Client) ReForwardSelectMetaTopoInst

func (cli *Client) ReForwardSelectMetaTopoInst(callfunc func(url, method string) (string, error), ownerid, appid string) func() (string, error)

func (*Client) ReForwardSelectMetaTopoInstChild

func (cli *Client) ReForwardSelectMetaTopoInstChild(callfunc func(url, method string) (string, error), ownerid, objid, appid, instid string) func() (string, error)

func (*Client) ReForwardSelectObjectTopoGraphics

func (cli *Client) ReForwardSelectObjectTopoGraphics(callfunc func(url, method string) (string, error), scopeType, scopeID string) func() (string, error)

func (*Client) ReForwardSelectPropertyGroupByObjectID

func (cli *Client) ReForwardSelectPropertyGroupByObjectID(callfunc func(url, method string) (string, error), ownerID, objectID string) func() (string, error)

func (*Client) ReForwardUpdateMetaInst

func (cli *Client) ReForwardUpdateMetaInst(callfunc func(url, method string) (string, error), ownerid, objid, instid string) func() (string, error)

func (*Client) ReForwardUpdateMetaModule

func (cli *Client) ReForwardUpdateMetaModule(callfunc func(url, method string) (string, error), appid, setid, moduleid string) func() (string, error)

func (*Client) ReForwardUpdateMetaObjAtt

func (cli *Client) ReForwardUpdateMetaObjAtt(callfunc func(url, method string) (string, error), attrid string) func() (string, error)

func (*Client) ReForwardUpdateMetaObjAttGroup

func (cli *Client) ReForwardUpdateMetaObjAttGroup(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardUpdateMetaObjAttGroupProperty

func (cli *Client) ReForwardUpdateMetaObjAttGroupProperty(callfunc func(url, method string) (string, error)) func() (string, error)

func (*Client) ReForwardUpdateMetaObjCls

func (cli *Client) ReForwardUpdateMetaObjCls(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardUpdateMetaObject

func (cli *Client) ReForwardUpdateMetaObject(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardUpdateMetaSet

func (cli *Client) ReForwardUpdateMetaSet(callfunc func(url, method string) (string, error), appid, setid string) func() (string, error)

func (*Client) ReForwardUpdateMetaTopo

func (cli *Client) ReForwardUpdateMetaTopo(callfunc func(url, method string) (string, error), id string) func() (string, error)

func (*Client) ReForwardUpdateObjectTopoGraphics

func (cli *Client) ReForwardUpdateObjectTopoGraphics(callfunc func(url, method string) (string, error), scopeType, scopeID string) func() (string, error)

func (*Client) SetAddress

func (cli *Client) SetAddress(address string)

SetAddress

type ObjectAsstDes

type ObjectAsstDes struct {
	ID          int    `json:"id"`
	ObjectID    string `json:"bk_obj_id"`
	ObjectAttID string `json:"bk_object_att_id"`
	OwnerID     string `json:"bk_supplier_account"`
	AsstObjID   string `json:"bk_asst_obj_id"`
}

ObjectAsstDes 模型关联关系

type ObjectAttDes

type ObjectAttDes struct {
	ID            int        `json:"id"`
	OwnerID       string     `json:"bk_supplier_account"`
	ObjID         string     `json:"bk_obj_id"`
	PropertyID    string     `json:"bk_property_id"`
	PropertyName  string     `json:"bk_property_name"`
	AssociationID string     `json:"bk_association_id"`
	PropertyGroup string     `json:"bk_property_group"`
	Editable      bool       `json:"editable"`
	IsRequired    bool       `json:"isrequired"`
	IsReadOnly    bool       `json:"isreadonly"`
	IsOnly        bool       `json:"isonly"`
	PropertyType  string     `json:"bk_property_type"`
	Option        string     `json:"option"`
	Description   string     `json:"description"`
	Creator       string     `json:"creator"`
	CreateTime    *time.Time `json:"create_time"`
	LastTime      *time.Time `json:"last_time"`
}

ObjectAttDes 模型属性

type ObjectClsDes

type ObjectClsDes struct {
	ID      int    `json:"id"`
	ClsID   string `json:"bk_classification_id"`
	ClsName string `json:"bk_classification_name"`
	ClsType string `json:"bk_classification_type"`
	ClsIcon string `json:"bk_classification_icon"`
}

ObjectClsDes 模型分类

type ObjectDes

type ObjectDes struct {
	ID               int        `json:"id"`
	ClassificationID string     `json:"bk_classification_id"`
	ObjID            string     `json:"bk_obj_id"`
	ObjName          string     `json:"bk_obj_name"`
	IsPre            bool       `json:"ispre"`
	IsPaused         bool       `json:"bk_ispaused"`
	OwnerID          string     `json:"bk_supplier_account"`
	Description      string     `json:"description"`
	Creator          string     `json:"creator"`
	Modifier         string     `json:"modifier"`
	CreateTime       *time.Time `json:"create_time"`
	LastTime         *time.Time `json:"last_time"`
}

ObjectDes 模型

Jump to

Keyboard shortcuts

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