2022-08-16 23:30:23 +08:00
|
|
|
package service
|
|
|
|
|
2022-10-17 16:32:31 +08:00
|
|
|
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-08-18 18:54:21 +08:00
|
|
|
HostService
|
2022-09-16 18:53:45 +08:00
|
|
|
BackupService
|
2022-08-30 18:49:07 +08:00
|
|
|
GroupService
|
2022-10-10 15:14:49 +08:00
|
|
|
ImageService
|
2022-10-17 09:10:06 +08:00
|
|
|
ComposeTemplateService
|
2022-10-09 16:17:15 +08:00
|
|
|
ImageRepoService
|
2022-10-08 18:32:02 +08:00
|
|
|
ContainerService
|
2022-08-30 18:49:07 +08:00
|
|
|
CommandService
|
2022-08-16 23:30:23 +08:00
|
|
|
OperationService
|
2022-08-24 11:10:50 +08:00
|
|
|
FileService
|
2022-09-20 19:12:48 +08:00
|
|
|
CronjobService
|
2022-09-15 10:44:43 +08:00
|
|
|
SettingService
|
2022-09-22 16:16:04 +08:00
|
|
|
AppService
|
2022-08-16 23:30:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var ServiceGroupApp = new(ServiceGroup)
|
|
|
|
|
|
|
|
var (
|
2022-10-11 16:27:58 +08:00
|
|
|
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
|
2022-10-11 16:27:58 +08:00
|
|
|
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
|
2022-10-11 16:27:58 +08:00
|
|
|
dataBaseRepo = repo.RepoGroupApp.DatabaseRepo
|
2022-10-12 18:57:22 +08:00
|
|
|
appInstallBackupRepo = repo.RepoGroupApp.AppInstallBackupRepo
|
2022-08-16 23:30:23 +08:00
|
|
|
)
|