1Panel/backend/app/service/entry.go

60 lines
1.3 KiB
Go
Raw Normal View History

2022-08-16 23:30:23 +08:00
package service
import "github.com/1Panel-dev/1Panel/backend/app/repo"
2022-08-16 23:30:23 +08:00
type ServiceGroup struct {
2022-09-08 18:47:15 +08:00
AuthService
2022-10-20 18:45:47 +08:00
AppService
ContainerService
ImageService
2022-10-09 16:17:15 +08:00
ImageRepoService
2022-10-20 18:45:47 +08:00
ComposeTemplateService
MysqlService
CronjobService
HostService
GroupService
CommandService
2022-08-24 11:10:50 +08:00
FileService
2022-10-20 18:45:47 +08:00
2022-09-15 10:44:43 +08:00
SettingService
2022-10-20 18:45:47 +08:00
BackupService
OperationService
2022-08-16 23:30:23 +08:00
}
var ServiceGroupApp = new(ServiceGroup)
var (
2022-10-20 18:45:47 +08:00
commonRepo = repo.RepoGroupApp.CommonRepo
appInstallBackupRepo = repo.RepoGroupApp.AppInstallBackupRepo
appRepo = repo.RepoGroupApp.AppRepo
appTagRepo = repo.RepoGroupApp.AppTagRepo
appDetailRepo = repo.RepoGroupApp.AppDetailRepo
tagRepo = repo.RepoGroupApp.TagRepo
appInstallRepo = repo.RepoGroupApp.AppInstallRepo
appInstallResourceRepo = repo.RepoGroupApp.AppInstallResourceRpo
dataBaseRepo = repo.RepoGroupApp.DatabaseRepo
2022-10-20 18:45:47 +08:00
mysqlRepo = repo.RepoGroupApp.MysqlRepo
imageRepoRepo = repo.RepoGroupApp.ImageRepoRepo
composeRepo = repo.RepoGroupApp.ComposeTemplateRepo
cronjobRepo = repo.RepoGroupApp.CronjobRepo
hostRepo = repo.RepoGroupApp.HostRepo
groupRepo = repo.RepoGroupApp.GroupRepo
commandRepo = repo.RepoGroupApp.CommandRepo
settingRepo = repo.RepoGroupApp.SettingRepo
backupRepo = repo.RepoGroupApp.BackupRepo
operationRepo = repo.RepoGroupApp.OperationRepo
2022-08-16 23:30:23 +08:00
)