 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func LoadMysqlClientByFrom(database string) (mysql.MysqlClient, string, error)
- func OperateFirewallPort(oldPorts, newPorts []int) error
- func StartMonitor(removeBefore bool, interval string) error
- func SyncRuntimeContainerStatus(runtime *model.Runtime) error
- type AppInstallService
- func (a *AppInstallService) ChangeAppPort(req request.PortUpdate) error
- func (a *AppInstallService) CheckExist(req request.AppInstalledInfo) (*response.AppInstalledCheck, error)
- func (a *AppInstallService) DeleteCheck(installID uint) ([]dto.AppResource, error)
- func (a *AppInstallService) GetDefaultConfigByKey(key, name string) (string, error)
- func (a *AppInstallService) GetInstallList() ([]dto.AppInstallInfo, error)
- func (a *AppInstallService) GetParams(id uint) (*response.AppConfig, error)
- func (a *AppInstallService) GetServices(key string) ([]response.AppService, error)
- func (a *AppInstallService) GetUpdateVersions(installId uint) ([]dto.AppVersion, error)
- func (a *AppInstallService) IgnoreUpgrade(req request.AppInstalledIgnoreUpgrade) error
- func (a *AppInstallService) LoadConnInfo(req dto.OperationWithNameAndType) (response.DatabaseConn, error)
- func (a *AppInstallService) LoadPort(req dto.OperationWithNameAndType) (int64, error)
- func (a *AppInstallService) Operate(req request.AppInstalledOperate) error
- func (a *AppInstallService) Page(req request.AppInstalledSearch) (int64, []response.AppInstalledDTO, error)
- func (a *AppInstallService) SearchForWebsite(req request.AppInstalledSearch) ([]response.AppInstalledDTO, error)
- func (a *AppInstallService) SyncAll(systemInit bool) error
- func (a *AppInstallService) Update(req request.AppInstalledUpdate) error
 
- type AppService
- func (a AppService) GetApp(key string) (*response.AppDTO, error)
- func (a AppService) GetAppDetail(appID uint, version, appType string) (response.AppDetailDTO, error)
- func (a AppService) GetAppDetailByID(id uint) (*response.AppDetailDTO, error)
- func (a AppService) GetAppTags() ([]response.TagDTO, error)
- func (a AppService) GetAppUpdate() (*response.AppUpdateRes, error)
- func (a AppService) GetIgnoredApp() ([]response.IgnoredApp, error)
- func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) (appInstall *model.AppInstall, err error)
- func (a AppService) PageApp(req request.AppSearch) (interface{}, error)
- func (a AppService) SyncAppListFromLocal()
- func (a AppService) SyncAppListFromRemote() (err error)
 
- type AuthService
- func (u *AuthService) CheckIsSafety(code string) (string, error)
- func (u *AuthService) LogOut(c *gin.Context) error
- func (u *AuthService) Login(c *gin.Context, info dto.Login, entrance string) (*dto.UserLoginInfo, error)
- func (u *AuthService) MFALogin(c *gin.Context, info dto.MFALogin, entrance string) (*dto.UserLoginInfo, error)
- func (u *AuthService) VerifyCode(code string) (bool, error)
 
- type BackupService
- func (u *BackupService) AppBackup(req dto.CommonBackup) error
- func (u *BackupService) AppRecover(req dto.CommonRecover) error
- func (u *BackupService) BatchDeleteRecord(ids []uint) error
- func (u *BackupService) Create(req dto.BackupOperate) error
- func (u *BackupService) Delete(id uint) error
- func (u *BackupService) DownloadRecord(info dto.DownloadRecord) (string, error)
- func (u *BackupService) GetBuckets(backupDto dto.ForBuckets) ([]interface{}, error)
- func (u *BackupService) List() ([]dto.BackupInfo, error)
- func (u *BackupService) ListFiles(req dto.BackupSearchFile) ([]string, error)
- func (u *BackupService) LoadOneDriveInfo() (string, error)
- func (u *BackupService) MysqlBackup(req dto.CommonBackup) error
- func (u *BackupService) MysqlRecover(req dto.CommonRecover) error
- func (u *BackupService) MysqlRecoverByUpload(req dto.CommonRecover) error
- func (u *BackupService) NewClient(backup *model.BackupAccount) (cloud_storage.CloudStorageClient, error)
- func (u *BackupService) RedisBackup() error
- func (u *BackupService) RedisRecover(req dto.CommonRecover) error
- func (u *BackupService) SearchRecordsWithPage(search dto.RecordSearch) (int64, []dto.BackupRecords, error)
- func (u *BackupService) Update(req dto.BackupOperate) error
- func (u *BackupService) WebsiteBackup(req dto.CommonBackup) error
- func (u *BackupService) WebsiteRecover(req dto.CommonRecover) error
 
- type CommandService
- func (u *CommandService) Create(commandDto dto.CommandOperate) error
- func (u *CommandService) Delete(ids []uint) error
- func (u *CommandService) List() ([]dto.CommandInfo, error)
- func (u *CommandService) SearchForTree() ([]dto.CommandTree, error)
- func (u *CommandService) SearchWithPage(search dto.SearchCommandWithPage) (int64, interface{}, error)
- func (u *CommandService) Update(id uint, upMap map[string]interface{}) error
 
- type ComposeTemplateService
- func (u *ComposeTemplateService) Create(composeDto dto.ComposeTemplateCreate) error
- func (u *ComposeTemplateService) Delete(ids []uint) error
- func (u *ComposeTemplateService) List() ([]dto.ComposeTemplateInfo, error)
- func (u *ComposeTemplateService) SearchWithPage(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *ComposeTemplateService) Update(id uint, upMap map[string]interface{}) error
 
- type ContainerService
- func (u *ContainerService) ComposeOperation(req dto.ComposeOperation) error
- func (u *ContainerService) ComposeUpdate(req dto.ComposeUpdate) error
- func (u *ContainerService) ContainerCreate(req dto.ContainerOperate) error
- func (u *ContainerService) ContainerInfo(req dto.OperationWithName) (*dto.ContainerOperate, error)
- func (u *ContainerService) ContainerListStats() ([]dto.ContainerListStats, error)
- func (u *ContainerService) ContainerLogClean(req dto.OperationWithName) error
- func (u *ContainerService) ContainerLogs(wsConn *websocket.Conn, containerType, container, since, tail string, ...) error
- func (u *ContainerService) ContainerOperation(req dto.ContainerOperation) error
- func (u *ContainerService) ContainerRename(req dto.ContainerRename) error
- func (u *ContainerService) ContainerStats(id string) (*dto.ContainerStats, error)
- func (u *ContainerService) ContainerUpdate(req dto.ContainerOperate) error
- func (u *ContainerService) ContainerUpgrade(req dto.ContainerUpgrade) error
- func (u *ContainerService) CreateCompose(req dto.ComposeCreate) (string, error)
- func (u *ContainerService) CreateNetwork(req dto.NetworkCreate) error
- func (u *ContainerService) CreateVolume(req dto.VolumeCreate) error
- func (u *ContainerService) DeleteNetwork(req dto.BatchDelete) error
- func (u *ContainerService) DeleteVolume(req dto.BatchDelete) error
- func (u *ContainerService) Inspect(req dto.InspectReq) (string, error)
- func (u *ContainerService) List() ([]string, error)
- func (u *ContainerService) ListNetwork() ([]dto.Options, error)
- func (u *ContainerService) ListVolume() ([]dto.Options, error)
- func (u *ContainerService) LoadContainerLogs(req dto.OperationWithNameAndType) string
- func (u *ContainerService) LoadResourceLimit() (*dto.ResourceLimit, error)
- func (u *ContainerService) Page(req dto.PageContainer) (int64, interface{}, error)
- func (u *ContainerService) PageCompose(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *ContainerService) PageNetwork(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *ContainerService) PageVolume(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *ContainerService) Prune(req dto.ContainerPrune) (dto.ContainerPruneReport, error)
- func (u *ContainerService) TestCompose(req dto.ComposeCreate) (bool, error)
 
- type CronjobService
- func (u *CronjobService) AddCronJob(cronjob *model.Cronjob) (int, error)
- func (u *CronjobService) CleanRecord(req dto.CronjobClean) error
- func (u *CronjobService) Create(cronjobDto dto.CronjobCreate) error
- func (u *CronjobService) Delete(req dto.CronjobBatchDelete) error
- func (u *CronjobService) Download(down dto.CronjobDownload) (string, error)
- func (u *CronjobService) HandleJob(cronjob *model.Cronjob)
- func (u *CronjobService) HandleOnce(id uint) error
- func (u *CronjobService) HandleRmExpired(backType, backupPath, localDir string, cronjob *model.Cronjob, ...)
- func (u *CronjobService) LoadRecordLog(req dto.OperateByID) (string, error)
- func (u *CronjobService) SearchRecords(search dto.SearchRecord) (int64, interface{}, error)
- func (u *CronjobService) SearchWithPage(search dto.SearchWithPage) (int64, interface{}, error)
- func (u *CronjobService) StartJob(cronjob *model.Cronjob) (int, error)
- func (u *CronjobService) Update(id uint, req dto.CronjobUpdate) error
- func (u *CronjobService) UpdateStatus(id uint, status string) error
 
- type DashboardService
- type DatabaseOp
- type DatabaseService
- func (u *DatabaseService) CheckDatabase(req dto.DatabaseCreate) bool
- func (u *DatabaseService) Create(req dto.DatabaseCreate) error
- func (u *DatabaseService) Delete(req dto.DatabaseDelete) error
- func (u *DatabaseService) DeleteCheck(id uint) ([]string, error)
- func (u *DatabaseService) Get(name string) (dto.DatabaseInfo, error)
- func (u *DatabaseService) List(dbType string) ([]dto.DatabaseOption, error)
- func (u *DatabaseService) SearchWithPage(search dto.DatabaseSearch) (int64, interface{}, error)
- func (u *DatabaseService) Update(req dto.DatabaseUpdate) error
 
- type DockerService
- func (u *DockerService) LoadDockerConf() *dto.DaemonJsonConf
- func (u *DockerService) LoadDockerStatus() string
- func (u *DockerService) OperateDocker(req dto.DockerOperation) error
- func (u *DockerService) UpdateConf(req dto.SettingUpdate) error
- func (u *DockerService) UpdateConfByFile(req dto.DaemonJsonUpdateByFile) error
- func (u *DockerService) UpdateLogOption(req dto.LogOption) error
 
- type FavoriteService
- type FileService
- func (f *FileService) BatchChangeModeAndOwner(op request.FileRoleReq) error
- func (f *FileService) BatchDelete(op request.FileBatchDelete) error
- func (f *FileService) ChangeMode(op request.FileCreate) error
- func (f *FileService) ChangeName(req request.FileRename) error
- func (f *FileService) ChangeOwner(req request.FileRoleUpdate) error
- func (f *FileService) Compress(c request.FileCompress) error
- func (f *FileService) Create(op request.FileCreate) error
- func (f *FileService) DeCompress(c request.FileDeCompress) error
- func (f *FileService) Delete(op request.FileDelete) error
- func (f *FileService) DirSize(req request.DirSizeReq) (response.DirSizeRes, error)
- func (f *FileService) FileDownload(d request.FileDownload) (string, error)
- func (f *FileService) GetContent(op request.FileContentReq) (response.FileInfo, error)
- func (f *FileService) GetFileList(op request.FileOption) (response.FileInfo, error)
- func (f *FileService) GetFileTree(op request.FileOption) ([]response.FileTree, error)
- func (f *FileService) MvFile(m request.FileMove) error
- func (f *FileService) SaveContent(edit request.FileEdit) error
- func (f *FileService) SearchUploadWithPage(req request.SearchUploadWithPage) (int64, interface{}, error)
- func (f *FileService) Wget(w request.FileWget) (string, error)
 
- type FirewallService
- func (u *FirewallService) BatchOperateRule(req dto.BatchRuleOperate) error
- func (u *FirewallService) LoadBaseInfo() (dto.FirewallBaseInfo, error)
- func (u *FirewallService) OperateAddressRule(req dto.AddrRuleOperate, reload bool) error
- func (u *FirewallService) OperateFirewall(operation string) error
- func (u *FirewallService) OperatePortRule(req dto.PortRuleOperate, reload bool) error
- func (u *FirewallService) SearchWithPage(req dto.RuleSearch) (int64, interface{}, error)
- func (u *FirewallService) UpdateAddrRule(req dto.AddrRuleUpdate) error
- func (u *FirewallService) UpdateDescription(req dto.UpdateFirewallDescription) error
- func (u *FirewallService) UpdatePortRule(req dto.PortRuleUpdate) error
 
- type GroupService
- type HostService
- func (u *HostService) Create(req dto.HostOperate) (*dto.HostInfo, error)
- func (u *HostService) Delete(ids []uint) error
- func (u *HostService) EncryptHost(itemVal string) (string, error)
- func (u *HostService) GetHostInfo(id uint) (*model.Host, error)
- func (u *HostService) SearchForTree(search dto.SearchForTree) ([]dto.HostTree, error)
- func (u *HostService) SearchWithPage(search dto.SearchHostWithPage) (int64, interface{}, error)
- func (u *HostService) TestByInfo(req dto.HostConnTest) bool
- func (u *HostService) TestLocalConn(id uint) bool
- func (u *HostService) Update(id uint, upMap map[string]interface{}) error
 
