Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PlatID the plat id PlatID = "bk_cloud_id" // Plat the object id Plat = "plat" // BusinessID the business id BusinessID = "bk_biz_id" // BusinessNameField the business name BusinessNameField = "bk_biz_name" // InstID the common inst id InstID = "bk_inst_id" // InstName the common inst name InstName = "bk_inst_name" // SetID the set id SetID = "bk_set_id" // SetName the set name SetName = "bk_set_name" // ModuleID the module id ModuleID = "bk_module_id" // ModuleName the module name ModuleName = "bk_module_name" // PlatName the plat name PlatName = "bk_cloud_name" // DefaultLimit the limit num DefaultLimit = 1000 // HostIDField the host id field HostIDField = "bk_host_id" // HostNameField the host name field HostNameField = "bk_host_name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inst ¶
type Inst interface { types.Saver GetModel() model.Model IsMainLine() bool GetAssociationModels() ([]model.Model, error) GetInstID() int GetInstName() string SetValue(key string, value interface{}) error GetValues() (types.MapStr, error) GetAssociationsByModleID(modleID string) ([]Inst, error) GetAllAssociations() (map[model.Model][]Inst, error) SetParent(parentInstID int) error GetParent() ([]Topo, error) GetChildren() ([]Topo, error) }
Inst the inst interface
type Iterator ¶
Iterator the iterator interface for the Inst
func FindInstsByCondition ¶
FindInstsByCondition find all insts by condition
Source Files ¶
- factory.go
- inst.go
- inst_business.go
- inst_business_factory.go
- inst_host.go
- inst_host_factory.go
- inst_module.go
- inst_module_factory.go
- inst_plat.go
- inst_plat_factory.go
- inst_proc.go
- inst_proc_factory.go
- inst_set.go
- inst_set_factory.go
- inst_topo.go
- iterator_host.go
- iterator_inst.go
- iterator_inst_business.go
- iterator_inst_module.go
- iterator_inst_set.go
- type.go
Click to show internal directories.
Click to hide internal directories.