Documentation ¶
Index ¶
Constants ¶
View Source
const ( AsynqTypenameRMDelAssetsTenant = "rm:del:assets:tenant" AsynqTypenameRMDelAssetsWorkspace = "rm:del:assets:workspace" AsynqTypenameRMDelAssetsProject = "rm:del:assets:project" AsynqTypenameRMPluginHarbor = "rm:plugin:harbor" AsynqTypenameRMPluginStorage = "rm:plugin:storage" )
View Source
const ( RoleConsoleAdmin = "r_console_admin" // 集群管理员 RoleWorkbenchUser = "r_workbench_user" // 已登录用户 RoleWorkbenchTenantSuperAdmin = "r_workbench_tenant_super_admin" // 租户超管 RoleWorkbenchTenantAdmin = "r_workbench_tenant_admin" // 租户管理员 RoleWorkbenchNormalUser = "r_workbench_normal_user" // 普通用户 RoleWorkbenchEmpty = "r_workbench_empty" // 无权限用户 )
View Source
const ( CasdoorAppNameConsole = "console" CasdoorAppNameWorkbench = "workbench" )
View Source
const ( BadRequest = "BAD_REQUEST" Forbidden = "FORBIDDEN" NotFound = "NOT_FOUND" Conflict = "CONFLICT" InternalServer = "INTERNAL_SERVER" )
View Source
const ( NatsQueuePrefixAlert = "alert." NatsQueuePrefixApp = "app." NatsQueuePrefixAuth = "auth." NatsQueuePrefixCluster = "cluster." NatsQueuePrefixDataSet = "dataset." NatsQueuePrefixDataCenter = "data.center." NatsQueuePrefixDataManage = "data.manager." NatsQueuePrefixEventAgent = "event.agent." NatsQueuePrefixEventServer = "event.server." NatsQueuePrefixImage = "image." NatsQueuePrefixInference = "inference." NatsQueuePrefixNotebook = "notebook." NatsQueuePrefixSSH = "ssh." NatsQueuePrefixTenant = "tenant." NatsQueuePrefixTraining = "training." )
View Source
const ( NatsSubjectRMCreateFolderTenant = "rm.create.folder.tenant" // 创建租户 NatsSubjectRMModifyFolderTenant = "rm.modify.folder.tenant" // 编辑租户 NatsSubjectRMDelFolderTenant = "rm.del.folder.tenant" // 删除租户 NatsSubjectRMDelAssetsTenant = "rm.del.assets.tenant" // 删除租户下资产 NatsSubjectRMAddTenantUser = "rm.add.tenant.user" // 新增租户用户(用户加入租户) NatsSubjectRMDelTenantUser = "rm.del.tenant.user" // 删除租户用户(用户被移除租户) NatsSubjectRMCreateFolderWorkspace = "rm.create.folder.workspace" // 创建工作空间 NatsSubjectRMModifyFolderWorkspace = "rm.modify.folder.workspace" // 编辑工作空间 NatsSubjectRMDelFolderWorkspace = "rm.del.folder.workspace" // 删除工作空间 NatsSubjectRMDelAssetsWorkspace = "rm.del.assets.workspace" // 删除工作空间下资产 NatsSubjectRMAddWorkspaceUser = "rm.add.workspace.user" // 新增工作空间用户(授予用户指定工作空间权限) NatsSubjectRMDelWorkspaceUser = "rm.del.workspace.user" // 删除工作空间用户(收回用户指定工作空间权限) NatsSubjectRMCreateFolderProject = "rm.create.folder.project" // 创建项目 NatsSubjectRMModifyFolderProject = "rm.modify.folder.project" // 编辑项目 NatsSubjectRMDelFolderProject = "rm.del.folder.project" // 删除项目 NatsSubjectRMDelAssetsProject = "rm.del.assets.project" // 删除项目下资产 NatsSubjectUserDelUser = "user.del.user" // 删除用户(用户从平台硬删除), 业务服务可按需订阅该事件完成用户在相关业务痕迹的异步清理 NatsSubjectNotebookSnapshot = "notebook.snapshot.result" )
View Source
const ( NodeLabelPoolDedicated = "dedicated" // 专用资源池(整机分配) NodeLabelPoolDynamic = "dynamic" // 动态资源池 )
View Source
const ( TransHeaderClaims = "Teco_claims" TransHeaderClientID = "Teco_client_id" TransHeaderTenantID = "Teco_tenant_id" TransHeaderWorkspaceID = "Teco_workspace_id" TransHeaderProjectID = "Teco_project_id" TransHeaderClusterID = "Teco_cluster_id" TransHeaderCasbinSub = "Teco_casbin_sub" )
View Source
const (
GrpcLBPolicyRoundRobin = `{\"loadBalancingPolicy\":\"round_robin\"}`
)
View Source
const (
MetaKeyClaims = "x-md-claims"
)
View Source
const (
NatsJetStreamRM = "js-rm"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.