- type HostToolService
- func (h *HostToolService) CreateToolConfig(req request.HostToolCreate) error
- func (h *HostToolService) GetSupervisorProcessConfig() ([]response.SupervisorProcessConfig, error)
- func (h *HostToolService) GetToolLog(req request.HostToolLogReq) (string, error)
- func (h *HostToolService) GetToolStatus(req request.HostToolReq) (*response.HostToolRes, error)
- func (h *HostToolService) OperateSupervisorProcess(req request.SupervisorProcessConfig) error
- func (h *HostToolService) OperateSupervisorProcessFile(req request.SupervisorProcessFileReq) (string, error)
- func (h *HostToolService) OperateTool(req request.HostToolReq) error
- func (h *HostToolService) OperateToolConfig(req request.HostToolConfig) (*response.HostToolConfig, error)
 
- type IAppInstallService
- type IAppService
- type IAuthService
- type IBackupService
- type ICommandService
- type IComposeTemplateService
- type IContainerService
- type ICronjobService
- type IDashboardService
- type IDatabaseService
- type IDockerService
- type IFavoriteService
- type IFileService
- type IFirewallService
- type IGroupService
- type IHostService
- type IHostToolService
- type IImageRepoService
- type IImageService
- type ILogService
- type IMonitorService
- type IMysqlService
- type INginxService
- type IProcessService
- type IRecycleBinService
- type IRedisService
- type IRuntimeService
- type ISSHService
- type ISettingService
- type ISnapshotService
- type IUpgradeService
- type IWebsiteAcmeAccountService
- type IWebsiteDnsAccountService
- type IWebsiteSSLService
- type IWebsiteService
- type ImageRepoService
- func (u *ImageRepoService) BatchDelete(req dto.ImageRepoDelete) error
- func (u *ImageRepoService) CheckConn(host, user, password string) error
- func (u *ImageRepoService) Create(req dto.ImageRepoCreate) error
- func (u *ImageRepoService) List() ([]dto.ImageRepoOption, error)
- func (u *ImageRepoService) Login(req dto.OperateByID) error
- func (u *ImageRepoService) Page(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *ImageRepoService) Update(req dto.ImageRepoUpdate) error
 
- type ImageService
- func (u *ImageService) ImageBuild(req dto.ImageBuild) (string, error)
- func (u *ImageService) ImageLoad(req dto.ImageLoad) error
- func (u *ImageService) ImagePull(req dto.ImagePull) (string, error)
- func (u *ImageService) ImagePush(req dto.ImagePush) (string, error)
- func (u *ImageService) ImageRemove(req dto.BatchDelete) error
- func (u *ImageService) ImageSave(req dto.ImageSave) error
- func (u *ImageService) ImageTag(req dto.ImageTag) error
- func (u *ImageService) List() ([]dto.Options, error)
- func (u *ImageService) Page(req dto.SearchWithPage) (int64, interface{}, error)
 
- type LogService
- func (u *LogService) CleanLogs(logtype string) error
- func (u *LogService) CreateLoginLog(operation model.LoginLog) error
- func (u *LogService) CreateOperationLog(operation model.OperationLog) error
- func (u *LogService) ListSystemLogFile() ([]string, error)
- func (u *LogService) LoadSystemLog(name string) (string, error)
- func (u *LogService) PageLoginLog(req dto.SearchLgLogWithPage) (int64, interface{}, error)
- func (u *LogService) PageOperationLog(req dto.SearchOpLogWithPage) (int64, interface{}, error)
 
- type MonitorService
- type MysqlService
- func (u *MysqlService) ChangeAccess(req dto.ChangeDBInfo) error
- func (u *MysqlService) ChangePassword(req dto.ChangeDBInfo) error
- func (u *MysqlService) Create(ctx context.Context, req dto.MysqlDBCreate) (*model.DatabaseMysql, error)
- func (u *MysqlService) Delete(ctx context.Context, req dto.MysqlDBDelete) error
- func (u *MysqlService) DeleteCheck(req dto.MysqlDBDeleteCheck) ([]string, error)
- func (u *MysqlService) ListDBOption() ([]dto.MysqlOption, error)
- func (u *MysqlService) LoadBaseInfo(req dto.OperationWithNameAndType) (*dto.DBBaseInfo, error)
- func (u *MysqlService) LoadDatabaseFile(req dto.OperationWithNameAndType) (string, error)
- func (u *MysqlService) LoadFromRemote(req dto.MysqlLoadDB) error
- func (u *MysqlService) LoadRemoteAccess(req dto.OperationWithNameAndType) (bool, error)
- func (u *MysqlService) LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlStatus, error)
- func (u *MysqlService) LoadVariables(req dto.OperationWithNameAndType) (*dto.MysqlVariables, error)
- func (u *MysqlService) SearchWithPage(search dto.MysqlDBSearch) (int64, interface{}, error)
- func (u *MysqlService) UpdateConfByFile(req dto.MysqlConfUpdateByFile) error
- func (u *MysqlService) UpdateDescription(req dto.UpdateDescription) error
- func (u *MysqlService) UpdateVariables(req dto.MysqlVariablesUpdate) error
 
- type NginxService
- func (n NginxService) GetConfigByScope(req request.NginxScopeReq) ([]response.NginxParam, error)
- func (n NginxService) GetNginxConfig() (*response.NginxFile, error)
- func (n NginxService) GetStatus() (response.NginxStatus, error)
- func (n NginxService) UpdateConfigByScope(req request.NginxConfigUpdate) error
- func (n NginxService) UpdateConfigFile(req request.NginxConfigFileUpdate) error
 
- type ProcessService
- type RecycleBinService
- type RedisService
- func (u *RedisService) ChangePassword(req dto.ChangeRedisPass) error
- func (u *RedisService) LoadConf() (*dto.RedisConf, error)
- func (u *RedisService) LoadPersistenceConf() (*dto.RedisPersistence, error)
- func (u *RedisService) LoadStatus() (*dto.RedisStatus, error)
- func (u *RedisService) SearchBackupListWithPage(req dto.PageInfo) (int64, interface{}, error)
- func (u *RedisService) UpdateConf(req dto.RedisConfUpdate) error
- func (u *RedisService) UpdatePersistenceConf(req dto.RedisConfPersistenceUpdate) error
 
- type RuntimeService
- func (r *RuntimeService) Create(create request.RuntimeCreate) (err error)
- func (r *RuntimeService) Delete(runtimeDelete request.RuntimeDelete) error
- func (r *RuntimeService) Get(id uint) (*response.RuntimeDTO, error)
- func (r *RuntimeService) GetNodeModules(req request.NodeModuleReq) ([]response.NodeModule, error)
- func (r *RuntimeService) GetNodePackageRunScript(req request.NodePackageReq) ([]response.PackageScripts, error)
- func (r *RuntimeService) OperateNodeModules(req request.NodeModuleOperateReq) error
- func (r *RuntimeService) OperateRuntime(req request.RuntimeOperate) error
- func (r *RuntimeService) Page(req request.RuntimeSearch) (int64, []response.RuntimeDTO, error)
- func (r *RuntimeService) SyncForRestart() error
- func (r *RuntimeService) Update(req request.RuntimeUpdate) error
 
- type SSHService
- func (u *SSHService) AnalysisLog(req dto.SearchForAnalysis) (*dto.AnalysisRes, error)
- func (u *SSHService) GenerateSSH(req dto.GenerateSSH) error
- func (u *SSHService) GetSSHInfo() (*dto.SSHInfo, error)
- func (u *SSHService) LoadLog(req dto.SearchSSHLog) (*dto.SSHLog, error)
- func (u *SSHService) LoadSSHConf() (string, error)
- func (u *SSHService) LoadSSHSecret(mode string) (string, error)
- func (u *SSHService) OperateSSH(operation string) error
- func (u *SSHService) Update(req dto.SSHUpdate) error
- func (u *SSHService) UpdateByFile(value string) error
 
- type SettingService
- func (u *SettingService) GetSettingInfo() (*dto.SettingInfo, error)
- func (u *SettingService) HandlePasswordExpired(c *gin.Context, old, new string) error
- func (u *SettingService) LoadFromCert() (*dto.SSLInfo, error)
- func (u *SettingService) LoadInterfaceAddr() ([]string, error)
- func (u *SettingService) LoadTimeZone() ([]string, error)
- func (u *SettingService) SyncTime(req dto.SyncTime) error
- func (u *SettingService) SystemClean(req []dto.Clean)
- func (u *SettingService) SystemCleanForCronjob() (string, error)
- func (u *SettingService) SystemScan() dto.CleanData
- func (u *SettingService) Update(key, value string) error
- func (u *SettingService) UpdateBindInfo(req dto.BindInfo) error
- func (u *SettingService) UpdatePassword(c *gin.Context, old, new string) error
- func (u *SettingService) UpdatePort(port uint) error
- func (u *SettingService) UpdateSSL(c *gin.Context, req dto.SSLUpdate) error
 
- type SnapshotJson
- type SnapshotService
- func (u *SnapshotService) Delete(req dto.BatchDeleteReq) error
- func (u *SnapshotService) HandleSnapshot(isCronjob bool, req dto.SnapshotCreate, timeNow string) (string, string, error)
- func (u *SnapshotService) LoadSnapShotStatus(id uint) (*dto.SnapshotStatus, error)
- func (u *SnapshotService) SearchWithPage(req dto.SearchWithPage) (int64, interface{}, error)
- func (u *SnapshotService) SnapshotCreate(req dto.SnapshotCreate) error
- func (u *SnapshotService) SnapshotImport(req dto.SnapshotImport) error
- func (u *SnapshotService) SnapshotRecover(req dto.SnapshotRecover) error
- func (u *SnapshotService) SnapshotRollback(req dto.SnapshotRecover) error
- func (u *SnapshotService) UpdateDescription(req dto.UpdateDescription) error
 
- type UpgradeService
- type WebsiteAcmeAccountService
- type WebsiteDnsAccountService
- func (w WebsiteDnsAccountService) Create(create request.WebsiteDnsAccountCreate) (request.WebsiteDnsAccountCreate, error)
- func (w WebsiteDnsAccountService) Delete(id uint) error
- func (w WebsiteDnsAccountService) Page(search dto.PageInfo) (int64, []response.WebsiteDnsAccountDTO, error)
- func (w WebsiteDnsAccountService) Update(update request.WebsiteDnsAccountUpdate) (request.WebsiteDnsAccountUpdate, error)
 
- type WebsiteSSLService
- func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.WebsiteSSLCreate, error)
- func (w WebsiteSSLService) Delete(id uint) error
- func (w WebsiteSSLService) GetDNSResolve(req request.WebsiteDNSReq) ([]response.WebsiteDNSRes, error)
- func (w WebsiteSSLService) GetSSL(id uint) (*response.WebsiteSSLDTO, error)
- func (w WebsiteSSLService) GetWebsiteSSL(websiteId uint) (response.WebsiteSSLDTO, error)
- func (w WebsiteSSLService) Page(search request.WebsiteSSLSearch) (int64, []response.WebsiteSSLDTO, error)
- func (w WebsiteSSLService) Renew(sslId uint) error
- func (w WebsiteSSLService) Search(search request.WebsiteSSLSearch) ([]response.WebsiteSSLDTO, error)
- func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error
- func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error
 
