goploy/config/permission.go
2024-01-03 16:41:00 +08:00

94 lines
2.7 KiB
Go

// Copyright 2022 The Goploy Authors. All rights reserved.
// Use of this source code is governed by a GPLv3-style
// license that can be found in the LICENSE file.
package config
const (
Log = 1
ShowLoginLogPage = 2
ShowPublishLogPage = 3
ShowSFTPLogPage = 4
ShowTerminalLogPage = 5
ShowTerminalRecord = 6
Member = 7
ShowMemberPage = 8
AddMember = 9
EditMember = 10
DeleteMember = 11
Namespace = 12
ShowNamespacePage = 13
AddNamespace = 14
EditNamespace = 15
AddNamespaceUser = 16
DeleteNamespaceUser = 17
ShowRolePage = 18
AddRole = 19
EditRole = 20
DeleteRole = 21
EditPermission = 22
Server = 23
ShowServerPage = 24
AddServer = 25
EditServer = 26
SwitchServerState = 27
InstallAgent = 28
ImportCSV = 29
ShowServerMonitorPage = 30
AddServerWarningRule = 31
EditServerWarningRule = 32
DeleteServerWarningRule = 33
ShowTerminalPage = 34
ShowSftpFilePage = 35
SFTPUploadFile = 36
SFTPPreviewFile = 37
SFTPDownloadFile = 38
ShowCronPage = 39
AddCron = 40
EditCron = 41
DeleteCron = 42
Project = 43
ShowProjectPage = 44
GetAllProjectList = 45
GetBindProjectList = 46
AddProject = 47
EditProject = 48
DeleteProject = 49
SwitchProjectWebhook = 50
Monitor = 51
ShowMonitorPage = 52
AddMonitor = 53
EditMonitor = 54
DeleteMonitor = 55
Deploy = 56
ShowDeployPage = 57
GetAllDeployList = 58
GetBindDeployList = 59
DeployDetail = 60
DeployProject = 61
DeployResetState = 62
GreyDeploy = 63
DeployRollback = 64
DeployReview = 65
DeployTask = 66
FileCompare = 67
FileSync = 68
ProcessManager = 69
ShowServerProcessPage = 70
AddServerProcess = 71
EditServerProcess = 72
DeleteServerProcess = 73
ShowOperationLogPage = 74
SFTPTransferFile = 75
SFTPDeleteFile = 76
ShowServerScriptPage = 77
SFTPEditFile = 78
ShowServerNginxPage = 79
ManageServerNginx = 80
AddNginxConfig = 81
EditNginxConfig = 82
DeleteNginxConfig = 83
UnbindServerProject = 84
ManageRepository = 85
)