Documentation
¶
Overview ¶
Package space provides bscp space manager.
Index ¶
- Variables
- func BuildSpaceUid(t Type, id string) string
- type Manager
- func (s *Manager) AllSpaces(ctx context.Context) []*Space
- func (s *Manager) GetSpaceByUID(ctx context.Context, uid string) (*Space, error)
- func (s *Manager) HasCMDBSpace(ctx context.Context, spaceId string) bool
- func (s *Manager) QuerySpace(ctx context.Context, spaceUidList []string) ([]*Space, error)
- type Space
- type Status
- type Type
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按租户被动拉取, 注: 每个实例一个 cache
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.