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

45 lines
1.4 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
HostService
BackupService
GroupService
ImageService
2022-10-17 09:10:06 +08:00
ComposeTemplateService
2022-10-09 16:17:15 +08:00
ImageRepoService
ContainerService
CommandService
2022-08-16 23:30:23 +08:00
OperationService
2022-08-24 11:10:50 +08:00
FileService
CronjobService
2022-09-15 10:44:43 +08:00
SettingService
AppService
2022-08-16 23:30:23 +08:00
}
var ServiceGroupApp = new(ServiceGroup)
var (
hostRepo = repo.RepoGroupApp.HostRepo
backupRepo = repo.RepoGroupApp.BackupRepo
groupRepo = repo.RepoGroupApp.GroupRepo
commandRepo = repo.RepoGroupApp.CommandRepo
operationRepo = repo.RepoGroupApp.OperationRepo
commonRepo = repo.RepoGroupApp.CommonRepo
2022-10-09 16:17:15 +08:00
imageRepoRepo = repo.RepoGroupApp.ImageRepoRepo
2022-10-17 09:10:06 +08:00
composeRepo = repo.RepoGroupApp.ComposeTemplateRepo
cronjobRepo = repo.RepoGroupApp.CronjobRepo
settingRepo = repo.RepoGroupApp.SettingRepo
appRepo = repo.RepoGroupApp.AppRepo
appTagRepo = repo.RepoGroupApp.AppTagRepo
appDetailRepo = repo.RepoGroupApp.AppDetailRepo
tagRepo = repo.RepoGroupApp.TagRepo
appInstallRepo = repo.RepoGroupApp.AppInstallRepo
appInstallResourceRepo = repo.RepoGroupApp.AppInstallResourceRpo
2022-10-17 09:10:06 +08:00
appContainerRepo = repo.RepoGroupApp.AppContainerRepo
dataBaseRepo = repo.RepoGroupApp.DatabaseRepo
2022-10-12 18:57:22 +08:00
appInstallBackupRepo = repo.RepoGroupApp.AppInstallBackupRepo
2022-08-16 23:30:23 +08:00
)