- type WebsiteService
- func (w WebsiteService) ChangeDefaultServer(id uint) error
- func (w WebsiteService) ChangePHPVersion(req request.WebsitePHPVersionReq) error
- func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
- func (w WebsiteService) CreateWebsiteDomain(create request.WebsiteDomainCreate) ([]model.WebsiteDomain, error)
- func (w WebsiteService) DeleteWebsite(req request.WebsiteDelete) error
- func (w WebsiteService) DeleteWebsiteDomain(domainId uint) error
- func (w WebsiteService) GetAntiLeech(id uint) (*response.NginxAntiLeechRes, error)
- func (w WebsiteService) GetAuthBasics(req request.NginxAuthReq) (res response.NginxAuthRes, err error)
- func (w WebsiteService) GetNginxConfigByScope(req request.NginxScopeReq) (*response.WebsiteNginxConfig, error)
- func (w WebsiteService) GetPHPConfig(id uint) (*response.PHPConfig, error)
- func (w WebsiteService) GetProxies(id uint) (res []request.WebsiteProxyConfig, err error)
- func (w WebsiteService) GetRedirect(id uint) (res []response.NginxRedirectConfig, err error)
- func (w WebsiteService) GetRewriteConfig(req request.NginxRewriteReq) (*response.NginxRewriteRes, error)
- func (w WebsiteService) GetWafConfig(req request.WebsiteWafReq) (response.WebsiteWafConfig, error)
- func (w WebsiteService) GetWebsite(id uint) (response.WebsiteDTO, error)
- func (w WebsiteService) GetWebsiteDomain(websiteId uint) ([]model.WebsiteDomain, error)
- func (w WebsiteService) GetWebsiteHTTPS(websiteId uint) (response.WebsiteHTTPS, error)
- func (w WebsiteService) GetWebsiteNginxConfig(websiteId uint, configType string) (response.FileInfo, error)
- func (w WebsiteService) GetWebsiteOptions() ([]string, error)
- func (w WebsiteService) GetWebsites() ([]response.WebsiteDTO, error)
- func (w WebsiteService) LoadWebsiteDirConfig(req request.WebsiteCommonReq) (*response.WebsiteDirConfig, error)
- func (w WebsiteService) OpWebsite(req request.WebsiteOp) error
- func (w WebsiteService) OpWebsiteHTTPS(ctx context.Context, req request.WebsiteHTTPSOp) (*response.WebsiteHTTPS, error)
- func (w WebsiteService) OpWebsiteLog(req request.WebsiteLogReq) (*response.WebsiteLog, error)
- func (w WebsiteService) OperateProxy(req request.WebsiteProxyConfig) (err error)
- func (w WebsiteService) OperateRedirect(req request.NginxRedirectReq) (err error)
- func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []response.WebsiteDTO, error)
- func (w WebsiteService) PreInstallCheck(req request.WebsiteInstallCheckReq) ([]response.WebsitePreInstallCheck, error)
- func (w WebsiteService) UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err error)
- func (w WebsiteService) UpdateAuthBasic(req request.NginxAuthUpdate) (err error)
- func (w WebsiteService) UpdateNginxConfigByScope(req request.NginxConfigUpdate) error
- func (w WebsiteService) UpdateNginxConfigFile(req request.WebsiteNginxUpdate) error
- func (w WebsiteService) UpdatePHPConfig(req request.WebsitePHPConfigUpdate) (err error)
- func (w WebsiteService) UpdatePHPConfigFile(req request.WebsitePHPFileUpdate) error
- func (w WebsiteService) UpdateProxyFile(req request.NginxProxyUpdate) (err error)
- func (w WebsiteService) UpdateRedirectFile(req request.NginxRedirectUpdate) (err error)
- func (w WebsiteService) UpdateRewriteConfig(req request.NginxRewriteUpdate) error
- func (w WebsiteService) UpdateSiteDir(req request.WebsiteUpdateDir) error
- func (w WebsiteService) UpdateSitePermission(req request.WebsiteUpdateDirPermission) error
- func (w WebsiteService) UpdateWafConfig(req request.WebsiteWafUpdate) error
- func (w WebsiteService) UpdateWafFile(req request.WebsiteWafFileUpdate) (err error)
- func (w WebsiteService) UpdateWebsite(req request.WebsiteUpdate) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var DatabaseKeys = map[string]uint{
	"mysql":      3306,
	"mariadb":    3306,
	"postgresql": 5432,
	"mongodb":    27017,
	"redis":      6379,
	"memcached":  11211,
}
    
      View Source
      
  
var InitTypes = map[string]struct{}{
	"runtime": {},
	"php":     {},
	"node":    {},
}
    Functions ¶
func LoadMysqlClientByFrom ¶ added in v1.5.0
func LoadMysqlClientByFrom(database string) (mysql.MysqlClient, string, error)
func OperateFirewallPort ¶ added in v1.1.0
func StartMonitor ¶ added in v1.3.0
func SyncRuntimeContainerStatus ¶ added in v1.7.0
Types ¶
type AppInstallService ¶
type AppInstallService struct {
}
    func (*AppInstallService) ChangeAppPort ¶
func (a *AppInstallService) ChangeAppPort(req request.PortUpdate) error
func (*AppInstallService) CheckExist ¶
func (a *AppInstallService) CheckExist(req request.AppInstalledInfo) (*response.AppInstalledCheck, error)
func (*AppInstallService) DeleteCheck ¶
func (a *AppInstallService) DeleteCheck(installID uint) ([]dto.AppResource, error)
func (*AppInstallService) GetDefaultConfigByKey ¶
func (a *AppInstallService) GetDefaultConfigByKey(key, name string) (string, error)
func (*AppInstallService) GetInstallList ¶ added in v1.6.0
func (a *AppInstallService) GetInstallList() ([]dto.AppInstallInfo, error)
func (*AppInstallService) GetParams ¶
func (a *AppInstallService) GetParams(id uint) (*response.AppConfig, error)
func (*AppInstallService) GetServices ¶
func (a *AppInstallService) GetServices(key string) ([]response.AppService, error)
func (*AppInstallService) GetUpdateVersions ¶
func (a *AppInstallService) GetUpdateVersions(installId uint) ([]dto.AppVersion, error)
func (*AppInstallService) IgnoreUpgrade ¶ added in v1.4.0
func (a *AppInstallService) IgnoreUpgrade(req request.AppInstalledIgnoreUpgrade) error
func (*AppInstallService) LoadConnInfo ¶ added in v1.1.0
func (a *AppInstallService) LoadConnInfo(req dto.OperationWithNameAndType) (response.DatabaseConn, error)
func (*AppInstallService) LoadPort ¶
func (a *AppInstallService) LoadPort(req dto.OperationWithNameAndType) (int64, error)
func (*AppInstallService) Operate ¶
func (a *AppInstallService) Operate(req request.AppInstalledOperate) error
func (*AppInstallService) Page ¶
func (a *AppInstallService) Page(req request.AppInstalledSearch) (int64, []response.AppInstalledDTO, error)
func (*AppInstallService) SearchForWebsite ¶
func (a *AppInstallService) SearchForWebsite(req request.AppInstalledSearch) ([]response.AppInstalledDTO, error)
func (*AppInstallService) SyncAll ¶
func (a *AppInstallService) SyncAll(systemInit bool) error
func (*AppInstallService) Update ¶
func (a *AppInstallService) Update(req request.AppInstalledUpdate) error
type AppService ¶
type AppService struct {
}
    func (AppService) GetAppDetail ¶
func (a AppService) GetAppDetail(appID uint, version, appType string) (response.AppDetailDTO, error)
func (AppService) GetAppDetailByID ¶ added in v1.1.0
func (a AppService) GetAppDetailByID(id uint) (*response.AppDetailDTO, error)
func (AppService) GetAppTags ¶
func (a AppService) GetAppTags() ([]response.TagDTO, error)
func (AppService) GetAppUpdate ¶
func (a AppService) GetAppUpdate() (*response.AppUpdateRes, error)
func (AppService) GetIgnoredApp ¶ added in v1.4.0
func (a AppService) GetIgnoredApp() ([]response.IgnoredApp, error)
func (AppService) Install ¶
func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) (appInstall *model.AppInstall, err error)
func (AppService) SyncAppListFromLocal ¶ added in v1.1.0
func (a AppService) SyncAppListFromLocal()
func (AppService) SyncAppListFromRemote ¶ added in v1.1.0
func (a AppService) SyncAppListFromRemote() (err error)
type AuthService ¶
type AuthService struct{}
    func (*AuthService) CheckIsSafety ¶ added in v1.2.0
func (u *AuthService) CheckIsSafety(code string) (string, error)
func (*AuthService) Login ¶
func (u *AuthService) Login(c *gin.Context, info dto.Login, entrance string) (*dto.UserLoginInfo, error)
func (*AuthService) MFALogin ¶
func (u *AuthService) MFALogin(c *gin.Context, info dto.MFALogin, entrance string) (*dto.UserLoginInfo, error)
func (*AuthService) VerifyCode ¶
func (u *AuthService) VerifyCode(code string) (bool, error)
type BackupService ¶
type BackupService struct{}
    func (*BackupService) AppBackup ¶
func (u *BackupService) AppBackup(req dto.CommonBackup) error
func (*BackupService) AppRecover ¶
func (u *BackupService) AppRecover(req dto.CommonRecover) error
func (*BackupService) BatchDeleteRecord ¶
func (u *BackupService) BatchDeleteRecord(ids []uint) error
func (*BackupService) Create ¶
func (u *BackupService) Create(req dto.BackupOperate) error
func (*BackupService) Delete ¶ added in v1.1.1
func (u *BackupService) Delete(id uint) error
func (*BackupService) DownloadRecord ¶
func (u *BackupService) DownloadRecord(info dto.DownloadRecord) (string, error)
func (*BackupService) GetBuckets ¶
func (u *BackupService) GetBuckets(backupDto dto.ForBuckets) ([]interface{}, error)
func (*BackupService) List ¶
func (u *BackupService) List() ([]dto.BackupInfo, error)
func (*BackupService) ListFiles ¶
func (u *BackupService) ListFiles(req dto.BackupSearchFile) ([]string, error)
func (*BackupService) LoadOneDriveInfo ¶ added in v1.4.0
func (u *BackupService) LoadOneDriveInfo() (string, error)
func (*BackupService) MysqlBackup ¶
func (u *BackupService) MysqlBackup(req dto.CommonBackup) error
func (*BackupService) MysqlRecover ¶
func (u *BackupService) MysqlRecover(req dto.CommonRecover) error
func (*BackupService) MysqlRecoverByUpload ¶
func (u *BackupService) MysqlRecoverByUpload(req dto.CommonRecover) error
func (*BackupService) NewClient ¶
func (u *BackupService) NewClient(backup *model.BackupAccount) (cloud_storage.CloudStorageClient, error)
func (*BackupService) RedisBackup ¶
func (u *BackupService) RedisBackup() error
func (*BackupService) RedisRecover ¶
func (u *BackupService) RedisRecover(req dto.CommonRecover) error
func (*BackupService) SearchRecordsWithPage ¶
func (u *BackupService) SearchRecordsWithPage(search dto.RecordSearch) (int64, []dto.BackupRecords, error)
func (*BackupService) Update ¶
func (u *BackupService) Update(req dto.BackupOperate) error
func (*BackupService) WebsiteBackup ¶
func (u *BackupService) WebsiteBackup(req dto.CommonBackup) error
func (*BackupService) WebsiteRecover ¶
func (u *BackupService) WebsiteRecover(req dto.CommonRecover) error
type CommandService ¶
type CommandService struct{}
    func (*CommandService) Create ¶
func (u *CommandService) Create(commandDto dto.CommandOperate) error
func (*CommandService) Delete ¶
func (u *CommandService) Delete(ids []uint) error
func (*CommandService) List ¶
func (u *CommandService) List() ([]dto.CommandInfo, error)
func (*CommandService) SearchForTree ¶ added in v1.8.0
func (u *CommandService) SearchForTree() ([]dto.CommandTree, error)
func (*CommandService) SearchWithPage ¶
func (u *CommandService) SearchWithPage(search dto.SearchCommandWithPage) (int64, interface{}, error)
type ComposeTemplateService ¶
type ComposeTemplateService struct{}
    func (*ComposeTemplateService) Create ¶
func (u *ComposeTemplateService) Create(composeDto dto.ComposeTemplateCreate) error
func (*ComposeTemplateService) Delete ¶
func (u *ComposeTemplateService) Delete(ids []uint) error
func (*ComposeTemplateService) List ¶
func (u *ComposeTemplateService) List() ([]dto.ComposeTemplateInfo, error)
func (*ComposeTemplateService) SearchWithPage ¶
func (u *ComposeTemplateService) SearchWithPage(req dto.SearchWithPage) (int64, interface{}, error)
type ContainerService ¶
type ContainerService struct{}
    func (*ContainerService) ComposeOperation ¶
