permission

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SuperUserUUID = "00000" //超级用户权限
	//产品工作流相关
	WorkflowTaskUUID     = "30001" //产品工作流(执行任务、重启任务、取消任务)
	WorkflowUpdateUUID   = "30002" //产品工作流(更新)
	WorkflowCreateUUID   = "30003" //产品工作流(创建)
	WorkflowDeleteUUID   = "30004" //产品工作流(删除)
	WorkflowListUUID     = "30005" //产品工作流(查看)
	WorkflowDeliveryUUID = "30006" //产品工作流(添加交付)

	//集成环境(测试环境)
	TestEnvCreateUUID = "40001" //创建环境
	TestEnvDeleteUUID = "40002" //删除环境
	TestEnvManageUUID = "40003" //环境管理(环境更新、单服务更新、服务伸缩、服务重启、configmap更新、configmap回滚、重启实例、yaml导出)
	TestEnvListUUID   = "40004" //环境查看
	TestEnvShareUUID  = "40005" //环境授权
	TestUpdateEnvUUID = "40010" //更新环境

	//集成环境(生产环境)
	ProdEnvListUUID   = "40006" //环境查看
	ProdEnvCreateUUID = "40007" //创建环境
	ProdEnvManageUUID = "40008" //环境管理(环境更新、单服务更新、服务伸缩、服务重启、configMap更新、configMap回滚、重启实例、yaml导出)
	ProdEnvDeleteUUID = "40009" //删除环境

	//原项目管理相关
	//构建管理
	BuildDeleteUUID = "50007" //删除构建配置
	BuildManageUUID = "50008" //构建配置管理(创建构建、修改构建、修改服务组件)
	BuildListUUID   = "50019" //构建配置查看

	//服务管理
	ServiceTemplateEditUUID   = "50022" //修改服务编排
	ServiceTemplateManageUUID = "50023" //服务模板管理(创建服务模板、修改服务模板)
	ServiceTemplateDeleteUUID = "50024" //删除服务模板
	ServiceTemplateListUUID   = "50025" //查看服务模板

	//测试管理
	TestDeleteUUID = "50010" //删除测试
	TestManageUUID = "50011" //测试管理(创建测试、修改测试)
	TestListUUID   = "50020" //查看测试

	//交付中心
	ReleaseDeleteUUID = "70001" //交付中心删除版本

	ParamType      = 1
	QueryType      = 2
	ContextKeyType = 3
)
View Source
const (
	AnonymousUserID   = 0
	AnonymousUserName = "Anonymous"
)

Variables

View Source
var AnonymousUser = &User{ID: AnonymousUserID, Name: AnonymousUserName}

Functions

This section is empty.

Types

type User

type User struct {
	ID             int    `json:"id"`
	Name           string `json:"name"`
	Email          string `json:"email"`
	Password       string `json:"password"`
	Phone          string `json:"phone"`
	IsAdmin        bool   `json:"isAdmin"`
	IsSuperUser    bool   `json:"isSuperUser"`
	IsTeamLeader   bool   `json:"isTeamLeader"`
	OrganizationID int    `json:"organization_id"`
	Directory      string `json:"directory"`
	LastLoginAt    int64  `json:"lastLogin"`
	CreatedAt      int64  `json:"created_at"`
	UpdatedAt      int64  `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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