Documentation ¶
Overview ¶
Package space provides bscp space manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BCS 项目类型 BCS = Type{ID: "bcs", Name: "容器项目", EnName: "Container Project"} // BK_CMDB cmdb 业务类型 BK_CMDB = Type{ID: "bkcmdb", Name: "业务", EnName: "Business"} )
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager Space定时拉取
func NewSpaceMgr ¶
NewSpaceMgr 新增Space定时拉取, 注: 每个实例一个 goroutine
func (*Manager) AllCMDBSpaces ¶
AllCMDBSpaces 返回全量CMDB空间
func (*Manager) GetSpaceByUID ¶
GetSpaceByUID 按id查询业务
func (*Manager) HasCMDBSpace ¶
HasCMDBSpace checks if cmdb space exists
type Space ¶
type Space struct { SpaceId string SpaceName string SpaceTypeID string SpaceTypeName string SpaceUid string SpaceEnName string }
Space 空间
Click to show internal directories.
Click to hide internal directories.