func (u *ContainerService) ComposeOperation(req dto.ComposeOperation) error
func (*ContainerService) ComposeUpdate ¶
func (u *ContainerService) ComposeUpdate(req dto.ComposeUpdate) error
func (*ContainerService) ContainerCreate ¶
func (u *ContainerService) ContainerCreate(req dto.ContainerOperate) error
func (*ContainerService) ContainerInfo ¶ added in v1.4.0
func (u *ContainerService) ContainerInfo(req dto.OperationWithName) (*dto.ContainerOperate, error)
func (*ContainerService) ContainerListStats ¶ added in v1.4.0
func (u *ContainerService) ContainerListStats() ([]dto.ContainerListStats, error)
func (*ContainerService) ContainerLogClean ¶ added in v1.3.0
func (u *ContainerService) ContainerLogClean(req dto.OperationWithName) error
func (*ContainerService) ContainerLogs ¶
func (*ContainerService) ContainerOperation ¶
func (u *ContainerService) ContainerOperation(req dto.ContainerOperation) error
func (*ContainerService) ContainerRename ¶ added in v1.8.0
func (u *ContainerService) ContainerRename(req dto.ContainerRename) error
func (*ContainerService) ContainerStats ¶
func (u *ContainerService) ContainerStats(id string) (*dto.ContainerStats, error)
func (*ContainerService) ContainerUpdate ¶ added in v1.4.0
func (u *ContainerService) ContainerUpdate(req dto.ContainerOperate) error
func (*ContainerService) ContainerUpgrade ¶ added in v1.4.0
func (u *ContainerService) ContainerUpgrade(req dto.ContainerUpgrade) error
func (*ContainerService) CreateCompose ¶
func (u *ContainerService) CreateCompose(req dto.ComposeCreate) (string, error)
func (*ContainerService) CreateNetwork ¶
func (u *ContainerService) CreateNetwork(req dto.NetworkCreate) error
func (*ContainerService) CreateVolume ¶
func (u *ContainerService) CreateVolume(req dto.VolumeCreate) error
func (*ContainerService) DeleteNetwork ¶
func (u *ContainerService) DeleteNetwork(req dto.BatchDelete) error
func (*ContainerService) DeleteVolume ¶
func (u *ContainerService) DeleteVolume(req dto.BatchDelete) error
func (*ContainerService) Inspect ¶
func (u *ContainerService) Inspect(req dto.InspectReq) (string, error)
func (*ContainerService) List ¶ added in v1.4.0
func (u *ContainerService) List() ([]string, error)
func (*ContainerService) ListNetwork ¶ added in v1.4.0
func (u *ContainerService) ListNetwork() ([]dto.Options, error)
func (*ContainerService) ListVolume ¶
func (u *ContainerService) ListVolume() ([]dto.Options, error)
func (*ContainerService) LoadContainerLogs ¶ added in v1.5.0
func (u *ContainerService) LoadContainerLogs(req dto.OperationWithNameAndType) string
func (*ContainerService) LoadResourceLimit ¶ added in v1.7.0
func (u *ContainerService) LoadResourceLimit() (*dto.ResourceLimit, error)
func (*ContainerService) Page ¶
func (u *ContainerService) Page(req dto.PageContainer) (int64, interface{}, error)
func (*ContainerService) PageCompose ¶
func (u *ContainerService) PageCompose(req dto.SearchWithPage) (int64, interface{}, error)
func (*ContainerService) PageNetwork ¶
func (u *ContainerService) PageNetwork(req dto.SearchWithPage) (int64, interface{}, error)
func (*ContainerService) PageVolume ¶
func (u *ContainerService) PageVolume(req dto.SearchWithPage) (int64, interface{}, error)
func (*ContainerService) Prune ¶ added in v1.3.0
func (u *ContainerService) Prune(req dto.ContainerPrune) (dto.ContainerPruneReport, error)
func (*ContainerService) TestCompose ¶ added in v1.0.3
func (u *ContainerService) TestCompose(req dto.ComposeCreate) (bool, error)
type CronjobService ¶
type CronjobService struct{}
    func (*CronjobService) AddCronJob ¶
func (u *CronjobService) AddCronJob(cronjob *model.Cronjob) (int, error)
func (*CronjobService) CleanRecord ¶ added in v1.1.0
func (u *CronjobService) CleanRecord(req dto.CronjobClean) error
func (*CronjobService) Create ¶
func (u *CronjobService) Create(cronjobDto dto.CronjobCreate) error
func (*CronjobService) Delete ¶
func (u *CronjobService) Delete(req dto.CronjobBatchDelete) error
func (*CronjobService) Download ¶
func (u *CronjobService) Download(down dto.CronjobDownload) (string, error)
func (*CronjobService) HandleJob ¶
func (u *CronjobService) HandleJob(cronjob *model.Cronjob)
func (*CronjobService) HandleOnce ¶
func (u *CronjobService) HandleOnce(id uint) error
func (*CronjobService) HandleRmExpired ¶
func (u *CronjobService) HandleRmExpired(backType, backupPath, localDir string, cronjob *model.Cronjob, backClient cloud_storage.CloudStorageClient)
func (*CronjobService) LoadRecordLog ¶ added in v1.5.0
func (u *CronjobService) LoadRecordLog(req dto.OperateByID) (string, error)
func (*CronjobService) SearchRecords ¶
func (u *CronjobService) SearchRecords(search dto.SearchRecord) (int64, interface{}, error)
func (*CronjobService) SearchWithPage ¶
func (u *CronjobService) SearchWithPage(search dto.SearchWithPage) (int64, interface{}, error)
func (*CronjobService) StartJob ¶
func (u *CronjobService) StartJob(cronjob *model.Cronjob) (int, error)
func (*CronjobService) Update ¶
func (u *CronjobService) Update(id uint, req dto.CronjobUpdate) error
func (*CronjobService) UpdateStatus ¶
func (u *CronjobService) UpdateStatus(id uint, status string) error
type DashboardService ¶
type DashboardService struct{}
    func (*DashboardService) LoadBaseInfo ¶
func (u *DashboardService) LoadBaseInfo(ioOption string, netOption string) (*dto.DashboardBase, error)
func (*DashboardService) LoadCurrentInfo ¶
func (u *DashboardService) LoadCurrentInfo(ioOption string, netOption string) *dto.DashboardCurrent
func (*DashboardService) Restart ¶ added in v1.8.0
func (u *DashboardService) Restart(operation string) error
type DatabaseOp ¶
type DatabaseOp string
var ( Add DatabaseOp = "add" Delete DatabaseOp = "delete" )
type DatabaseService ¶ added in v1.6.0
type DatabaseService struct{}
    func (*DatabaseService) CheckDatabase ¶ added in v1.6.0
func (u *DatabaseService) CheckDatabase(req dto.DatabaseCreate) bool
func (*DatabaseService) Create ¶ added in v1.6.0
func (u *DatabaseService) Create(req dto.DatabaseCreate) error
func (*DatabaseService) Delete ¶ added in v1.6.0
func (u *DatabaseService) Delete(req dto.DatabaseDelete) error
func (*DatabaseService) DeleteCheck ¶ added in v1.7.0
func (u *DatabaseService) DeleteCheck(id uint) ([]string, error)
func (*DatabaseService) Get ¶ added in v1.6.0
func (u *DatabaseService) Get(name string) (dto.DatabaseInfo, error)
func (*DatabaseService) List ¶ added in v1.6.0
func (u *DatabaseService) List(dbType string) ([]dto.DatabaseOption, error)
func (*DatabaseService) SearchWithPage ¶ added in v1.6.0
func (u *DatabaseService) SearchWithPage(search dto.DatabaseSearch) (int64, interface{}, error)
func (*DatabaseService) Update ¶ added in v1.6.0
func (u *DatabaseService) Update(req dto.DatabaseUpdate) error
type DockerService ¶
type DockerService struct{}
    func (*DockerService) LoadDockerConf ¶
func (u *DockerService) LoadDockerConf() *dto.DaemonJsonConf
func (*DockerService) LoadDockerStatus ¶
func (u *DockerService) LoadDockerStatus() string
func (*DockerService) OperateDocker ¶
func (u *DockerService) OperateDocker(req dto.DockerOperation) error
func (*DockerService) UpdateConf ¶
func (u *DockerService) UpdateConf(req dto.SettingUpdate) error
func (*DockerService) UpdateConfByFile ¶
func (u *DockerService) UpdateConfByFile(req dto.DaemonJsonUpdateByFile) error
func (*DockerService) UpdateLogOption ¶ added in v1.3.0
func (u *DockerService) UpdateLogOption(req dto.LogOption) error
type FavoriteService ¶ added in v1.8.0
type FavoriteService struct {
}
    func (*FavoriteService) Create ¶ added in v1.8.0
func (f *FavoriteService) Create(req request.FavoriteCreate) (*model.Favorite, error)
func (*FavoriteService) Delete ¶ added in v1.8.0
func (f *FavoriteService) Delete(id uint) error
func (*FavoriteService) Page ¶ added in v1.8.0
func (f *FavoriteService) Page(req dto.PageInfo) (int64, []response.FavoriteDTO, error)
type FileService ¶
type FileService struct {
}
    func (*FileService) BatchChangeModeAndOwner ¶ added in v1.8.0
func (f *FileService) BatchChangeModeAndOwner(op request.FileRoleReq) error
func (*FileService) BatchDelete ¶
func (f *FileService) BatchDelete(op request.FileBatchDelete) error
func (*FileService) ChangeMode ¶
func (f *FileService) ChangeMode(op request.FileCreate) error
func (*FileService) ChangeName ¶
func (f *FileService) ChangeName(req request.FileRename) error
func (*FileService) ChangeOwner ¶ added in v1.2.0
func (f *FileService) ChangeOwner(req request.FileRoleUpdate) error
func (*FileService) Compress ¶
func (f *FileService) Compress(c request.FileCompress) error
func (*FileService) Create ¶
func (f *FileService) Create(op request.FileCreate) error
func (*FileService) DeCompress ¶
func (f *FileService) DeCompress(c request.FileDeCompress) error
func (*FileService) Delete ¶
func (f *FileService) Delete(op request.FileDelete) error
func (*FileService) DirSize ¶
func (f *FileService) DirSize(req request.DirSizeReq) (response.DirSizeRes, error)
func (*FileService) FileDownload ¶
func (f *FileService) FileDownload(d request.FileDownload) (string, error)
func (*FileService) GetContent ¶
func (f *FileService) GetContent(op request.FileContentReq) (response.FileInfo, error)
func (*FileService) GetFileList ¶
func (f *FileService) GetFileList(op request.FileOption) (response.FileInfo, error)
func (*FileService) GetFileTree ¶
func (f *FileService) GetFileTree(op request.FileOption) ([]response.FileTree, error)
func (*FileService) SaveContent ¶
func (f *FileService) SaveContent(edit request.FileEdit) error
func (*FileService) SearchUploadWithPage ¶
func (f *FileService) SearchUploadWithPage(req request.SearchUploadWithPage) (int64, interface{}, error)
type FirewallService ¶ added in v1.1.0
type FirewallService struct{}
    func (*FirewallService) BatchOperateRule ¶ added in v1.3.0
func (u *FirewallService) BatchOperateRule(req dto.BatchRuleOperate) error
func (*FirewallService) LoadBaseInfo ¶ added in v1.1.0
func (u *FirewallService) LoadBaseInfo() (dto.FirewallBaseInfo, error)
func (*FirewallService) OperateAddressRule ¶ added in v1.1.0
func (u *FirewallService) OperateAddressRule(req dto.AddrRuleOperate, reload bool) error
func (*FirewallService) OperateFirewall ¶ added in v1.1.0
func (u *FirewallService) OperateFirewall(operation string) error
func (*FirewallService) OperatePortRule ¶ added in v1.1.0
func (u *FirewallService) OperatePortRule(req dto.PortRuleOperate, reload bool) error
func (*FirewallService) SearchWithPage ¶ added in v1.1.0
func (u *FirewallService) SearchWithPage(req dto.RuleSearch) (int64, interface{}, error)
func (*FirewallService) UpdateAddrRule ¶ added in v1.1.0
func (u *FirewallService) UpdateAddrRule(req dto.AddrRuleUpdate) error
func (*FirewallService) UpdateDescription ¶ added in v1.6.0
func (u *FirewallService) UpdateDescription(req dto.UpdateFirewallDescription) error
func (*FirewallService) UpdatePortRule ¶ added in v1.1.0
func (u *FirewallService) UpdatePortRule(req dto.PortRuleUpdate) error
type GroupService ¶
type GroupService struct{}
    func (*GroupService) Create ¶
func (u *GroupService) Create(req dto.GroupCreate) error
func (*GroupService) Delete ¶
func (u *GroupService) Delete(id uint) error
func (*GroupService) List ¶
func (u *GroupService) List(req dto.GroupSearch) ([]dto.GroupInfo, error)
func (*GroupService) Update ¶
func (u *GroupService) Update(req dto.GroupUpdate) error
type HostService ¶
type HostService struct{}
    func (*HostService) Create ¶
func (u *HostService) Create(req dto.HostOperate) (*dto.HostInfo, error)
func (*HostService) Delete ¶
func (u *HostService) Delete(ids []uint) error
func (*HostService) EncryptHost ¶ added in v1.4.3
func (u *HostService) EncryptHost(itemVal string) (string, error)
func (*HostService) GetHostInfo ¶
func (u *HostService) GetHostInfo(id uint) (*model.Host, error)
func (*HostService) SearchForTree ¶
func (u *HostService) SearchForTree(search dto.SearchForTree) ([]dto.HostTree, error)
func (*HostService) SearchWithPage ¶
func (u *HostService) SearchWithPage(search dto.SearchHostWithPage) (int64, interface{}, error)
func (*HostService) TestByInfo ¶ added in v1.1.0
func (u *HostService) TestByInfo(req dto.HostConnTest) bool
func (*HostService) TestLocalConn ¶
func (u *HostService) TestLocalConn(id uint) bool
type HostToolService ¶ added in v1.5.0
type HostToolService struct{}
    func (*HostToolService) CreateToolConfig ¶ added in v1.5.0
func (h *HostToolService) CreateToolConfig(req request.HostToolCreate) error
func (*HostToolService) GetSupervisorProcessConfig ¶ added in v1.5.0
func (h *HostToolService) GetSupervisorProcessConfig() ([]response.SupervisorProcessConfig, error)
func (*HostToolService) GetToolLog ¶ added in v1.5.0
func (h *HostToolService) GetToolLog(req request.HostToolLogReq) (string, error)
func (*HostToolService) GetToolStatus ¶ added in v1.5.0
func (h *HostToolService) GetToolStatus(req request.HostToolReq) (*response.HostToolRes, error)
func (*HostToolService) OperateSupervisorProcess ¶ added in v1.5.0
func (h *HostToolService) OperateSupervisorProcess(req request.SupervisorProcessConfig) error
func (*HostToolService) OperateSupervisorProcessFile ¶ added in v1.5.0
func (h *HostToolService) OperateSupervisorProcessFile(req request.SupervisorProcessFileReq) (string, error)
func (*HostToolService) OperateTool ¶ added in v1.5.0
func (h *HostToolService) OperateTool(req request.HostToolReq) error
func (*HostToolService) OperateToolConfig ¶ added in v1.5.0
func (h *HostToolService) OperateToolConfig(req request.HostToolConfig) (*response.HostToolConfig, error)
type IAppInstallService ¶ added in v1.0.3
type IAppInstallService interface {
	Page(req request.AppInstalledSearch) (int64, []response.AppInstalledDTO, error)
	CheckExist(req request.AppInstalledInfo) (*response.AppInstalledCheck, error)
	LoadPort(req dto.OperationWithNameAndType) (int64, error)
	LoadConnInfo(req dto.OperationWithNameAndType) (response.DatabaseConn, error)
	SearchForWebsite(req request.AppInstalledSearch) ([]response.AppInstalledDTO, error)
	Operate(req request.AppInstalledOperate) error
	Update(req request.AppInstalledUpdate) error
	IgnoreUpgrade(req request.AppInstalledIgnoreUpgrade) error
	SyncAll(systemInit bool) error
	GetServices(key string) ([]response.AppService, error)
	GetUpdateVersions(installId uint) ([]dto.AppVersion, error)
	GetParams(id uint) (*response.AppConfig, error)
	ChangeAppPort(req request.PortUpdate) error
	GetDefaultConfigByKey(key, name string) (string, error)
	DeleteCheck(installId uint) ([]dto.AppResource, error)
	GetInstallList() ([]dto.AppInstallInfo, error)
}
    func NewIAppInstalledService ¶ added in v1.0.3
func NewIAppInstalledService() IAppInstallService
type IAppService ¶
type IAppService interface {
	PageApp(req request.AppSearch) (interface{}, error)
	GetAppTags() ([]response.TagDTO, error)
	GetApp(key string) (*response.AppDTO, error)
	GetAppDetail(appId uint, version, appType string) (response.AppDetailDTO, error)
	Install(ctx context.Context, req request.AppInstallCreate) (*model.AppInstall, error)
	SyncAppListFromRemote() error
	GetAppUpdate() (*response.AppUpdateRes, error)
	GetAppDetailByID(id uint) (*response.AppDetailDTO, error)
	SyncAppListFromLocal()
	GetIgnoredApp() ([]response.IgnoredApp, error)
}
    func NewIAppService ¶
func NewIAppService() IAppService
type IAuthService ¶
type IAuthService interface {
	CheckIsSafety(code string) (string, error)
	VerifyCode(code string) (bool, error)
	Login(c *gin.Context, info dto.Login, entrance string) (*dto.UserLoginInfo, error)
	LogOut(c *gin.Context) error
	MFALogin(c *gin.Context, info dto.MFALogin, entrance string) (*dto.UserLoginInfo, error)
}
    func NewIAuthService ¶
func NewIAuthService() IAuthService
type IBackupService ¶
type IBackupService interface {
	List() ([]dto.BackupInfo, error)
	SearchRecordsWithPage(search dto.RecordSearch) (int64, []dto.BackupRecords, error)
	LoadOneDriveInfo() (string, error)
	DownloadRecord(info dto.DownloadRecord) (string, error)
	Create(backupDto dto.BackupOperate) error
	GetBuckets(backupDto dto.ForBuckets) ([]interface{}, error)
	Update(ireq dto.BackupOperate) error
	Delete(id uint) error
	BatchDeleteRecord(ids []uint) error
	NewClient(backup *model.BackupAccount) (cloud_storage.CloudStorageClient, error)
	ListFiles(req dto.BackupSearchFile) ([]string, error)
	MysqlBackup(db dto.CommonBackup) error
	MysqlRecover(db dto.CommonRecover) error
	MysqlRecoverByUpload(req dto.CommonRecover) error
	RedisBackup() error
	RedisRecover(db dto.CommonRecover) error
	WebsiteBackup(db dto.CommonBackup) error
	WebsiteRecover(req dto.CommonRecover) error
	AppBackup(db dto.CommonBackup) error
	AppRecover(req dto.CommonRecover) error
}
    func NewIBackupService ¶
func NewIBackupService() IBackupService
type ICommandService ¶
type ICommandService interface {
	List() ([]dto.CommandInfo, error)
	SearchForTree() ([]dto.CommandTree, error)
	SearchWithPage(search dto.SearchCommandWithPage) (int64, interface{}, error)
	Create(commandDto dto.CommandOperate) error
	Update(id uint, upMap map[string]interface{}) error
	Delete(ids []uint) error
}
    func NewICommandService ¶
func NewICommandService() ICommandService
type IComposeTemplateService ¶
type IComposeTemplateService interface {
	List() ([]dto.ComposeTemplateInfo, error)
	SearchWithPage(search dto.SearchWithPage) (int64, interface{}, error)
	Create(composeDto dto.ComposeTemplateCreate) error
	Update(id uint, upMap map[string]interface{}) error
	Delete(ids []uint) error
}
    func NewIComposeTemplateService ¶
func NewIComposeTemplateService() IComposeTemplateService
type IContainerService ¶
type IContainerService interface {
	Page(req dto.PageContainer) (int64, interface{}, error)
	List() ([]string, error)
	PageNetwork(req dto.SearchWithPage) (int64, interface{}, error)
	ListNetwork() ([]dto.Options, error)
	PageVolume(req dto.SearchWithPage) (int64, interface{}, error)
	ListVolume() ([]dto.Options, error)
	PageCompose(req dto.SearchWithPage) (int64, interface{}, error)
	CreateCompose(req dto.ComposeCreate) (string, error)
	ComposeOperation(req dto.ComposeOperation) error
	ContainerCreate(req dto.ContainerOperate) error
	ContainerUpdate(req dto.ContainerOperate) error
	ContainerUpgrade(req dto.ContainerUpgrade) error
	ContainerInfo(req dto.OperationWithName) (*dto.ContainerOperate, error)
	ContainerListStats() ([]dto.ContainerListStats, error)
	LoadResourceLimit() (*dto.ResourceLimit, error)
	ContainerRename(req dto.ContainerRename) error
	ContainerLogClean(req dto.OperationWithName) error
	ContainerOperation(req dto.ContainerOperation) error
	ContainerLogs(wsConn *websocket.Conn, containerType, container, since, tail string, follow bool) error
	ContainerStats(id string) (*dto.ContainerStats, error)
	Inspect(req dto.InspectReq) (string, error)
	DeleteNetwork(req dto.BatchDelete) error
	CreateNetwork(req dto.NetworkCreate) error
	DeleteVolume(req dto.BatchDelete) error
	CreateVolume(req dto.VolumeCreate) error
	TestCompose(req dto.ComposeCreate) (bool, error)
	ComposeUpdate(req dto.ComposeUpdate) error
	Prune(req dto.ContainerPrune) (dto.ContainerPruneReport, error)
	LoadContainerLogs(req dto.OperationWithNameAndType) string
}
    func NewIContainerService ¶
func NewIContainerService() IContainerService
type ICronjobService ¶
type ICronjobService interface {
	SearchWithPage(search dto.SearchWithPage) (int64, interface{}, error)
	SearchRecords(search dto.SearchRecord) (int64, interface{}, error)
	Create(cronjobDto dto.CronjobCreate) error
	HandleOnce(id uint) error
	Update(id uint, req dto.CronjobUpdate) error
	UpdateStatus(id uint, status string) error
	Delete(req dto.CronjobBatchDelete) error
	Download(down dto.CronjobDownload) (string, error)
	StartJob(cronjob *model.Cronjob) (int, error)
	CleanRecord(req dto.CronjobClean) error
	LoadRecordLog(req dto.OperateByID) (string, error)
}
    func NewICronjobService ¶
func NewICronjobService() ICronjobService
type IDashboardService ¶
type IDashboardService interface {
	LoadBaseInfo(ioOption string, netOption string) (*dto.DashboardBase, error)
	LoadCurrentInfo(ioOption string, netOption string) *dto.DashboardCurrent
	Restart(operation string) error
}
    func NewIDashboardService ¶
func NewIDashboardService() IDashboardService
type IDatabaseService ¶ added in v1.6.0
type IDatabaseService interface {
	Get(name string) (dto.DatabaseInfo, error)
	SearchWithPage(search dto.DatabaseSearch) (int64, interface{}, error)
	CheckDatabase(req dto.DatabaseCreate) bool
	Create(req dto.DatabaseCreate) error
	Update(req dto.DatabaseUpdate) error
	DeleteCheck(id uint) ([]string, error)
	Delete(req dto.DatabaseDelete) error
	List(dbType string) ([]dto.DatabaseOption, error)
}
    func NewIDatabaseService ¶ added in v1.6.0
func NewIDatabaseService() IDatabaseService
type IDockerService ¶
type IDockerService interface {
	UpdateConf(req dto.SettingUpdate) error
	UpdateLogOption(req dto.LogOption) error
	UpdateConfByFile(info dto.DaemonJsonUpdateByFile) error
	LoadDockerStatus() string
	LoadDockerConf() *dto.DaemonJsonConf
	OperateDocker(req dto.DockerOperation) error
}
    func NewIDockerService ¶
func NewIDockerService() IDockerService
type IFavoriteService ¶ added in v1.8.0
type IFavoriteService interface {
	Page(req dto.PageInfo) (int64, []response.FavoriteDTO, error)
	Create(req request.FavoriteCreate) (*model.Favorite, error)
	Delete(id uint) error
}
    func NewIFavoriteService ¶ added in v1.8.0
func NewIFavoriteService() IFavoriteService
type IFileService ¶ added in v1.1.0
type IFileService interface {
	GetFileList(op request.FileOption) (response.FileInfo, error)
	SearchUploadWithPage(req request.SearchUploadWithPage) (int64, interface{}, error)
	GetFileTree(op request.FileOption) ([]response.FileTree, error)
	Create(op request.FileCreate) error
	Delete(op request.FileDelete) error
	BatchDelete(op request.FileBatchDelete) error
	Compress(c request.FileCompress) error
	DeCompress(c request.FileDeCompress) error
	GetContent(op request.FileContentReq) (response.FileInfo, error)
	SaveContent(edit request.FileEdit) error
	FileDownload(d request.FileDownload) (string, error)
	DirSize(req request.DirSizeReq) (response.DirSizeRes, error)
	ChangeName(req request.FileRename) error
	Wget(w request.FileWget) (string, error)
	MvFile(m request.FileMove) error
	ChangeOwner(req request.FileRoleUpdate) error
	ChangeMode(op request.FileCreate) error
	BatchChangeModeAndOwner(op request.FileRoleReq) error
}
    func NewIFileService ¶ added in v1.1.0
func NewIFileService() IFileService
type IFirewallService ¶ added in v1.1.0
type IFirewallService interface {
	LoadBaseInfo() (dto.FirewallBaseInfo, error)
	SearchWithPage(search dto.RuleSearch) (int64, interface{}, error)
	OperateFirewall(operation string) error
	OperatePortRule(req dto.PortRuleOperate, reload bool) error
	OperateAddressRule(req dto.AddrRuleOperate, reload bool) error
	UpdatePortRule(req dto.PortRuleUpdate) error
	UpdateAddrRule(req dto.AddrRuleUpdate) error
	UpdateDescription(req dto.UpdateFirewallDescription) error
	BatchOperateRule(req dto.BatchRuleOperate) error
}
    func NewIFirewallService ¶ added in v1.1.0
func NewIFirewallService() IFirewallService
type IGroupService ¶
type IGroupService interface {
	List(req dto.GroupSearch) ([]dto.GroupInfo, error)
	Create(req dto.GroupCreate) error
	Update(req dto.GroupUpdate) error
	Delete(id uint) error
}
    func NewIGroupService ¶
func NewIGroupService() IGroupService
type IHostService ¶
type IHostService interface {
	TestLocalConn(id uint) bool
	TestByInfo(req dto.HostConnTest) bool
	GetHostInfo(id uint) (*model.Host, error)
	SearchForTree(search dto.SearchForTree) ([]dto.HostTree, error)
	SearchWithPage(search dto.SearchHostWithPage) (int64, interface{}, error)
	Create(hostDto dto.HostOperate) (*dto.HostInfo, error)
	Update(id uint, upMap map[string]interface{}) error
	Delete(id []uint) error
	EncryptHost(itemVal string) (string, error)
}
    func NewIHostService ¶
func NewIHostService() IHostService
type IHostToolService ¶ added in v1.5.0
type IHostToolService interface {
	GetToolStatus(req request.HostToolReq) (*response.HostToolRes, error)
	CreateToolConfig(req request.HostToolCreate) error
	OperateTool(req request.HostToolReq) error
	OperateToolConfig(req request.HostToolConfig) (*response.HostToolConfig, error)
	GetToolLog(req request.HostToolLogReq) (string, error)
	OperateSupervisorProcess(req request.SupervisorProcessConfig) error
	GetSupervisorProcessConfig() ([]response.SupervisorProcessConfig, error)
	OperateSupervisorProcessFile(req request.SupervisorProcessFileReq) (string, error)
}
    func NewIHostToolService ¶ added in v1.5.0
func NewIHostToolService() IHostToolService
type IImageRepoService ¶
type IImageRepoService interface {
	Page(search dto.SearchWithPage) (int64, interface{}, error)
	List() ([]dto.ImageRepoOption, error)
	Login(req dto.OperateByID) error
	Create(req dto.ImageRepoCreate) error
	Update(req dto.ImageRepoUpdate) error
	BatchDelete(req dto.ImageRepoDelete) error
}
    func NewIImageRepoService ¶
func NewIImageRepoService() IImageRepoService
type IImageService ¶
type IImageService interface {
	Page(req dto.SearchWithPage) (int64, interface{}, error)
	List() ([]dto.Options, error)
	ImageBuild(req dto.ImageBuild) (string, error)
	ImagePull(req dto.ImagePull) (string, error)
	ImageLoad(req dto.ImageLoad) error
	ImageSave(req dto.ImageSave) error
	ImagePush(req dto.ImagePush) (string, error)
	ImageRemove(req dto.BatchDelete) error
	ImageTag(req dto.ImageTag) error
}
    func NewIImageService ¶
func NewIImageService() IImageService
type ILogService ¶
type ILogService interface {
	ListSystemLogFile() ([]string, error)
	CreateLoginLog(operation model.LoginLog) error
	PageLoginLog(search dto.SearchLgLogWithPage) (int64, interface{}, error)
	CreateOperationLog(operation model.OperationLog) error
	PageOperationLog(search dto.SearchOpLogWithPage) (int64, interface{}, error)
	LoadSystemLog(name string) (string, error)
	CleanLogs(logtype string) error
}
    func NewILogService ¶
func NewILogService() ILogService
type IMonitorService ¶ added in v1.3.0
type IMonitorService interface {
	Run()
	// contains filtered or unexported methods
}
    func NewIMonitorService ¶ added in v1.3.0
func NewIMonitorService() IMonitorService
type IMysqlService ¶
type IMysqlService interface {
	SearchWithPage(search dto.MysqlDBSearch) (int64, interface{}, error)
	ListDBOption() ([]dto.MysqlOption, error)
	Create(ctx context.Context, req dto.MysqlDBCreate) (*model.DatabaseMysql, error)
	LoadFromRemote(req dto.MysqlLoadDB) error
	ChangeAccess(info dto.ChangeDBInfo) error
	ChangePassword(info dto.ChangeDBInfo) error
	UpdateVariables(req dto.MysqlVariablesUpdate) error
	UpdateConfByFile(info dto.MysqlConfUpdateByFile) error
	UpdateDescription(req dto.UpdateDescription) error
	DeleteCheck(req dto.MysqlDBDeleteCheck) ([]string, error)
	Delete(ctx context.Context, req dto.MysqlDBDelete) error
	LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlStatus, error)
	LoadVariables(req dto.OperationWithNameAndType) (*dto.MysqlVariables, error)
	LoadBaseInfo(req dto.OperationWithNameAndType) (*dto.DBBaseInfo, error)
	LoadRemoteAccess(req dto.OperationWithNameAndType) (bool, error)
	LoadDatabaseFile(req dto.OperationWithNameAndType) (string, error)
}
    func NewIMysqlService ¶
func NewIMysqlService() IMysqlService
type INginxService ¶ added in v1.1.0
type INginxService interface {
	GetNginxConfig() (*response.NginxFile, error)
	GetConfigByScope(req request.NginxScopeReq) ([]response.NginxParam, error)
	UpdateConfigByScope(req request.NginxConfigUpdate) error
	GetStatus() (response.NginxStatus, error)
	UpdateConfigFile(req request.NginxConfigFileUpdate) error
}
    func NewINginxService ¶ added in v1.1.0
func NewINginxService() INginxService
type IProcessService ¶ added in v1.4.0
type IProcessService interface {
	StopProcess(req request.ProcessReq) error
}
    func NewIProcessService ¶ added in v1.4.0
func NewIProcessService() IProcessService
type IRecycleBinService ¶ added in v1.8.0
type IRecycleBinService interface {
	Page(search dto.PageInfo) (int64, []response.RecycleBinDTO, error)
	Create(create request.RecycleBinCreate) error
	Reduce(reduce request.RecycleBinReduce) error
	Clear() error
}
    func NewIRecycleBinService ¶ added in v1.8.0
func NewIRecycleBinService() IRecycleBinService
type IRedisService ¶
type IRedisService interface {
	UpdateConf(req dto.RedisConfUpdate) error
	UpdatePersistenceConf(req dto.RedisConfPersistenceUpdate) error
	ChangePassword(info dto.ChangeRedisPass) error
	LoadStatus() (*dto.RedisStatus, error)
	LoadConf() (*dto.RedisConf, error)
	LoadPersistenceConf() (*dto.RedisPersistence, error)
	SearchBackupListWithPage(req dto.PageInfo) (int64, interface{}, error)
}
    func NewIRedisService ¶
func NewIRedisService() IRedisService
type IRuntimeService ¶ added in v1.1.0
type IRuntimeService interface {
	Page(req request.RuntimeSearch) (int64, []response.RuntimeDTO, error)
	Create(create request.RuntimeCreate) error
	Delete(delete request.RuntimeDelete) error
	Update(req request.RuntimeUpdate) error
	Get(id uint) (res *response.RuntimeDTO, err error)
	GetNodePackageRunScript(req request.NodePackageReq) ([]response.PackageScripts, error)
	OperateRuntime(req request.RuntimeOperate) error
	GetNodeModules(req request.NodeModuleReq) ([]response.NodeModule, error)
	OperateNodeModules(req request.NodeModuleOperateReq) error
	SyncForRestart() error
}
    func NewRuntimeService ¶ added in v1.1.0
func NewRuntimeService() IRuntimeService
type ISSHService ¶ added in v1.3.0
type ISSHService interface {
	GetSSHInfo() (*dto.SSHInfo, error)
	OperateSSH(operation string) error
	UpdateByFile(value string) error
	Update(req dto.SSHUpdate) error
	GenerateSSH(req dto.GenerateSSH) error
	AnalysisLog(req dto.SearchForAnalysis) (*dto.AnalysisRes, error)
	LoadSSHSecret(mode string) (string, error)
	LoadLog(req dto.SearchSSHLog) (*dto.SSHLog, error)
	LoadSSHConf() (string, error)
}
    func NewISSHService ¶ added in v1.3.0
func NewISSHService() ISSHService
type ISettingService ¶
type ISettingService interface {
	GetSettingInfo() (*dto.SettingInfo, error)
	LoadInterfaceAddr() ([]string, error)
	LoadTimeZone() ([]string, error)
	Update(key, value string) error
	UpdatePassword(c *gin.Context, old, new string) error
	UpdatePort(port uint) error
	UpdateBindInfo(req dto.BindInfo) error
	UpdateSSL(c *gin.Context, req dto.SSLUpdate) error
	LoadFromCert() (*dto.SSLInfo, error)
	HandlePasswordExpired(c *gin.Context, old, new string) error
	SyncTime(req dto.SyncTime) error
	SystemScan() dto.CleanData
	SystemClean(req []dto.Clean)
	SystemCleanForCronjob() (string, error)
}
    func NewISettingService ¶
func NewISettingService() ISettingService
type ISnapshotService ¶
type ISnapshotService interface {
	SearchWithPage(req dto.SearchWithPage) (int64, interface{}, error)
	SnapshotCreate(req dto.SnapshotCreate) error
	SnapshotRecover(req dto.SnapshotRecover) error
	SnapshotRollback(req dto.SnapshotRecover) error
	SnapshotImport(req dto.SnapshotImport) error
	Delete(req dto.BatchDeleteReq) error
	LoadSnapShotStatus(id uint) (*dto.SnapshotStatus, error)
	UpdateDescription(req dto.UpdateDescription) error
	HandleSnapshot(isCronjob bool, req dto.SnapshotCreate, timeNow string) (string, string, error)
	// contains filtered or unexported methods
}
    func NewISnapshotService ¶
func NewISnapshotService() ISnapshotService
type IUpgradeService ¶
type IUpgradeService interface {
	Upgrade(req dto.Upgrade) error
	LoadNotes(req dto.Upgrade) (string, error)
	SearchUpgrade() (*dto.UpgradeInfo, error)
}
    func NewIUpgradeService ¶
func NewIUpgradeService() IUpgradeService
type IWebsiteAcmeAccountService ¶ added in v1.1.0
type IWebsiteAcmeAccountService interface {
	Page(search dto.PageInfo) (int64, []response.WebsiteAcmeAccountDTO, error)
	Create(create request.WebsiteAcmeAccountCreate) (response.WebsiteAcmeAccountDTO, error)
	Delete(id uint) error
}
    func NewIWebsiteAcmeAccountService ¶ added in v1.1.0
func NewIWebsiteAcmeAccountService() IWebsiteAcmeAccountService
type IWebsiteDnsAccountService ¶ added in v1.1.0
type IWebsiteDnsAccountService interface {
	Page(search dto.PageInfo) (int64, []response.WebsiteDnsAccountDTO, error)
	Create(create request.WebsiteDnsAccountCreate) (request.WebsiteDnsAccountCreate, error)
	Update(update request.WebsiteDnsAccountUpdate) (request.WebsiteDnsAccountUpdate, error)
	Delete(id uint) error
}
    func NewIWebsiteDnsAccountService ¶ added in v1.1.0
func NewIWebsiteDnsAccountService() IWebsiteDnsAccountService
type IWebsiteSSLService ¶
type IWebsiteSSLService interface {
	Page(search request.WebsiteSSLSearch) (int64, []response.WebsiteSSLDTO, error)
	GetSSL(id uint) (*response.WebsiteSSLDTO, error)
	Search(req request.WebsiteSSLSearch) ([]response.WebsiteSSLDTO, error)
	Create(create request.WebsiteSSLCreate) (request.WebsiteSSLCreate, error)
	Renew(sslId uint) error
	GetDNSResolve(req request.WebsiteDNSReq) ([]response.WebsiteDNSRes, error)
	GetWebsiteSSL(websiteId uint) (response.WebsiteSSLDTO, error)
	Delete(id uint) error
	Update(update request.WebsiteSSLUpdate) error
	Upload(req request.WebsiteSSLUpload) error
}
    func NewIWebsiteSSLService ¶
func NewIWebsiteSSLService() IWebsiteSSLService
type IWebsiteService ¶
type IWebsiteService interface {
	PageWebsite(req request.WebsiteSearch) (int64, []response.WebsiteDTO, error)
	GetWebsites() ([]response.WebsiteDTO, error)
	CreateWebsite(create request.WebsiteCreate) error
	OpWebsite(req request.WebsiteOp) error
	GetWebsiteOptions() ([]string, error)
	UpdateWebsite(req request.WebsiteUpdate) error
	DeleteWebsite(req request.WebsiteDelete) error
	GetWebsite(id uint) (response.WebsiteDTO, error)
	CreateWebsiteDomain(create request.WebsiteDomainCreate) ([]model.WebsiteDomain, error)
	GetWebsiteDomain(websiteId uint) ([]model.WebsiteDomain, error)
	DeleteWebsiteDomain(domainId uint) error
	GetNginxConfigByScope(req request.NginxScopeReq) (*response.WebsiteNginxConfig, error)
	UpdateNginxConfigByScope(req request.NginxConfigUpdate) error
	GetWebsiteNginxConfig(websiteId uint, configType string) (response.FileInfo, error)
	UpdateNginxConfigFile(req request.WebsiteNginxUpdate) error
	GetWebsiteHTTPS(websiteId uint) (response.WebsiteHTTPS, error)
	OpWebsiteHTTPS(ctx context.Context, req request.WebsiteHTTPSOp) (*response.WebsiteHTTPS, error)
	OpWebsiteLog(req request.WebsiteLogReq) (*response.WebsiteLog, error)
	ChangeDefaultServer(id uint) error
	PreInstallCheck(req request.WebsiteInstallCheckReq) ([]response.WebsitePreInstallCheck, error)
	GetWafConfig(req request.WebsiteWafReq) (response.WebsiteWafConfig, error)
	UpdateWafConfig(req request.WebsiteWafUpdate) error
	UpdateWafFile(req request.WebsiteWafFileUpdate) (err error)
	GetPHPConfig(id uint) (*response.PHPConfig, error)
	UpdatePHPConfig(req request.WebsitePHPConfigUpdate) error
	UpdatePHPConfigFile(req request.WebsitePHPFileUpdate) error
	ChangePHPVersion(req request.WebsitePHPVersionReq) error
	GetRewriteConfig(req request.NginxRewriteReq) (*response.NginxRewriteRes, error)
	UpdateRewriteConfig(req request.NginxRewriteUpdate) error
	LoadWebsiteDirConfig(req request.WebsiteCommonReq) (*response.WebsiteDirConfig, error)
	UpdateSiteDir(req request.WebsiteUpdateDir) error
	UpdateSitePermission(req request.WebsiteUpdateDirPermission) error
	OperateProxy(req request.WebsiteProxyConfig) (err error)
	GetProxies(id uint) (res []request.WebsiteProxyConfig, err error)
	UpdateProxyFile(req request.NginxProxyUpdate) (err error)
	GetAuthBasics(req request.NginxAuthReq) (res response.NginxAuthRes, err error)
	UpdateAuthBasic(req request.NginxAuthUpdate) (err error)
	GetAntiLeech(id uint) (*response.NginxAntiLeechRes, error)
	UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err error)
	OperateRedirect(req request.NginxRedirectReq) (err error)
	GetRedirect(id uint) (res []response.NginxRedirectConfig, err error)
	UpdateRedirectFile(req request.NginxRedirectUpdate) (err error)
}
    func NewIWebsiteService ¶ added in v1.1.0
func NewIWebsiteService() IWebsiteService
type ImageRepoService ¶
type ImageRepoService struct{}
    func (*ImageRepoService) BatchDelete ¶
func (u *ImageRepoService) BatchDelete(req dto.ImageRepoDelete) error
func (*ImageRepoService) CheckConn ¶
func (u *ImageRepoService) CheckConn(host, user, password string) error
func (*ImageRepoService) Create ¶
func (u *ImageRepoService) Create(req dto.ImageRepoCreate) error
func (*ImageRepoService) List ¶
func (u *ImageRepoService) List() ([]dto.ImageRepoOption, error)
func (*ImageRepoService) Login ¶
func (u *ImageRepoService) Login(req dto.OperateByID) error
func (*ImageRepoService) Page ¶
func (u *ImageRepoService) Page(req dto.SearchWithPage) (int64, interface{}, error)
func (*ImageRepoService) Update ¶
func (u *ImageRepoService) Update(req dto.ImageRepoUpdate) error
type ImageService ¶
type ImageService struct{}
    func (*ImageService) ImageBuild ¶
func (u *ImageService) ImageBuild(req dto.ImageBuild) (string, error)
func (*ImageService) ImagePull ¶
func (u *ImageService) ImagePull(req dto.ImagePull) (string, error)
func (*ImageService) ImagePush ¶
func (u *ImageService) ImagePush(req dto.ImagePush) (string, error)
func (*ImageService) ImageRemove ¶
func (u *ImageService) ImageRemove(req dto.BatchDelete) error
func (*ImageService) Page ¶
func (u *ImageService) Page(req dto.SearchWithPage) (int64, interface{}, error)
type LogService ¶
type LogService struct{}
    func (*LogService) CleanLogs ¶
func (u *LogService) CleanLogs(logtype string) error
func (*LogService) CreateLoginLog ¶
func (u *LogService) CreateLoginLog(operation model.LoginLog) error
func (*LogService) CreateOperationLog ¶
func (u *LogService) CreateOperationLog(operation model.OperationLog) error
func (*LogService) ListSystemLogFile ¶ added in v1.7.0
func (u *LogService) ListSystemLogFile() ([]string, error)
func (*LogService) LoadSystemLog ¶ added in v1.5.0
func (u *LogService) LoadSystemLog(name string) (string, error)
func (*LogService) PageLoginLog ¶
func (u *LogService) PageLoginLog(req dto.SearchLgLogWithPage) (int64, interface{}, error)
func (*LogService) PageOperationLog ¶
func (u *LogService) PageOperationLog(req dto.SearchOpLogWithPage) (int64, interface{}, error)
type MonitorService ¶ added in v1.3.0
type MonitorService struct {
	DiskIO chan ([]disk.IOCountersStat)
	NetIO  chan ([]net.IOCountersStat)
}
    func (*MonitorService) Run ¶ added in v1.3.0
func (m *MonitorService) Run()
type MysqlService ¶
type MysqlService struct{}
    func (*MysqlService) ChangeAccess ¶
func (u *MysqlService) ChangeAccess(req dto.ChangeDBInfo) error
func (*MysqlService) ChangePassword ¶
func (u *MysqlService) ChangePassword(req dto.ChangeDBInfo) error
func (*MysqlService) Create ¶
func (u *MysqlService) Create(ctx context.Context, req dto.MysqlDBCreate) (*model.DatabaseMysql, error)
func (*MysqlService) Delete ¶
func (u *MysqlService) Delete(ctx context.Context, req dto.MysqlDBDelete) error
func (*MysqlService) DeleteCheck ¶
func (u *MysqlService) DeleteCheck(req dto.MysqlDBDeleteCheck) ([]string, error)
func (*MysqlService) ListDBOption ¶ added in v1.5.0
func (u *MysqlService) ListDBOption() ([]dto.MysqlOption, error)
func (*MysqlService) LoadBaseInfo ¶
func (u *MysqlService) LoadBaseInfo(req dto.OperationWithNameAndType) (*dto.DBBaseInfo, error)
func (*MysqlService) LoadDatabaseFile ¶ added in v1.5.0
func (u *MysqlService) LoadDatabaseFile(req dto.OperationWithNameAndType) (string, error)
func (*MysqlService) LoadFromRemote ¶ added in v1.5.0
func (u *MysqlService) LoadFromRemote(req dto.MysqlLoadDB) error
func (*MysqlService) LoadRemoteAccess ¶
func (u *MysqlService) LoadRemoteAccess(req dto.OperationWithNameAndType) (bool, error)
func (*MysqlService) LoadStatus ¶
func (u *MysqlService) LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlStatus, error)
func (*MysqlService) LoadVariables ¶
func (u *MysqlService) LoadVariables(req dto.OperationWithNameAndType) (*dto.MysqlVariables, error)
func (*MysqlService) SearchWithPage ¶
func (u *MysqlService) SearchWithPage(search dto.MysqlDBSearch) (int64, interface{}, error)
func (*MysqlService) UpdateConfByFile ¶
func (u *MysqlService) UpdateConfByFile(req dto.MysqlConfUpdateByFile) error
func (*MysqlService) UpdateDescription ¶
func (u *MysqlService) UpdateDescription(req dto.UpdateDescription) error
func (*MysqlService) UpdateVariables ¶
func (u *MysqlService) UpdateVariables(req dto.MysqlVariablesUpdate) error
type NginxService ¶
type NginxService struct {
}
    func (NginxService) GetConfigByScope ¶
func (n NginxService) GetConfigByScope(req request.NginxScopeReq) ([]response.NginxParam, error)
func (NginxService) GetNginxConfig ¶
func (n NginxService) GetNginxConfig() (*response.NginxFile, error)
func (NginxService) GetStatus ¶
func (n NginxService) GetStatus() (response.NginxStatus, error)
func (NginxService) UpdateConfigByScope ¶
func (n NginxService) UpdateConfigByScope(req request.NginxConfigUpdate) error
func (NginxService) UpdateConfigFile ¶
func (n NginxService) UpdateConfigFile(req request.NginxConfigFileUpdate) error
type ProcessService ¶ added in v1.4.0
type ProcessService struct{}
    func (*ProcessService) StopProcess ¶ added in v1.4.0
func (p *ProcessService) StopProcess(req request.ProcessReq) error
type RecycleBinService ¶ added in v1.8.0
type RecycleBinService struct {
}
    func (RecycleBinService) Clear ¶ added in v1.8.0
func (r RecycleBinService) Clear() error
func (RecycleBinService) Create ¶ added in v1.8.0
func (r RecycleBinService) Create(create request.RecycleBinCreate) error
func (RecycleBinService) Page ¶ added in v1.8.0
func (r RecycleBinService) Page(search dto.PageInfo) (int64, []response.RecycleBinDTO, error)
func (RecycleBinService) Reduce ¶ added in v1.8.0
func (r RecycleBinService) Reduce(reduce request.RecycleBinReduce) error
type RedisService ¶
type RedisService struct{}
    func (*RedisService) ChangePassword ¶
func (u *RedisService) ChangePassword(req dto.ChangeRedisPass) error
func (*RedisService) LoadPersistenceConf ¶
func (u *RedisService) LoadPersistenceConf() (*dto.RedisPersistence, error)
func (*RedisService) LoadStatus ¶
func (u *RedisService) LoadStatus() (*dto.RedisStatus, error)
func (*RedisService) SearchBackupListWithPage ¶
func (u *RedisService) SearchBackupListWithPage(req dto.PageInfo) (int64, interface{}, error)
func (*RedisService) UpdateConf ¶
func (u *RedisService) UpdateConf(req dto.RedisConfUpdate) error
func (*RedisService) UpdatePersistenceConf ¶
func (u *RedisService) UpdatePersistenceConf(req dto.RedisConfPersistenceUpdate) error
type RuntimeService ¶ added in v1.1.0
type RuntimeService struct {
}
    func (*RuntimeService) Create ¶ added in v1.1.0
func (r *RuntimeService) Create(create request.RuntimeCreate) (err error)
func (*RuntimeService) Delete ¶ added in v1.1.0
func (r *RuntimeService) Delete(runtimeDelete request.RuntimeDelete) error
func (*RuntimeService) Get ¶ added in v1.1.0
func (r *RuntimeService) Get(id uint) (*response.RuntimeDTO, error)
func (*RuntimeService) GetNodeModules ¶ added in v1.7.0
func (r *RuntimeService) GetNodeModules(req request.NodeModuleReq) ([]response.NodeModule, error)
func (*RuntimeService) GetNodePackageRunScript ¶ added in v1.7.0
func (r *RuntimeService) GetNodePackageRunScript(req request.NodePackageReq) ([]response.PackageScripts, error)
func (*RuntimeService) OperateNodeModules ¶ added in v1.7.0
func (r *RuntimeService) OperateNodeModules(req request.NodeModuleOperateReq) error
func (*RuntimeService) OperateRuntime ¶ added in v1.7.0
func (r *RuntimeService) OperateRuntime(req request.RuntimeOperate) error
func (*RuntimeService) Page ¶ added in v1.1.0
func (r *RuntimeService) Page(req request.RuntimeSearch) (int64, []response.RuntimeDTO, error)
func (*RuntimeService) SyncForRestart ¶ added in v1.8.0
func (r *RuntimeService) SyncForRestart() error
func (*RuntimeService) Update ¶ added in v1.1.0
func (r *RuntimeService) Update(req request.RuntimeUpdate) error
type SSHService ¶ added in v1.3.0
type SSHService struct{}
    func (*SSHService) AnalysisLog ¶ added in v1.7.0
func (u *SSHService) AnalysisLog(req dto.SearchForAnalysis) (*dto.AnalysisRes, error)
func (*SSHService) GenerateSSH ¶ added in v1.3.0
func (u *SSHService) GenerateSSH(req dto.GenerateSSH) error
func (*SSHService) GetSSHInfo ¶ added in v1.3.0
func (u *SSHService) GetSSHInfo() (*dto.SSHInfo, error)
func (*SSHService) LoadLog ¶ added in v1.3.0
func (u *SSHService) LoadLog(req dto.SearchSSHLog) (*dto.SSHLog, error)
func (*SSHService) LoadSSHConf ¶ added in v1.5.0
func (u *SSHService) LoadSSHConf() (string, error)
func (*SSHService) LoadSSHSecret ¶ added in v1.3.0
func (u *SSHService) LoadSSHSecret(mode string) (string, error)
func (*SSHService) OperateSSH ¶ added in v1.3.0
func (u *SSHService) OperateSSH(operation string) error
func (*SSHService) UpdateByFile ¶ added in v1.3.0
func (u *SSHService) UpdateByFile(value string) error
type SettingService ¶
type SettingService struct{}
    func (*SettingService) GetSettingInfo ¶
func (u *SettingService) GetSettingInfo() (*dto.SettingInfo, error)
func (*SettingService) HandlePasswordExpired ¶
func (u *SettingService) HandlePasswordExpired(c *gin.Context, old, new string) error
func (*SettingService) LoadFromCert ¶ added in v1.2.0
func (u *SettingService) LoadFromCert() (*dto.SSLInfo, error)
func (*SettingService) LoadInterfaceAddr ¶ added in v1.8.0
func (u *SettingService) LoadInterfaceAddr() ([]string, error)
func (*SettingService) LoadTimeZone ¶ added in v1.3.0
func (u *SettingService) LoadTimeZone() ([]string, error)
func (*SettingService) SyncTime ¶ added in v1.3.0
func (u *SettingService) SyncTime(req dto.SyncTime) error
func (*SettingService) SystemClean ¶ added in v1.7.0
func (u *SettingService) SystemClean(req []dto.Clean)
func (*SettingService) SystemCleanForCronjob ¶ added in v1.8.0
func (u *SettingService) SystemCleanForCronjob() (string, error)
func (*SettingService) SystemScan ¶ added in v1.7.0
func (u *SettingService) SystemScan() dto.CleanData
func (*SettingService) Update ¶
func (u *SettingService) Update(key, value string) error
func (*SettingService) UpdateBindInfo ¶ added in v1.8.0
func (u *SettingService) UpdateBindInfo(req dto.BindInfo) error
func (*SettingService) UpdatePassword ¶
func (u *SettingService) UpdatePassword(c *gin.Context, old, new string) error
func (*SettingService) UpdatePort ¶
func (u *SettingService) UpdatePort(port uint) error
type SnapshotJson ¶
type SnapshotJson struct {
	OldBaseDir       string `json:"oldBaseDir"`
	OldDockerDataDir string `json:"oldDockerDataDir"`
	OldBackupDataDir string `json:"oldBackupDataDir"`
	OldPanelDataDir  string `json:"oldPanelDataDir"`
	BaseDir            string `json:"baseDir"`
	DockerDataDir      string `json:"dockerDataDir"`
	BackupDataDir      string `json:"backupDataDir"`
	PanelDataDir       string `json:"panelDataDir"`
	LiveRestoreEnabled bool   `json:"liveRestoreEnabled"`
}
    type SnapshotService ¶
type SnapshotService struct {
	OriginalPath string
}
    func (*SnapshotService) Delete ¶
func (u *SnapshotService) Delete(req dto.BatchDeleteReq) error
func (*SnapshotService) HandleSnapshot ¶ added in v1.6.0
func (u *SnapshotService) HandleSnapshot(isCronjob bool, req dto.SnapshotCreate, timeNow string) (string, string, error)
func (*SnapshotService) LoadSnapShotStatus ¶ added in v1.6.0
func (u *SnapshotService) LoadSnapShotStatus(id uint) (*dto.SnapshotStatus, error)
func (*SnapshotService) SearchWithPage ¶
func (u *SnapshotService) SearchWithPage(req dto.SearchWithPage) (int64, interface{}, error)
func (*SnapshotService) SnapshotCreate ¶
func (u *SnapshotService) SnapshotCreate(req dto.SnapshotCreate) error
func (*SnapshotService) SnapshotImport ¶
func (u *SnapshotService) SnapshotImport(req dto.SnapshotImport) error
func (*SnapshotService) SnapshotRecover ¶
func (u *SnapshotService) SnapshotRecover(req dto.SnapshotRecover) error
func (*SnapshotService) SnapshotRollback ¶
func (u *SnapshotService) SnapshotRollback(req dto.SnapshotRecover) error
func (*SnapshotService) UpdateDescription ¶
func (u *SnapshotService) UpdateDescription(req dto.UpdateDescription) error
type UpgradeService ¶
type UpgradeService struct{}
    func (*UpgradeService) LoadNotes ¶ added in v1.0.3
func (u *UpgradeService) LoadNotes(req dto.Upgrade) (string, error)
func (*UpgradeService) SearchUpgrade ¶
func (u *UpgradeService) SearchUpgrade() (*dto.UpgradeInfo, error)
type WebsiteAcmeAccountService ¶
type WebsiteAcmeAccountService struct {
}
    func (WebsiteAcmeAccountService) Create ¶
func (w WebsiteAcmeAccountService) Create(create request.WebsiteAcmeAccountCreate) (response.WebsiteAcmeAccountDTO, error)
func (WebsiteAcmeAccountService) Delete ¶
func (w WebsiteAcmeAccountService) Delete(id uint) error
func (WebsiteAcmeAccountService) Page ¶
func (w WebsiteAcmeAccountService) Page(search dto.PageInfo) (int64, []response.WebsiteAcmeAccountDTO, error)
type WebsiteDnsAccountService ¶
type WebsiteDnsAccountService struct {
}
    func (WebsiteDnsAccountService) Create ¶
func (w WebsiteDnsAccountService) Create(create request.WebsiteDnsAccountCreate) (request.WebsiteDnsAccountCreate, error)
func (WebsiteDnsAccountService) Delete ¶
func (w WebsiteDnsAccountService) Delete(id uint) error
func (WebsiteDnsAccountService) Page ¶
func (w WebsiteDnsAccountService) Page(search dto.PageInfo) (int64, []response.WebsiteDnsAccountDTO, error)
func (WebsiteDnsAccountService) Update ¶
func (w WebsiteDnsAccountService) Update(update request.WebsiteDnsAccountUpdate) (request.WebsiteDnsAccountUpdate, error)
type WebsiteSSLService ¶
type WebsiteSSLService struct {
}
    func (WebsiteSSLService) Create ¶
func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.WebsiteSSLCreate, error)
func (WebsiteSSLService) Delete ¶
func (w WebsiteSSLService) Delete(id uint) error
func (WebsiteSSLService) GetDNSResolve ¶
func (w WebsiteSSLService) GetDNSResolve(req request.WebsiteDNSReq) ([]response.WebsiteDNSRes, error)
func (WebsiteSSLService) GetSSL ¶
func (w WebsiteSSLService) GetSSL(id uint) (*response.WebsiteSSLDTO, error)
func (WebsiteSSLService) GetWebsiteSSL ¶
func (w WebsiteSSLService) GetWebsiteSSL(websiteId uint) (response.WebsiteSSLDTO, error)
func (WebsiteSSLService) Page ¶
func (w WebsiteSSLService) Page(search request.WebsiteSSLSearch) (int64, []response.WebsiteSSLDTO, error)
func (WebsiteSSLService) Renew ¶
func (w WebsiteSSLService) Renew(sslId uint) error
func (WebsiteSSLService) Search ¶
func (w WebsiteSSLService) Search(search request.WebsiteSSLSearch) ([]response.WebsiteSSLDTO, error)
func (WebsiteSSLService) Update ¶ added in v1.0.3
func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error
func (WebsiteSSLService) Upload ¶ added in v1.8.0
func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error
type WebsiteService ¶
type WebsiteService struct {
}
    func (WebsiteService) ChangeDefaultServer ¶
func (w WebsiteService) ChangeDefaultServer(id uint) error
func (WebsiteService) ChangePHPVersion ¶ added in v1.5.0
func (w WebsiteService) ChangePHPVersion(req request.WebsitePHPVersionReq) error
func (WebsiteService) CreateWebsite ¶
func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
func (WebsiteService) CreateWebsiteDomain ¶
func (w WebsiteService) CreateWebsiteDomain(create request.WebsiteDomainCreate) ([]model.WebsiteDomain, error)
func (WebsiteService) DeleteWebsite ¶
func (w WebsiteService) DeleteWebsite(req request.WebsiteDelete) error
func (WebsiteService) DeleteWebsiteDomain ¶
func (w WebsiteService) DeleteWebsiteDomain(domainId uint) error
func (WebsiteService) GetAntiLeech ¶ added in v1.3.0
func (w WebsiteService) GetAntiLeech(id uint) (*response.NginxAntiLeechRes, error)
func (WebsiteService) GetAuthBasics ¶ added in v1.2.0
func (w WebsiteService) GetAuthBasics(req request.NginxAuthReq) (res response.NginxAuthRes, err error)
func (WebsiteService) GetNginxConfigByScope ¶
func (w WebsiteService) GetNginxConfigByScope(req request.NginxScopeReq) (*response.WebsiteNginxConfig, error)
func (WebsiteService) GetPHPConfig ¶ added in v1.1.0
func (w WebsiteService) GetPHPConfig(id uint) (*response.PHPConfig, error)
func (WebsiteService) GetProxies ¶ added in v1.2.0
func (w WebsiteService) GetProxies(id uint) (res []request.WebsiteProxyConfig, err error)
func (WebsiteService) GetRedirect ¶ added in v1.5.0
func (w WebsiteService) GetRedirect(id uint) (res []response.NginxRedirectConfig, err error)
func (WebsiteService) GetRewriteConfig ¶ added in v1.1.1
func (w WebsiteService) GetRewriteConfig(req request.NginxRewriteReq) (*response.NginxRewriteRes, error)
func (WebsiteService) GetWafConfig ¶
func (w WebsiteService) GetWafConfig(req request.WebsiteWafReq) (response.WebsiteWafConfig, error)
func (WebsiteService) GetWebsite ¶
func (w WebsiteService) GetWebsite(id uint) (response.WebsiteDTO, error)
func (WebsiteService) GetWebsiteDomain ¶
func (w WebsiteService) GetWebsiteDomain(websiteId uint) ([]model.WebsiteDomain, error)
func (WebsiteService) GetWebsiteHTTPS ¶
func (w WebsiteService) GetWebsiteHTTPS(websiteId uint) (response.WebsiteHTTPS, error)
func (WebsiteService) GetWebsiteNginxConfig ¶
func (WebsiteService) GetWebsiteOptions ¶
func (w WebsiteService) GetWebsiteOptions() ([]string, error)
func (WebsiteService) GetWebsites ¶
func (w WebsiteService) GetWebsites() ([]response.WebsiteDTO, error)
func (WebsiteService) LoadWebsiteDirConfig ¶ added in v1.6.0
func (w WebsiteService) LoadWebsiteDirConfig(req request.WebsiteCommonReq) (*response.WebsiteDirConfig, error)
func (WebsiteService) OpWebsiteHTTPS ¶
func (w WebsiteService) OpWebsiteHTTPS(ctx context.Context, req request.WebsiteHTTPSOp) (*response.WebsiteHTTPS, error)
func (WebsiteService) OpWebsiteLog ¶
func (w WebsiteService) OpWebsiteLog(req request.WebsiteLogReq) (*response.WebsiteLog, error)
func (WebsiteService) OperateProxy ¶ added in v1.2.0
func (w WebsiteService) OperateProxy(req request.WebsiteProxyConfig) (err error)
func (WebsiteService) OperateRedirect ¶ added in v1.5.0
func (w WebsiteService) OperateRedirect(req request.NginxRedirectReq) (err error)
func (WebsiteService) PageWebsite ¶
func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []response.WebsiteDTO, error)
func (WebsiteService) PreInstallCheck ¶
func (w WebsiteService) PreInstallCheck(req request.WebsiteInstallCheckReq) ([]response.WebsitePreInstallCheck, error)
func (WebsiteService) UpdateAntiLeech ¶ added in v1.3.0
func (w WebsiteService) UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err error)
func (WebsiteService) UpdateAuthBasic ¶ added in v1.2.0
func (w WebsiteService) UpdateAuthBasic(req request.NginxAuthUpdate) (err error)
func (WebsiteService) UpdateNginxConfigByScope ¶
func (w WebsiteService) UpdateNginxConfigByScope(req request.NginxConfigUpdate) error
func (WebsiteService) UpdateNginxConfigFile ¶
func (w WebsiteService) UpdateNginxConfigFile(req request.WebsiteNginxUpdate) error
func (WebsiteService) UpdatePHPConfig ¶ added in v1.1.0
func (w WebsiteService) UpdatePHPConfig(req request.WebsitePHPConfigUpdate) (err error)
func (WebsiteService) UpdatePHPConfigFile ¶ added in v1.1.0
func (w WebsiteService) UpdatePHPConfigFile(req request.WebsitePHPFileUpdate) error
func (WebsiteService) UpdateProxyFile ¶ added in v1.2.0
func (w WebsiteService) UpdateProxyFile(req request.NginxProxyUpdate) (err error)
func (WebsiteService) UpdateRedirectFile ¶ added in v1.5.0
func (w WebsiteService) UpdateRedirectFile(req request.NginxRedirectUpdate) (err error)
func (WebsiteService) UpdateRewriteConfig ¶ added in v1.1.1
func (w WebsiteService) UpdateRewriteConfig(req request.NginxRewriteUpdate) error
func (WebsiteService) UpdateSiteDir ¶ added in v1.1.1
func (w WebsiteService) UpdateSiteDir(req request.WebsiteUpdateDir) error
func (WebsiteService) UpdateSitePermission ¶ added in v1.1.1
func (w WebsiteService) UpdateSitePermission(req request.WebsiteUpdateDirPermission) error
func (WebsiteService) UpdateWafConfig ¶
func (w WebsiteService) UpdateWafConfig(req request.WebsiteWafUpdate) error
func (WebsiteService) UpdateWafFile ¶ added in v1.5.0
func (w WebsiteService) UpdateWafFile(req request.WebsiteWafFileUpdate) (err error)
func (WebsiteService) UpdateWebsite ¶
func (w WebsiteService) UpdateWebsite(req request.WebsiteUpdate) error
       Source Files
      ¶
      Source Files
      ¶
    
- app.go
- app_install.go
- app_utils.go
- auth.go
- backup.go
- backup_app.go
- backup_mysql.go
- backup_redis.go
- backup_runtime.go
- backup_website.go
- command.go
- compose_template.go
- container.go
- container_compose.go
- container_network.go
- container_volume.go
- cornjob.go
- cronjob_helper.go
- dashboard.go
- database.go
- database_mysql.go
- database_redis.go
- docker.go
- entry.go
- favorite.go
- file.go
- firewall.go
- group.go
- helper.go
- host.go
- host_tool.go
- image.go
- image_repo.go
- logs.go
- monitor.go
- nginx.go
- nginx_utils.go
- process.go
- recycle_bin.go
- runtime.go
- runtime_utils.go
- setting.go
- setting_clean.go
- snapshot.go
- snapshot_create.go
- ssh.go
- upgrade.go
- website.go
- website_acme_account.go
- website_dns_account.go
- website_ssl.go
- website_utils.go
 Click to show internal directories. 
   Click to hide internal directories.