v1

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiGroupApp = new(ApiGroup)
View Source
var WsManager = websocket2.Manager{
	Group:       make(map[string]*websocket2.Client),
	Register:    make(chan *websocket2.Client, 128),
	UnRegister:  make(chan *websocket2.Client, 128),
	ClientCount: 0,
}

Functions

This section is empty.

Types

type ApiGroup

type ApiGroup struct {
	BaseApi
}

type BaseApi

type BaseApi struct{}

func (*BaseApi) Backup

func (b *BaseApi) Backup(c *gin.Context)

@Tags Backup Account @Summary Backup system data @Description 备份系统数据 @Accept json @Param request body dto.CommonBackup true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/ [post] @x-panel-log {"bodyKeys":["type","name","detailName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"备份 [type] 数据 [name][detailName]","formatEN":"backup [type] data [name][detailName]"}

func (*BaseApi) BatchDeleteFile

func (b *BaseApi) BatchDeleteFile(c *gin.Context)

@Tags File @Summary Batch delete file @Description 批量删除文件/文件夹 @Accept json @Param request body request.FileBatchDelete true "request" @Success 200 @Security ApiKeyAuth @Router /files/batch/del [post] @x-panel-log {"bodyKeys":["paths"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"批量删除文件/文件夹 [paths]","formatEN":"Batch delete dir or file [paths]"}

func (*BaseApi) Captcha

func (b *BaseApi) Captcha(c *gin.Context)

@Tags Auth @Summary Load captcha @Description 加载验证码 @Success 200 {object} dto.CaptchaResponse @Router /auth/captcha [get]

func (*BaseApi) ChangeAppPort

func (b *BaseApi) ChangeAppPort(c *gin.Context)

@Tags App @Summary Change app port @Description 修改应用端口 @Accept json @Param request body request.PortUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /apps/installed/port/change [post] @x-panel-log {"bodyKeys":["key","name","port"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用端口修改 [key]-[name] => [port]","formatEN":"Application port update [key]-[name] => [port]"}

func (*BaseApi) ChangeDefaultServer

func (b *BaseApi) ChangeDefaultServer(c *gin.Context)

@Tags Website @Summary Change default server @Description 操作网站日志 @Accept json @Param request body request.WebsiteDefaultUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/default/server [post] @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"修改默认 server => [domain]","formatEN":"Change default server => [domain]"}

func (*BaseApi) ChangeFileMode

func (b *BaseApi) ChangeFileMode(c *gin.Context)

@Tags File @Summary Change file mode @Description 修改文件权限 @Accept json @Param request body request.FileCreate true "request" @Success 200 @Security ApiKeyAuth @Router /files/mode [post] @x-panel-log {"bodyKeys":["path","mode"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改权限 [paths] => [mode]","formatEN":"Change mode [paths] => [mode]"}

func (*BaseApi) ChangeFileName

func (b *BaseApi) ChangeFileName(c *gin.Context)

@Tags File @Summary Change file name @Description 修改文件名称 @Accept json @Param request body request.FileRename true "request" @Success 200 @Security ApiKeyAuth @Router /files/rename [post] @x-panel-log {"bodyKeys":["oldName","newName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"重命名 [oldName] => [newName]","formatEN":"Rename [oldName] => [newName]"}

func (*BaseApi) ChangeMysqlAccess

func (b *BaseApi) ChangeMysqlAccess(c *gin.Context)

@Tags Database Mysql @Summary Change mysql access @Description 修改 mysql 访问权限 @Accept json @Param request body dto.ChangeDBInfo true "request" @Success 200 @Security ApiKeyAuth @Router /databases/change/access [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"database_mysqls","output_colume":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 访问权限","formatEN":"Update database [name] access"}

func (*BaseApi) ChangeMysqlPassword

func (b *BaseApi) ChangeMysqlPassword(c *gin.Context)

@Tags Database Mysql @Summary Change mysql password @Description 修改 mysql 密码 @Accept json @Param request body dto.ChangeDBInfo true "request" @Success 200 @Security ApiKeyAuth @Router /databases/change/password [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"database_mysqls","output_colume":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 密码","formatEN":"Update database [name] password"}

func (*BaseApi) ChangeRedisPassword

func (b *BaseApi) ChangeRedisPassword(c *gin.Context)

@Tags Database Redis @Summary Change redis password @Description 更新 redis 密码 @Accept json @Param request body dto.ChangeDBInfo true "request" @Success 200 @Security ApiKeyAuth @Router /databases/redis/password [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改 redis 数据库密码","formatEN":"change the password of the redis database"}

func (*BaseApi) CheckAppInstalled

func (b *BaseApi) CheckAppInstalled(c *gin.Context)

@Tags App @Summary Check app installed @Description 检查应用安装情况 @Accept json @Param key path string true "request" @Success 200 {object} response.AppInstalledCheck @Security ApiKeyAuth @Router /apps/installed/check/:key [get]

func (*BaseApi) CheckFile

func (b *BaseApi) CheckFile(c *gin.Context)

@Tags File @Summary Check file exist @Description 检测文件是否存在 @Accept json @Param request body request.FilePathCheck true "request" @Success 200 @Security ApiKeyAuth @Router /files/check [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"检测文件 path 是否存在","formatEN":"Check whether file path exists"}

func (*BaseApi) CheckIsDemo added in v1.0.1

func (b *BaseApi) CheckIsDemo(c *gin.Context)

@Tags Auth @Summary Check System isDemo @Description 判断是否为demo环境 @Success 200 @Router /auth/demo [get]

func (*BaseApi) CheckIsFirstLogin

func (b *BaseApi) CheckIsFirstLogin(c *gin.Context)

@Tags Auth @Summary Check is First login @Description 判断是否为首次登录 @Success 200 @Router /auth/status [get]

func (*BaseApi) CheckRepoStatus

func (b *BaseApi) CheckRepoStatus(c *gin.Context)

@Tags Container Image-repo @Summary Load repo status @Description 获取 docker 仓库状态 @Accept json @Param request body dto.OperateByID true "request" @Produce json @Success 200 @Security ApiKeyAuth @Router /containers/repo/status [get]

func (*BaseApi) CleanLogs

func (b *BaseApi) CleanLogs(c *gin.Context)

@Tags Logs @Summary Clean operation logs @Description 清空操作日志 @Accept json @Param request body dto.CleanLog true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /logs/clean [post] @x-panel-log {"bodyKeys":["logType"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清空 [logType] 日志信息","formatEN":"Clean the [logType] log information"}

func (*BaseApi) CleanMonitor

func (b *BaseApi) CleanMonitor(c *gin.Context)

@Tags System Setting @Summary Clean monitor datas @Description 清空监控数据 @Success 200 @Security ApiKeyAuth @Router /settings/monitor/clean [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清空监控数据","formatEN":"clean monitor datas"}

func (*BaseApi) ComposeUpdate

func (b *BaseApi) ComposeUpdate(c *gin.Context)

@Tags Container Compose @Summary Update compose @Description 更新容器编排 @Accept json @Param request body dto.ComposeUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /containers/compose/update [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 compose [name]","formatEN":"update compose information [name]"}

func (*BaseApi) CompressFile

func (b *BaseApi) CompressFile(c *gin.Context)

@Tags File @Summary Compress file @Description 压缩文件 @Accept json @Param request body request.FileCompress true "request" @Success 200 @Security ApiKeyAuth @Router /files/compress [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"压缩文件 [name]","formatEN":"Compress file [name]"}

func (*BaseApi) ContainerCreate

func (b *BaseApi) ContainerCreate(c *gin.Context)

@Tags Container @Summary Create container @Description 创建容器 @Accept json @Param request body dto.ContainerCreate true "request" @Success 200 @Security ApiKeyAuth @Router /containers [post] @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器 [name]image","formatEN":"create container [name]image"}

func (*BaseApi) ContainerLogs

func (b *BaseApi) ContainerLogs(c *gin.Context)

@Tags Container @Summary Container logs @Description 容器日志 @Accept json @Param request body dto.ContainerLog true "request" @Success 200 {string} logs @Security ApiKeyAuth @Router /containers/search/log [post]

func (*BaseApi) ContainerOperation

func (b *BaseApi) ContainerOperation(c *gin.Context)

@Tags Container @Summary Operate Container @Description 容器操作 @Accept json @Param request body dto.ContainerOperation true "request" @Success 200 @Security ApiKeyAuth @Router /containers/operate [post] @x-panel-log {"bodyKeys":["name","operation","newName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"容器 [name] 执行 [operation] [newName]","formatEN":"container [operation] [name] [newName]"}

func (*BaseApi) ContainerStats

func (b *BaseApi) ContainerStats(c *gin.Context)

@Tags Container @Summary Container stats @Description 容器监控信息 @Param id path integer true "容器id" @Success 200 {object} dto.ContainterStats @Security ApiKeyAuth @Router /containers/stats/:id [get]

func (*BaseApi) ContainerWsSsh

func (b *BaseApi) ContainerWsSsh(c *gin.Context)

func (*BaseApi) CreateBackup

func (b *BaseApi) CreateBackup(c *gin.Context)

@Tags Backup Account @Summary Create backup account @Description 创建备份账号 @Accept json @Param request body dto.BackupOperate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup [post] @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建备份账号 [type]","formatEN":"create backup account [type]"}

func (*BaseApi) CreateCommand

func (b *BaseApi) CreateCommand(c *gin.Context)

@Tags Command @Summary Create command @Description 创建快速命令 @Accept json @Param request body dto.CommandOperate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/command [post] @x-panel-log {"bodyKeys":["name","command"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建快捷命令 [name][command]","formatEN":"create quick command [name][command]"}

func (*BaseApi) CreateCompose

func (b *BaseApi) CreateCompose(c *gin.Context)

@Tags Container Compose @Summary Create compose @Description 创建容器编排 @Accept json @Param request body dto.ComposeCreate true "request" @Success 200 @Security ApiKeyAuth @Router /containers/compose [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 compose [name]","formatEN":"create compose [name]"}

func (*BaseApi) CreateComposeTemplate

func (b *BaseApi) CreateComposeTemplate(c *gin.Context)

@Tags Container Compose-template @Summary Create compose template @Description 创建容器编排模版 @Accept json @Param request body dto.ComposeTemplateCreate true "request" @Success 200 @Security ApiKeyAuth @Router /containers/template [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 compose 模版 [name]","formatEN":"create compose template [name]"}

func (*BaseApi) CreateCronjob

func (b *BaseApi) CreateCronjob(c *gin.Context)

@Tags Cronjob @Summary Create cronjob @Description 创建计划任务 @Accept json @Param request body dto.CronjobCreate true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs [post] @x-panel-log {"bodyKeys":["type","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建计划任务 [type][name]","formatEN":"create cronjob [type][name]"}

func (*BaseApi) CreateFile

func (b *BaseApi) CreateFile(c *gin.Context)

@Tags File @Summary Create file @Description 创建文件/文件夹 @Accept json @Param request body request.FileCreate true "request" @Success 200 @Security ApiKeyAuth @Router /files [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建文件/文件夹 path","formatEN":"Create dir or file path"}

func (*BaseApi) CreateGroup

func (b *BaseApi) CreateGroup(c *gin.Context)

@Tags System Group @Summary Create group @Description 创建系统组 @Accept json @Param request body dto.GroupCreate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/group [post] @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建组 [name][type]","formatEN":"create group [name][type]"}

func (*BaseApi) CreateHost

func (b *BaseApi) CreateHost(c *gin.Context)

@Tags Host @Summary Create host @Description 创建主机 @Accept json @Param request body dto.HostOperate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts [post] @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建主机 [name][addr]","formatEN":"create host [name][addr]"}

func (*BaseApi) CreateMysql

func (b *BaseApi) CreateMysql(c *gin.Context)

@Tags Database Mysql @Summary Create mysql database @Description 创建 mysql 数据库 @Accept json @Param request body dto.MysqlDBCreate true "request" @Success 200 @Security ApiKeyAuth @Router /databases [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 mysql 数据库 [name]","formatEN":"create mysql database [name]"}

func (*BaseApi) CreateNetwork

func (b *BaseApi) CreateNetwork(c *gin.Context)

@Tags Container Network @Summary Create network @Description 创建容器网络 @Accept json @Param request body dto.NetworkCreat true "request" @Success 200 @Security ApiKeyAuth @Router /containers/network [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器网络 name","formatEN":"create container network [name]"}

func (*BaseApi) CreateRepo

func (b *BaseApi) CreateRepo(c *gin.Context)

@Tags Container Image-repo @Summary Create image repo @Description 创建镜像仓库 @Accept json @Param request body dto.ImageRepoDelete true "request" @Produce json @Success 200 @Security ApiKeyAuth @Router /containers/repo [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建镜像仓库 [name]","formatEN":"create image repo [name]"}

func (*BaseApi) CreateSnapshot

func (b *BaseApi) CreateSnapshot(c *gin.Context)

@Tags System Setting @Summary Create system snapshot @Description 创建系统快照 @Accept json @Param request body dto.SnapshotCreate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot [post] @x-panel-log {"bodyKeys":["from", "description"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建系统快照 [description] 到 [from]","formatEN":"Create system backup [description] to [from]"}

func (*BaseApi) CreateVolume

func (b *BaseApi) CreateVolume(c *gin.Context)

@Tags Container Volume @Summary Create volume @Description 创建容器存储卷 @Accept json @Param request body dto.VolumeCreat true "request" @Success 200 @Security ApiKeyAuth @Router /containers/volume [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器存储卷 [name]","formatEN":"create container volume [name]"}

func (*BaseApi) CreateWebDomain

func (b *BaseApi) CreateWebDomain(c *gin.Context)

@Tags Website Domain @Summary Create website domain @Description 创建网站域名 @Accept json @Param request body request.WebsiteDomainCreate true "request" @Success 200 {object} model.WebsiteDomain @Security ApiKeyAuth @Router /websites/domains [post] @x-panel-log {"bodyKeys":["domain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建域名 [domain]","formatEN":"Create domain [domain]"}

func (*BaseApi) CreateWebsite

func (b *BaseApi) CreateWebsite(c *gin.Context)

@Tags Website @Summary Create website @Description 创建网站 @Accept json @Param request body request.WebsiteCreate true "request" @Success 200 @Security ApiKeyAuth @Router /websites [post] @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 [primaryDomain]","formatEN":"Create website [primaryDomain]"}

func (*BaseApi) CreateWebsiteAcmeAccount

func (b *BaseApi) CreateWebsiteAcmeAccount(c *gin.Context)

@Tags Website Acme @Summary Create website acme account @Description 创建网站 acme @Accept json @Param request body request.WebsiteAcmeAccountCreate true "request" @Success 200 {object} response.WebsiteAcmeAccountDTO @Security ApiKeyAuth @Router /websites/acme [post] @x-panel-log {"bodyKeys":["email"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 acme [email]","formatEN":"Create website acme [email]"}

func (*BaseApi) CreateWebsiteCheck

func (b *BaseApi) CreateWebsiteCheck(c *gin.Context)

@Tags Website @Summary Check before create website @Description 网站创建前检查 @Accept json @Param request body request.WebsiteInstallCheckReq true "request" @Success 200 {anrry} request.WebsitePreInstallCheck @Security ApiKeyAuth @Router /websites/check [post]

func (*BaseApi) CreateWebsiteDnsAccount

func (b *BaseApi) CreateWebsiteDnsAccount(c *gin.Context)

@Tags Website DNS @Summary Create website dns account @Description 创建网站 dns @Accept json @Param request body request.WebsiteDnsAccountCreate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/dns [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 dns [name]","formatEN":"Create website dns [name]"}

func (*BaseApi) CreateWebsiteSSL

func (b *BaseApi) CreateWebsiteSSL(c *gin.Context)

@Tags Website SSL @Summary Create website ssl @Description 创建网站 ssl @Accept json @Param request body request.WebsiteSSLCreate true "request" @Success 200 {object} request.WebsiteSSLCreate @Security ApiKeyAuth @Router /websites/ssl [post] @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 ssl [primaryDomain]","formatEN":"Create website ssl [primaryDomain]"}

func (*BaseApi) DeCompressFile

func (b *BaseApi) DeCompressFile(c *gin.Context)

@Tags File @Summary Decompress file @Description 解压文件 @Accept json @Param request body request.FileDeCompress true "request" @Success 200 @Security ApiKeyAuth @Router /files/decompress [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"解压 path","formatEN":"Decompress file path"}

func (*BaseApi) DeleteBackup

func (b *BaseApi) DeleteBackup(c *gin.Context)

@Tags Backup Account @Summary Delete backup account @Description 删除备份账号 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"backup_accounts","output_colume":"type","output_value":"types"}],"formatZH":"删除备份账号 [types]","formatEN":"delete backup account [types]"}

func (*BaseApi) DeleteBackupRecord

func (b *BaseApi) DeleteBackupRecord(c *gin.Context)

@Tags Backup Account @Summary Delete backup record @Description 删除备份记录 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/record/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"backup_records","output_colume":"file_name","output_value":"files"}],"formatZH":"删除备份记录 files","formatEN":"delete backup records files"}

func (*BaseApi) DeleteCheck

func (b *BaseApi) DeleteCheck(c *gin.Context)

@Tags App @Summary Check before delete @Description 删除前检查 @Accept json @Param appInstallId path integer true "App install id" @Success 200 {anrry} dto.AppResource @Security ApiKeyAuth @Router /apps/installed/delete/check/:appInstallId [get]

func (*BaseApi) DeleteCheckMysql

func (b *BaseApi) DeleteCheckMysql(c *gin.Context)

@Tags Database Mysql @Summary Check before delete mysql database @Description Mysql 数据库删除前检查 @Accept json @Param request body dto.OperateByID true "request" @Success 200 {anrry} string @Security ApiKeyAuth @Router /databases/del/check [post]

func (*BaseApi) DeleteCommand

func (b *BaseApi) DeleteCommand(c *gin.Context)

@Tags Command @Summary Delete command @Description 删除快速命令 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/command/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"commands","output_colume":"name","output_value":"names"}],"formatZH":"删除快捷命令 [names]","formatEN":"delete quick command [names]"}

func (*BaseApi) DeleteComposeTemplate

func (b *BaseApi) DeleteComposeTemplate(c *gin.Context)

@Tags Container Compose-template @Summary Delete compose template @Description 删除容器编排模版 @Accept json @Param request body dto.BatchDelete true "request" @Success 200 @Security ApiKeyAuth @Router /containers/template/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"compose_templates","output_colume":"name","output_value":"names"}],"formatZH":"删除 compose 模版 [names]","formatEN":"delete compose template [names]"}

func (*BaseApi) DeleteCronjob

func (b *BaseApi) DeleteCronjob(c *gin.Context)

@Tags Cronjob @Summary Delete cronjob @Description 删除计划任务 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"cronjobs","output_colume":"name","output_value":"names"}],"formatZH":"删除计划任务 [names]","formatEN":"delete cronjob [names]"}

func (*BaseApi) DeleteFile

func (b *BaseApi) DeleteFile(c *gin.Context)

@Tags File @Summary Delete file @Description 删除文件/文件夹 @Accept json @Param request body request.FileDelete true "request" @Success 200 @Security ApiKeyAuth @Router /files/del [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除文件/文件夹 path","formatEN":"Delete dir or file path"}

func (*BaseApi) DeleteGroup

func (b *BaseApi) DeleteGroup(c *gin.Context)

@Tags System Group @Summary Delete group @Description 删除系统组 @Accept json @Param request body dto.OperateByID true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/group/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"groups","output_colume":"name","output_value":"name"},{"input_colume":"id","input_value":"id","isList":false,"db":"groups","output_colume":"type","output_value":"type"}],"formatZH":"删除组 [type][name]","formatEN":"delete group [type][name]"}

func (*BaseApi) DeleteHost

func (b *BaseApi) DeleteHost(c *gin.Context)

@Tags Host @Summary Delete host @Description 删除主机 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"hosts","output_colume":"addr","output_value":"addrs"}],"formatZH":"删除主机 [addrs]","formatEN":"delete host [addrs]"}

func (*BaseApi) DeleteMysql

func (b *BaseApi) DeleteMysql(c *gin.Context)

@Tags Database Mysql @Summary Delete mysql database @Description 删除 mysql 数据库 @Accept json @Param request body dto.MysqlDBDelete true "request" @Success 200 @Security ApiKeyAuth @Router /databases/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"database_mysqls","output_colume":"name","output_value":"name"}],"formatZH":"删除 mysql 数据库 [name]","formatEN":"delete mysql database [name]"}

func (*BaseApi) DeleteNetwork

func (b *BaseApi) DeleteNetwork(c *gin.Context)

@Tags Container Network @Summary Delete network @Description 删除容器网络 @Accept json @Param request body dto.BatchDelete true "request" @Success 200 @Security ApiKeyAuth @Router /containers/network/del [post] @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除容器网络 [names]","formatEN":"delete container network [names]"}

func (*BaseApi) DeleteRepo

func (b *BaseApi) DeleteRepo(c *gin.Context)

@Tags Container Image-repo @Summary Delete image repo @Description 删除镜像仓库 @Accept json @Param request body dto.ImageRepoDelete true "request" @Produce json @Success 200 @Security ApiKeyAuth @Router /containers/repo/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"image_repos","output_colume":"name","output_value":"names"}],"formatZH":"删除镜像仓库 [names]","formatEN":"delete image repo [names]"}

func (*BaseApi) DeleteSnapshot

func (b *BaseApi) DeleteSnapshot(c *gin.Context)

@Tags System Setting @Summary Delete system backup @Description 删除系统快照 @Accept json @Param request body dto.BatchDeleteReq true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot/del [post] @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"ids","isList":true,"db":"snapshots","output_colume":"name","output_value":"name"}],"formatZH":"删除系统快照 [name]","formatEN":"Delete system backup [name]"}

func (*BaseApi) DeleteVolume

func (b *BaseApi) DeleteVolume(c *gin.Context)

@Tags Container Volume @Summary Delete volume @Description 删除容器存储卷 @Accept json @Param request body dto.BatchDelete true "request" @Success 200 @Security ApiKeyAuth @Router /containers/volume/del [post] @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除容器存储卷 [names]","formatEN":"delete container volume [names]"}

func (*BaseApi) DeleteWebDomain

func (b *BaseApi) DeleteWebDomain(c *gin.Context)

@Tags Website Domain @Summary Delete website domain @Description 删除网站域名 @Accept json @Param request body request.WebsiteDomainDelete true "request" @Success 200 @Security ApiKeyAuth @Router /websites/domains/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"website_domains","output_colume":"domain","output_value":"domain"}],"formatZH":"删除域名 [domain]","formatEN":"Delete domain [domain]"}

func (*BaseApi) DeleteWebsite

func (b *BaseApi) DeleteWebsite(c *gin.Context)

@Tags Website @Summary Delete website @Description 删除网站 @Accept json @Param request body request.WebsiteDelete true "request" @Success 200 @Security ApiKeyAuth @Router /websites/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"删除网站 [domain]","formatEN":"Delete website [domain]"}

func (*BaseApi) DeleteWebsiteAcmeAccount

func (b *BaseApi) DeleteWebsiteAcmeAccount(c *gin.Context)

@Tags Website Acme @Summary Delete website acme account @Description 删除网站 acme @Accept json @Param request body request.WebsiteResourceReq true "request" @Success 200 @Security ApiKeyAuth @Router /websites/acme/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"website_acme_accounts","output_colume":"email","output_value":"email"}],"formatZH":"删除网站 acme [email]","formatEN":"Delete website acme [email]"}

func (*BaseApi) DeleteWebsiteDnsAccount

func (b *BaseApi) DeleteWebsiteDnsAccount(c *gin.Context)

@Tags Website DNS @Summary Delete website dns account @Description 删除网站 dns @Accept json @Param request body request.WebsiteResourceReq true "request" @Success 200 @Security ApiKeyAuth @Router /websites/dns/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"website_dns_accounts","output_colume":"name","output_value":"name"}],"formatZH":"删除网站 dns [name]","formatEN":"Delete website dns [name]"}

func (*BaseApi) DeleteWebsiteSSL

func (b *BaseApi) DeleteWebsiteSSL(c *gin.Context)

@Tags Website SSL @Summary Delete website ssl @Description 删除网站 ssl @Accept json @Param request body request.WebsiteResourceReq true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/del [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"website_ssls","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"删除 ssl [domain]","formatEN":"Delete ssl [domain]"}

func (*BaseApi) Download

func (b *BaseApi) Download(c *gin.Context)

@Tags File @Summary Download file @Description 下载文件 @Accept json @Param request body request.FileDownload true "request" @Success 200 @Security ApiKeyAuth @Router /files/download [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载文件 [name]","formatEN":"Download file [name]"}

func (*BaseApi) DownloadFile added in v1.0.2

func (b *BaseApi) DownloadFile(c *gin.Context)

@Tags File @Summary Download file with path @Description 下载指定文件 @Accept json @Param request body dto.FilePath true "request" @Success 200 @Security ApiKeyAuth @Router /files/download/bypath [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载文件 path","formatEN":"Download file path"}

func (*BaseApi) DownloadRecord

func (b *BaseApi) DownloadRecord(c *gin.Context)

@Tags Backup Account @Summary Download backup record @Description 下载备份记录 @Accept json @Param request body dto.DownloadRecord true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/record/download [post] @x-panel-log {"bodyKeys":["source","fileName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载备份记录 [source][fileName]","formatEN":"download backup records [source][fileName]"}

func (*BaseApi) GetApp

func (b *BaseApi) GetApp(c *gin.Context)

@Tags App @Summary Search app by key @Description 通过 key 获取应用信息 @Accept json @Param key path string true "app key" @Success 200 {object} response.AppDTO @Security ApiKeyAuth @Router /apps/:key [get]

func (*BaseApi) GetAppDetail

func (b *BaseApi) GetAppDetail(c *gin.Context)

@Tags App @Summary Search app detail by id @Description 通过 id 获取应用详情 @Accept json @Param appId path integer true "app id" @Param version path string true "app 版本" @Success 200 {object} response.AppDetailDTO @Security ApiKeyAuth @Router /apps/detail/:appId/:version [get]

func (*BaseApi) GetAppListUpdate added in v1.0.1

func (b *BaseApi) GetAppListUpdate(c *gin.Context)

@Tags App @Summary Get app list update @Description 获取应用更新版本 @Success 200 @Security ApiKeyAuth @Router /apps/checkupdate [get]

func (*BaseApi) GetAppTags

func (b *BaseApi) GetAppTags(c *gin.Context)

func (*BaseApi) GetContent

func (b *BaseApi) GetContent(c *gin.Context)

@Tags File @Summary Load file content @Description 获取文件内容 @Accept json @Param request body request.FileOption true "request" @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Router /files/content [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"获取文件内容 path","formatEN":"Load file content path"}

func (*BaseApi) GetDNSResolve

func (b *BaseApi) GetDNSResolve(c *gin.Context)

@Tags Website SSL @Summary Resolve website ssl @Description 解析网站 ssl @Accept json @Param request body request.WebsiteDNSReq true "request" @Success 200 {anrry} response.WebsiteDNSRes @Security ApiKeyAuth @Router /websites/ssl/resolve [post]

func (*BaseApi) GetDefaultConfig

func (b *BaseApi) GetDefaultConfig(c *gin.Context)

@Tags App @Summary Search default config by key @Description 通过 key 获取应用默认配置 @Accept json @Param key path string true "request" @Success 200 {string} content @Security ApiKeyAuth @Router /apps/installed/conf/:key [get]

func (*BaseApi) GetFileTree

func (b *BaseApi) GetFileTree(c *gin.Context)

@Tags File @Summary Load files tree @Description 加载文件树 @Accept json @Param request body request.FileOption true "request" @Success 200 {anrry} response.FileTree @Security ApiKeyAuth @Router /files/tree [post]

func (*BaseApi) GetHTTPSConfig

func (b *BaseApi) GetHTTPSConfig(c *gin.Context)

@Tags Website HTTPS @Summary Load https conf @Description 获取 https 配置 @Accept json @Param id path integer true "request" @Success 200 {object} response.WebsiteHTTPS @Security ApiKeyAuth @Router /websites/:id/https [get]

func (*BaseApi) GetHostInfo

func (b *BaseApi) GetHostInfo(c *gin.Context)

@Tags Host @Summary Load host info @Description 加载主机信息 @Accept json @Param id path integer true "request" @Success 200 {object} dto.HostInfo @Security ApiKeyAuth @Router /hosts/:id [get]

func (*BaseApi) GetIOOptions

func (b *BaseApi) GetIOOptions(c *gin.Context)

func (*BaseApi) GetLoginLogs

func (b *BaseApi) GetLoginLogs(c *gin.Context)

@Tags Logs @Summary Page login logs @Description 获取系统登录日志列表分页 @Accept json @Param request body dto.SearchLgLogWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /logs/login [post]

func (*BaseApi) GetMFA

func (b *BaseApi) GetMFA(c *gin.Context)

@Tags System Setting @Summary Load mfa info @Description 获取 mfa 信息 @Success 200 {object} mfa.Otp @Security ApiKeyAuth @Router /settings/mfa [get]

func (*BaseApi) GetNetworkOptions

func (b *BaseApi) GetNetworkOptions(c *gin.Context)

func (*BaseApi) GetNginx

func (b *BaseApi) GetNginx(c *gin.Context)

@Tags OpenResty @Summary Load OpenResty conf @Description 获取 OpenResty 配置信息 @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Router /openResty [get]

func (*BaseApi) GetNginxConfig

func (b *BaseApi) GetNginxConfig(c *gin.Context)

@Tags Website Nginx @Summary Load nginx conf @Description 获取 nginx 配置 @Accept json @Param request body request.NginxScopeReq true "request" @Success 200 {object} response.WebsiteNginxConfig @Security ApiKeyAuth @Router /websites/config [post]

func (*BaseApi) GetNginxConfigByScope

func (b *BaseApi) GetNginxConfigByScope(c *gin.Context)

@Tags OpenResty @Summary Load partial OpenResty conf @Description 获取部分 OpenResty 配置信息 @Accept json @Param request body request.NginxScopeReq true "request" @Success 200 {anrry} response.NginxParam @Security ApiKeyAuth @Router /openResty/scope [post]

func (*BaseApi) GetNginxStatus

func (b *BaseApi) GetNginxStatus(c *gin.Context)

@Tags OpenResty @Summary Load OpenResty status info @Description 获取 OpenResty 状态信息 @Success 200 {object} response.NginxStatus @Security ApiKeyAuth @Router /openResty/status [get]

func (*BaseApi) GetNotesByVersion added in v1.0.3

func (b *BaseApi) GetNotesByVersion(c *gin.Context)

@Tags System Setting @Summary Load release notes by version @Description 获取版本 release notes @Accept json @Param request body dto.Upgrade true "request" @Success 200 @Security ApiKeyAuth @Router /settings/upgrade [get]

func (*BaseApi) GetOperationLogs

func (b *BaseApi) GetOperationLogs(c *gin.Context)

@Tags Logs @Summary Page operation logs @Description 获取系统操作日志列表分页 @Accept json @Param request body dto.SearchOpLogWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /logs/operation [post]

func (*BaseApi) GetParams

func (b *BaseApi) GetParams(c *gin.Context)

@Tags App @Summary Search params by appInstallId @Description 通过 install id 获取应用参数 @Accept json @Param appInstallId path string true "request" @Success 200 {object} response.AppParam @Security ApiKeyAuth @Router /apps/installed/params/:appInstallId [get]

func (*BaseApi) GetSafetyStatus

func (b *BaseApi) GetSafetyStatus(c *gin.Context)

@Tags Auth @Summary Load safety status @Description 获取系统安全登录状态 @Success 200 @Failure 402 @Router /auth/status [get]

func (*BaseApi) GetServices

func (b *BaseApi) GetServices(c *gin.Context)

@Tags App @Summary Search app service by key @Description 通过 key 获取应用 service @Accept json @Param key path string true "request" @Success 200 {anrry} response.AppService @Security ApiKeyAuth @Router /apps/services/:key [get]

func (*BaseApi) GetSettingInfo

func (b *BaseApi) GetSettingInfo(c *gin.Context)

@Tags System Setting @Summary Load system setting info @Description 加载系统配置信息 @Success 200 {object} dto.SettingInfo @Security ApiKeyAuth @Router /settings/search [post]

func (*BaseApi) GetSystemAvailable

func (b *BaseApi) GetSystemAvailable(c *gin.Context)

@Tags System Setting @Summary Load system available status @Description 获取系统可用状态 @Success 200 @Security ApiKeyAuth @Router /settings/search/available [get]

func (*BaseApi) GetUpdateVersions

func (b *BaseApi) GetUpdateVersions(c *gin.Context)

@Tags App @Summary Search app update version by install id @Description 通过 install id 获取应用更新版本 @Accept json @Param appInstallId path integer true "request" @Success 200 {anrry} dto.AppVersion @Security ApiKeyAuth @Router /apps/installed/:appInstallId/versions [get]

func (*BaseApi) GetUpgradeInfo

func (b *BaseApi) GetUpgradeInfo(c *gin.Context)

@Tags System Setting @Summary Load upgrade info @Description 系统更新信息 @Success 200 {object} dto.UpgradeInfo @Security ApiKeyAuth @Router /settings/upgrade [get]

func (*BaseApi) GetWebDomains

func (b *BaseApi) GetWebDomains(c *gin.Context)

@Tags Website Domain @Summary Search website domains by websiteId @Description 通过网站 id 查询域名 @Accept json @Param websiteId path integer true "request" @Success 200 {anrry} model.WebsiteDomain @Security ApiKeyAuth @Router /websites/domains/:websiteId [get]

func (*BaseApi) GetWebsite

func (b *BaseApi) GetWebsite(c *gin.Context)

@Tags Website @Summary Search website by id @Description 通过 id 查询网站 @Accept json @Param id path integer true "request" @Success 200 {object} response.WebsiteDTO @Security ApiKeyAuth @Router /websites/:id [get]

func (*BaseApi) GetWebsiteNginx

func (b *BaseApi) GetWebsiteNginx(c *gin.Context)

@Tags Website Nginx @Summary Search website nginx by id @Description 通过 id 查询网站 nginx @Accept json @Param id path integer true "request" @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Router /websites/:id/nginx [get]

func (*BaseApi) GetWebsiteOptions

func (b *BaseApi) GetWebsiteOptions(c *gin.Context)

@Tags Website @Summary List website names @Description 获取网站列表 @Success 200 {anrry} string @Security ApiKeyAuth @Router /websites/options [get]

func (*BaseApi) GetWebsiteSSLById

func (b *BaseApi) GetWebsiteSSLById(c *gin.Context)

@Tags Website SSL @Summary Search website ssl by id @Description 通过 id 查询 ssl @Accept json @Param id path integer true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/:id [get]

func (*BaseApi) GetWebsiteSSLByWebsiteId

func (b *BaseApi) GetWebsiteSSLByWebsiteId(c *gin.Context)

@Tags Website SSL @Summary Search website ssl by website id @Description 通过网站 id 查询 ssl @Accept json @Param websiteId path integer true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/website/:websiteId [get]

func (*BaseApi) GetWebsiteWafConfig

func (b *BaseApi) GetWebsiteWafConfig(c *gin.Context)

@Tags Website WAF @Summary Load websit waf conf @Description 获取网站 waf 配置 @Accept json @Param request body request.WebsiteWafReq true "request" @Success 200 {object} response.WebsiteWafConfig @Security ApiKeyAuth @Router /websites/waf/config [post]

func (*BaseApi) GetWebsites

func (b *BaseApi) GetWebsites(c *gin.Context)

@Tags Website @Summary List websites @Description 获取网站列表 @Success 200 {anrry} response.WebsiteDTO @Security ApiKeyAuth @Router /websites/list [get]

func (*BaseApi) HandleOnce

func (b *BaseApi) HandleOnce(c *gin.Context)

@Tags Cronjob @Summary Handle cronjob once @Description 手动执行计划任务 @Accept json @Param request body dto.OperateByID true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs/handle [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"cronjobs","output_colume":"name","output_value":"name"}],"formatZH":"手动执行计划任务 [name]","formatEN":"manually execute the cronjob [name]"}

func (*BaseApi) HandlePasswordExpired

func (b *BaseApi) HandlePasswordExpired(c *gin.Context)

@Tags System Setting @Summary Reset system password expired @Description 重置过期系统登录密码 @Accept json @Param request body dto.PasswordUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/expired/handle [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"重置过期密码","formatEN":"reset an expired Password"}

func (*BaseApi) HostTree

func (b *BaseApi) HostTree(c *gin.Context)

@Tags Host @Summary Load host tree @Description 加载主机树 @Accept json @Param request body dto.SearchForTree true "request" @Success 200 {anrry} dto.HostTree @Security ApiKeyAuth @Router /hosts/tree [post]

func (*BaseApi) ImageBuild

func (b *BaseApi) ImageBuild(c *gin.Context)

@Tags Container Image @Summary Build image @Description 构建镜像 @Accept json @Param request body dto.ImageBuild true "request" @Success 200 {string} log @Security ApiKeyAuth @Router /containers/image/build [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"构建镜像 [name]","formatEN":"build image [name]"}

func (*BaseApi) ImageLoad

func (b *BaseApi) ImageLoad(c *gin.Context)

@Tags Container Image @Summary Load image @Description 导入镜像 @Accept json @Param request body dto.ImageLoad true "request" @Success 200 @Security ApiKeyAuth @Router /containers/image/load [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 path 加载镜像","formatEN":"load image from path"}

func (*BaseApi) ImagePull

func (b *BaseApi) ImagePull(c *gin.Context)

@Tags Container Image @Summary Pull image @Description 拉取镜像 @Accept json @Param request body dto.ImagePull true "request" @Success 200 {string} log @Security ApiKeyAuth @Router /containers/image/pull [post] @x-panel-log {"bodyKeys":["repoID","imageName"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"repoID","isList":false,"db":"image_repos","output_colume":"name","output_value":"reponame"}],"formatZH":"镜像拉取 [reponame][imageName]","formatEN":"image pull [reponame][imageName]"}

func (*BaseApi) ImagePush

func (b *BaseApi) ImagePush(c *gin.Context)

@Tags Container Image @Summary Push image @Description 推送镜像 @Accept json @Param request body dto.ImagePush true "request" @Success 200 {string} log @Security ApiKeyAuth @Router /containers/image/push [post] @x-panel-log {"bodyKeys":["repoID","tagName","name"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"repoID","isList":false,"db":"image_repos","output_colume":"name","output_value":"reponame"}],"formatZH":"[tagName] 推送到 [reponame][name]","formatEN":"push [tagName] to [reponame][name]"}

func (*BaseApi) ImageRemove

func (b *BaseApi) ImageRemove(c *gin.Context)

@Tags Container Image @Summary Delete image @Description 删除镜像 @Accept json @Param request body dto.BatchDelete true "request" @Success 200 @Security ApiKeyAuth @Router /containers/image/remove [post] @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"移除镜像 [names]","formatEN":"remove image [names]"}

func (*BaseApi) ImageSave

func (b *BaseApi) ImageSave(c *gin.Context)

@Tags Container Image @Summary Save image @Description 导出镜像 @Accept json @Param request body dto.ImageSave true "request" @Success 200 @Security ApiKeyAuth @Router /containers/image/save [post] @x-panel-log {"bodyKeys":["tagName","path","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"保留 [tagName] 为 path/[name]","formatEN":"save [tagName] as path/[name]"}

func (*BaseApi) ImageTag

func (b *BaseApi) ImageTag(c *gin.Context)

@Tags Container Image @Summary Tag image @Description Tag 镜像 @Accept json @Param request body dto.ImageTag true "request" @Success 200 @Security ApiKeyAuth @Router /containers/image/tag [post] @x-panel-log {"bodyKeys":["repoID","targetName"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"repoID","isList":false,"db":"image_repos","output_colume":"name","output_value":"reponame"}],"formatZH":"tag 镜像 [reponame][targetName]","formatEN":"tag image [reponame][targetName]"}

func (*BaseApi) ImportSnapshot

func (b *BaseApi) ImportSnapshot(c *gin.Context)

@Tags System Setting @Summary Import system snapshot @Description 导入已有快照 @Accept json @Param request body dto.SnapshotImport true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot/import [post] @x-panel-log {"bodyKeys":["from", "names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [from] 同步系统快照 [names]","formatEN":"Sync system snapshots [names] from [from]"}

func (*BaseApi) InitUserInfo

func (b *BaseApi) InitUserInfo(c *gin.Context)

@Tags Auth @Summary Init user @Description 初始化用户 @Accept json @Param request body dto.InitUser true "request" @Success 200 @Router /auth/init [post]

func (*BaseApi) Inspect

func (b *BaseApi) Inspect(c *gin.Context)

@Tags Container @Summary Container inspect @Description 容器详情 @Accept json @Param request body dto.InspectReq true "request" @Success 200 {string} result @Security ApiKeyAuth @Router /containers/inspect [post]

func (*BaseApi) InstallApp

func (b *BaseApi) InstallApp(c *gin.Context)

@Tags App @Summary Install app @Description 安装应用 @Accept json @Param request body request.AppInstallCreate true "request" @Success 200 {object} model.AppInstall @Security ApiKeyAuth @Router /apps/install [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"name","input_value":"name","isList":false,"db":"app_installs","output_colume":"app_id","output_value":"appId"},{"info":"appId","isList":false,"db":"apps","output_colume":"key","output_value":"appKey"}],"formatZH":"安装应用 [appKey]-[name]","formatEN":"Install app [appKey]-[name]"}

func (*BaseApi) Keys

func (b *BaseApi) Keys(c *gin.Context)

func (*BaseApi) ListBackup

func (b *BaseApi) ListBackup(c *gin.Context)

@Tags Backup Account @Summary List backup accounts @Description 获取备份账号列表 @Success 200 {anrry} dto.BackupInfo @Security ApiKeyAuth @Router /settings/backup/search [get]

func (*BaseApi) ListBuckets

func (b *BaseApi) ListBuckets(c *gin.Context)

@Tags Backup Account @Summary List buckets @Description 获取 bucket 列表 @Accept json @Param request body dto.ForBuckets true "request" @Success 200 {anrry} string @Security ApiKeyAuth @Router /settings/backup/search [post]

func (*BaseApi) ListCommand

func (b *BaseApi) ListCommand(c *gin.Context)

@Tags Command @Summary List commands @Description 获取快速命令列表 @Success 200 {object} dto.CommandInfo @Security ApiKeyAuth @Router /hosts/command [get]

func (*BaseApi) ListComposeTemplate

func (b *BaseApi) ListComposeTemplate(c *gin.Context)

@Tags Container Compose-template @Summary List compose templates @Description 获取容器编排模版列表 @Produce json @Success 200 {anrry} dto.ComposeTemplateInfo @Security ApiKeyAuth @Router /containers/template [get]

func (*BaseApi) ListDBName

func (b *BaseApi) ListDBName(c *gin.Context)

@Tags Database Mysql @Summary List mysql database names @Description 获取 mysql 数据库列表 @Accept json @Param request body dto.PageInfo true "request" @Success 200 {anrry} string @Security ApiKeyAuth @Router /databases/options [get]

func (*BaseApi) ListFiles

func (b *BaseApi) ListFiles(c *gin.Context)

@Tags File @Summary List files @Description 获取文件列表 @Accept json @Param request body request.FileOption true "request" @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Router /files/search [post]

func (*BaseApi) ListGroup

func (b *BaseApi) ListGroup(c *gin.Context)

@Tags System Group @Summary List groups @Description 查询系统组 @Accept json @Param request body dto.GroupSearch true "request" @Success 200 {anrry} dto.GroupInfo @Security ApiKeyAuth @Router /hosts/group/search [post]

func (*BaseApi) ListImage

func (b *BaseApi) ListImage(c *gin.Context)

@Tags Container Image @Summary List images @Description 获取镜像列表 @Produce json @Success 200 {anrry} dto.Options @Security ApiKeyAuth @Router /containers/image [get]

func (*BaseApi) ListRepo

func (b *BaseApi) ListRepo(c *gin.Context)

@Tags Container Image-repo @Summary List image repos @Description 获取镜像仓库列表 @Produce json @Success 200 {anrry} dto.ImageRepoOption @Security ApiKeyAuth @Router /containers/repo [get]

func (*BaseApi) ListVolume

func (b *BaseApi) ListVolume(c *gin.Context)

@Tags Container Volume @Summary List volumes @Description 获取容器存储卷列表 @Accept json @Param request body dto.PageInfo true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/volume/search [get]

func (*BaseApi) LoadBaseDir

func (b *BaseApi) LoadBaseDir(c *gin.Context)

@Tags System Setting @Summary Load local backup dir @Description 获取安装根目录 @Success 200 {string} path @Security ApiKeyAuth @Router /settings/basedir [get]

func (*BaseApi) LoadBaseinfo

func (b *BaseApi) LoadBaseinfo(c *gin.Context)

@Tags Database Mysql @Summary Load mysql base info @Description 获取 mysql 基础信息 @Success 200 {object} dto.DBBaseInfo @Security ApiKeyAuth @Router /databases/baseinfo [get]

func (*BaseApi) LoadDaemonJson

func (b *BaseApi) LoadDaemonJson(c *gin.Context)

@Tags Container Docker @Summary Load docker daemon.json @Description 获取 docker 配置信息 @Produce json @Success 200 {object} dto.DaemonJsonConf @Security ApiKeyAuth @Router /containers/daemonjson [get]

func (*BaseApi) LoadDaemonJsonFile

func (b *BaseApi) LoadDaemonJsonFile(c *gin.Context)

@Tags Container Docker @Summary Load docker daemon.json @Description 获取 docker 配置信息(表单) @Produce json @Success 200 {object} string @Security ApiKeyAuth @Router /containers/daemonjson/file [get]

func (*BaseApi) LoadDashboardBaseInfo

func (b *BaseApi) LoadDashboardBaseInfo(c *gin.Context)

@Tags Dashboard @Summary Load dashboard base info @Description 获取首页基础数据 @Accept json @Param ioOption path string true "request" @Param netOption path string true "request" @Success 200 {object} dto.DashboardBase @Security ApiKeyAuth @Router /dashboard/base/:ioOption/:netOption [get]

func (*BaseApi) LoadDashboardCurrentInfo

func (b *BaseApi) LoadDashboardCurrentInfo(c *gin.Context)

@Tags Dashboard @Summary Load dashboard current info @Description 获取首页实时数据 @Accept json @Param ioOption path string true "request" @Param netOption path string true "request" @Success 200 {object} dto.DashboardCurrent @Security ApiKeyAuth @Router /dashboard/current/:ioOption/:netOption [get]

func (*BaseApi) LoadDockerStatus

func (b *BaseApi) LoadDockerStatus(c *gin.Context)

@Tags Container Docker @Summary Load docker status @Description 获取 docker 服务状态 @Produce json @Success 200 {string} status @Security ApiKeyAuth @Router /containers/docker/status [get]

func (*BaseApi) LoadFilesFromBackup

func (b *BaseApi) LoadFilesFromBackup(c *gin.Context)

@Tags Backup Account @Summary List files from backup accounts @Description 获取备份账号内文件列表 @Accept json @Param request body dto.BackupSearchFile true "request" @Success 200 {anrry} string @Security ApiKeyAuth @Router /settings/backup/search/files [post]

func (*BaseApi) LoadFromFile

func (b *BaseApi) LoadFromFile(c *gin.Context)

@Tags File @Summary Read file @Description 读取文件 @Accept json @Param request body dto.FilePath true "request" @Success 200 {string} content @Security ApiKeyAuth @Router /files/loadfile [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"读取文件 path","formatEN":"Read file path"}

func (*BaseApi) LoadMonitor

func (b *BaseApi) LoadMonitor(c *gin.Context)

func (*BaseApi) LoadPassword

func (b *BaseApi) LoadPassword(c *gin.Context)

@Tags App @Summary Search app password by key @Description 获取应用密码 @Accept json @Param key path string true "request" @Success 200 {string} password @Security ApiKeyAuth @Router /apps/installed/loadpassword/:key [get]

func (*BaseApi) LoadPersistenceConf

func (b *BaseApi) LoadPersistenceConf(c *gin.Context)

@Tags Database Redis @Summary Load redis persistence conf @Description 获取 redis 持久化配置 @Success 200 {object} dto.RedisPersistence @Security ApiKeyAuth @Router /databases/redis/persistence/conf [get]

func (*BaseApi) LoadPort

func (b *BaseApi) LoadPort(c *gin.Context)

@Tags App @Summary Search app port by key @Description 获取应用端口 @Accept json @Param key path string true "request" @Success 200 {integer} port @Security ApiKeyAuth @Router /apps/installed/loadport/:key [get]

func (*BaseApi) LoadRedisConf

func (b *BaseApi) LoadRedisConf(c *gin.Context)

@Tags Database Redis @Summary Load redis conf @Description 获取 redis 配置信息 @Success 200 {object} dto.RedisConf @Security ApiKeyAuth @Router /databases/redis/conf [get]

func (*BaseApi) LoadRedisStatus

func (b *BaseApi) LoadRedisStatus(c *gin.Context)

@Tags Database Redis @Summary Load redis status info @Description 获取 redis 状态信息 @Success 200 {object} dto.RedisStatus @Security ApiKeyAuth @Router /databases/redis/status [get]

func (*BaseApi) LoadRemoteAccess

func (b *BaseApi) LoadRemoteAccess(c *gin.Context)

@Tags Database Mysql @Summary Load mysql remote access @Description 获取 mysql 远程访问权限 @Success 200 {boolean} isRemote @Security ApiKeyAuth @Router /databases/remote [get]

func (*BaseApi) LoadStatus

func (b *BaseApi) LoadStatus(c *gin.Context)

@Tags Database Mysql @Summary Load mysql status info @Description 获取 mysql 状态信息 @Success 200 {object} dto.MysqlStatus @Security ApiKeyAuth @Router /databases/status [get]

func (*BaseApi) LoadVariables

func (b *BaseApi) LoadVariables(c *gin.Context)

@Tags Database Mysql @Summary Load mysql variables info @Description 获取 mysql 性能参数信息 @Success 200 {object} dto.MysqlVariables @Security ApiKeyAuth @Router /databases/variables [get]

func (*BaseApi) LogOut

func (b *BaseApi) LogOut(c *gin.Context)

@Tags Auth @Summary User logout @Description 用户登出 @Success 200 @Security ApiKeyAuth @Router /auth/logout [post]

func (*BaseApi) Login

func (b *BaseApi) Login(c *gin.Context)

@Tags Auth @Summary User login @Description 用户登录 @Accept json @Param request body dto.Login true "request" @Success 200 {object} dto.UserLoginInfo @Router /auth/login [post]

func (*BaseApi) MFABind

func (b *BaseApi) MFABind(c *gin.Context)

@Tags System Setting @Summary Bind mfa @Description Mfa 绑定 @Accept json @Param request body dto.MfaCredential true "request" @Success 200 @Security ApiKeyAuth @Router /settings/mfa/bind [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"mfa 绑定","formatEN":"bind mfa"}

func (*BaseApi) MFALogin

func (b *BaseApi) MFALogin(c *gin.Context)

@Tags Auth @Summary User login with mfa @Description 用户 mfa 登录 @Accept json @Param request body dto.MFALogin true "request" @Success 200 {object} dto.UserLoginInfo @Router /auth/mfalogin [post]

func (*BaseApi) MoveFile

func (b *BaseApi) MoveFile(c *gin.Context)

@Tags File @Summary Move file @Description 移动文件 @Accept json @Param request body request.FileMove true "request" @Success 200 @Security ApiKeyAuth @Router /files/move [post] @x-panel-log {"bodyKeys":["oldPaths","newPath"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"移动文件 [oldPaths] => [newPath]","formatEN":"Move [oldPaths] => [newPath]"}

func (*BaseApi) OpWebsite

func (b *BaseApi) OpWebsite(c *gin.Context)

@Tags Website @Summary Operate website @Description 操作网站 @Accept json @Param request body request.WebsiteOp true "request" @Success 200 @Security ApiKeyAuth @Router /websites/operate [post] @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"[operate] 网站 [domain]","formatEN":"[operate] website [domain]"}

func (*BaseApi) OpWebsiteLog

func (b *BaseApi) OpWebsiteLog(c *gin.Context)

@Tags Website @Summary Operate website log @Description 操作网站日志 @Accept json @Param request body request.WebsiteLogReq true "request" @Success 200 {object} response.WebsiteLog @Security ApiKeyAuth @Router /websites/log [post] @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"[domain][operate] 日志","formatEN":"[domain][operate] logs"}

func (*BaseApi) OperateDocker

func (b *BaseApi) OperateDocker(c *gin.Context)

@Tags Container Docker @Summary Operate docker @Description Docker 操作 @Accept json @Param request body dto.DockerOperation true "request" @Success 200 @Security ApiKeyAuth @Router /containers/docker/operate [post] @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"docker 服务 [operation]","formatEN":"[operation] docker service"}

func (*BaseApi) OperateInstalled

func (b *BaseApi) OperateInstalled(c *gin.Context)

@Tags App @Summary Operate installed app @Description 操作已安装应用 @Accept json @Param request body request.AppInstalledOperate true "request" @Success 200 @Security ApiKeyAuth @Router /apps/installed/op [post] @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"installId","isList":false,"db":"app_installs","output_colume":"app_id","output_value":"appId"},{"input_colume":"id","input_value":"installId","isList":false,"db":"app_installs","output_colume":"name","output_value":"appName"},{"input_colume":"id","input_value":"appId","isList":false,"db":"apps","output_colume":"key","output_value":"appKey"}],"formatZH":"[appKey] 应用 [appName] [operate]","formatEN":"[appKey] App [appName] [operate]"}

func (*BaseApi) OperatorCompose

func (b *BaseApi) OperatorCompose(c *gin.Context)

@Tags Container Compose @Summary Operate compose @Description 容器编排操作 @Accept json @Param request body dto.ComposeOperation true "request" @Success 200 @Security ApiKeyAuth @Router /containers/compose/operate [post] @x-panel-log {"bodyKeys":["name","operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"compose [operation] [name]","formatEN":"compose [operation] [name]"}

func (*BaseApi) PageWebsite

func (b *BaseApi) PageWebsite(c *gin.Context)

@Tags Website @Summary Page websites @Description 获取网站列表分页 @Accept json @Param request body request.WebsiteSearch true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /websites/search [post]

func (*BaseApi) PageWebsiteAcmeAccount

func (b *BaseApi) PageWebsiteAcmeAccount(c *gin.Context)

@Tags Website Acme @Summary Page website acme accounts @Description 获取网站 acme 列表分页 @Accept json @Param request body dto.PageInfo true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /websites/acme/search [post]

func (*BaseApi) PageWebsiteDnsAccount

func (b *BaseApi) PageWebsiteDnsAccount(c *gin.Context)

@Tags Website DNS @Summary Page website dns accounts @Description 获取网站 dns 列表分页 @Accept json @Param request body dto.PageInfo true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /websites/dns/search [post]

func (*BaseApi) PageWebsiteSSL

func (b *BaseApi) PageWebsiteSSL(c *gin.Context)

@Tags Website SSL @Summary Page website ssl @Description 获取网站 ssl 列表分页 @Accept json @Param request body request.WebsiteSSLSearch true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/search [post]

func (*BaseApi) Recover

func (b *BaseApi) Recover(c *gin.Context)

@Tags Backup Account @Summary Recover system data @Description 恢复系统数据 @Accept json @Param request body dto.CommonRecover true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/recover [post] @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"}

func (*BaseApi) RecoverByUpload

func (b *BaseApi) RecoverByUpload(c *gin.Context)

@Tags Backup Account @Summary Recover system data by upload @Description 从上传恢复系统数据 @Accept json @Param request body dto.CommonRecover true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/recover/byupload [post] @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"}

func (*BaseApi) RecoverSnapshot

func (b *BaseApi) RecoverSnapshot(c *gin.Context)

@Tags System Setting @Summary Recover system backup @Description 从系统快照恢复 @Accept json @Param request body dto.SnapshotRecover true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot/recover [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"snapshots","output_colume":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 恢复","formatEN":"Recover from system backup [name]"}

func (*BaseApi) RedisBackupList

func (b *BaseApi) RedisBackupList(c *gin.Context)

@Tags Database Redis @Summary Page redis backups @Description 获取 redis 备份记录分页 @Accept json @Param request body dto.PageInfo true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /databases/redis/backup/search [post]

func (*BaseApi) RedisWsSsh

func (b *BaseApi) RedisWsSsh(c *gin.Context)

func (*BaseApi) RenewWebsiteSSL

func (b *BaseApi) RenewWebsiteSSL(c *gin.Context)

@Tags Website SSL @Summary Reset website ssl @Description 重置网站 ssl @Accept json @Param request body request.WebsiteSSLRenew true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/renew [post] @x-panel-log {"bodyKeys":["SSLId"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"SSLId","isList":false,"db":"website_ssls","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"重置 ssl [domain]","formatEN":"Renew ssl [domain]"}

func (*BaseApi) RollbackSnapshot

func (b *BaseApi) RollbackSnapshot(c *gin.Context)

@Tags System Setting @Summary Rollback system backup @Description 从系统快照回滚 @Accept json @Param request body dto.SnapshotRecover true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot/rollback [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"snapshots","output_colume":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 回滚","formatEN":"Rollback from system backup [name]"}

func (*BaseApi) SafeEntrance

func (b *BaseApi) SafeEntrance(c *gin.Context)

func (*BaseApi) SaveContent

func (b *BaseApi) SaveContent(c *gin.Context)

@Tags File @Summary Update file content @Description 更新文件内容 @Accept json @Param request body request.FileEdit true "request" @Success 200 @Security ApiKeyAuth @Router /files/save [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新文件内容 path","formatEN":"Update file content path"}

func (*BaseApi) SearchApp

func (b *BaseApi) SearchApp(c *gin.Context)

@Tags App @Summary List apps @Description 获取应用列表 @Accept json @Param request body request.AppSearch true "request" @Success 200 @Security ApiKeyAuth @Router /apps/search [post]

func (*BaseApi) SearchAppInstalled

func (b *BaseApi) SearchAppInstalled(c *gin.Context)

@Tags App @Summary List app installed @Description 获取已安装应用列表 @Accept json @Param request body request.AppInstalledSearch true "request" @Success 200 @Security ApiKeyAuth @Router /apps/installed/search [post]

func (*BaseApi) SearchBackupRecords

func (b *BaseApi) SearchBackupRecords(c *gin.Context)

@Tags Backup Account @Summary Page backup records @Description 获取备份记录列表分页 @Accept json @Param request body dto.RecordSearch true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/record/search [post]

func (*BaseApi) SearchCommand

func (b *BaseApi) SearchCommand(c *gin.Context)

@Tags Command @Summary Page commands @Description 获取快速命令列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /hosts/command/search [post]

func (*BaseApi) SearchCompose

func (b *BaseApi) SearchCompose(c *gin.Context)

@Tags Container Compose @Summary Page composes @Description 获取编排列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/compose/search [post]

func (*BaseApi) SearchComposeTemplate

func (b *BaseApi) SearchComposeTemplate(c *gin.Context)

@Tags Container Compose-template @Summary Page compose templates @Description 获取容器编排模版列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/template/search [post]

func (*BaseApi) SearchContainer

func (b *BaseApi) SearchContainer(c *gin.Context)

@Tags Container @Summary Page containers @Description 获取容器列表分页 @Accept json @Param request body dto.PageContainer true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/search [post]

func (*BaseApi) SearchCronjob

func (b *BaseApi) SearchCronjob(c *gin.Context)

@Tags Cronjob @Summary Page cronjobs @Description 获取计划任务分页 @Accept json @Param request body dto.SearchWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /cronjobs/search [post]

func (*BaseApi) SearchHost

func (b *BaseApi) SearchHost(c *gin.Context)

@Tags Host @Summary Page host @Description 获取主机列表分页 @Accept json @Param request body dto.SearchHostWithPage true "request" @Success 200 {anrry} dto.HostTree @Security ApiKeyAuth @Router /hosts/search [post]

func (*BaseApi) SearchImage

func (b *BaseApi) SearchImage(c *gin.Context)

@Tags Container Image @Summary Page images @Description 获取镜像列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/image/search [post]

func (*BaseApi) SearchJobRecords

func (b *BaseApi) SearchJobRecords(c *gin.Context)

@Tags Cronjob @Summary Page job records @Description 获取计划任务记录 @Accept json @Param request body dto.SearchRecord true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /cronjobs/search/records [post]

func (*BaseApi) SearchMysql

func (b *BaseApi) SearchMysql(c *gin.Context)

@Tags Database Mysql @Summary Page mysql databases @Description 获取 mysql 数据库列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /databases/search [post]

func (*BaseApi) SearchNetwork

func (b *BaseApi) SearchNetwork(c *gin.Context)

@Tags Container Network @Summary Page networks @Description 获取容器网络列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/network/search [post]

func (*BaseApi) SearchRepo

func (b *BaseApi) SearchRepo(c *gin.Context)

@Tags Container Image-repo @Summary Page image repos @Description 获取镜像仓库列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/repo/search [post]

func (*BaseApi) SearchSnapshot

func (b *BaseApi) SearchSnapshot(c *gin.Context)

@Tags System Setting @Summary Page system snapshot @Description 获取系统快照列表分页 @Accept json @Param request body dto.SearchWithPage true "request" @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /settings/snapshot/search [post]

func (*BaseApi) SearchUploadWithPage

func (b *BaseApi) SearchUploadWithPage(c *gin.Context)

@Tags File @Summary Page file @Description 分页获取上传文件 @Accept json @Param request body request.SearchUploadWithPage true "request" @Success 200 {anrry} response.FileInfo @Security ApiKeyAuth @Router /files/upload/search [post]

func (*BaseApi) SearchVolume

func (b *BaseApi) SearchVolume(c *gin.Context)

@Tags Container Volume @Summary Page volumes @Description 获取容器存储卷分页 @Accept json @Param request body dto.SearchWithPage true "request" @Produce json @Success 200 {object} dto.PageResult @Security ApiKeyAuth @Router /containers/volume/search [post]

func (*BaseApi) Size

func (b *BaseApi) Size(c *gin.Context)

@Tags File @Summary Load file size @Description 获取文件夹大小 @Accept json @Param request body request.DirSizeReq true "request" @Success 200 @Security ApiKeyAuth @Router /files/size [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"获取文件夹大小 path","formatEN":"Load file size path"}

func (*BaseApi) SyncApp

func (b *BaseApi) SyncApp(c *gin.Context)

@Tags App @Summary Sync app list @Description 同步应用列表 @Success 200 @Security ApiKeyAuth @Router /apps/sync [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用商店同步","formatEN":"App store synchronization"}

func (*BaseApi) SyncInstalled

func (b *BaseApi) SyncInstalled(c *gin.Context)

Sync app installed @Tags App @Summary Sync app installed @Description 同步已安装应用列表 @Success 200 @Security ApiKeyAuth @Router /apps/installed/sync [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"同步已安装应用列表","formatEN":"Sync the list of installed apps"}

func (*BaseApi) SyncTime

func (b *BaseApi) SyncTime(c *gin.Context)

@Tags System Setting @Summary Sync system time @Description 系统时间同步 @Success 200 {string} ntime @Security ApiKeyAuth @Router /settings/time/sync [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"系统时间同步","formatEN":"sync system time"}

func (*BaseApi) TargetDownload

func (b *BaseApi) TargetDownload(c *gin.Context)

@Tags Cronjob @Summary Download cronjob records @Description 下载计划任务记录 @Accept json @Param request body dto.CronjobDownload true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs/download [post] @x-panel-log {"bodyKeys":["recordID"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"recordID","isList":false,"db":"job_records","output_colume":"file","output_value":"file"}],"formatZH":"下载计划任务记录 [file]","formatEN":"download the cronjob record [file]"}

func (*BaseApi) TestByID

func (b *BaseApi) TestByID(c *gin.Context)

@Tags Host @Summary Test host conn by host id @Description 测试主机连接 @Accept json @Param id path integer true "request" @Success 200 {boolean} connStatus @Security ApiKeyAuth @Router /hosts/test/byid/:id [post]

func (*BaseApi) TestByInfo

func (b *BaseApi) TestByInfo(c *gin.Context)

@Tags Host @Summary Test host conn by info @Description 测试主机连接 @Accept json @Param request body dto.HostConnTest true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/test/byinfo [post]

func (*BaseApi) TestCompose added in v1.0.3

func (b *BaseApi) TestCompose(c *gin.Context)

@Tags Container Compose @Summary Test compose @Description 测试 compose 是否可用 @Accept json @Param request body dto.ComposeCreate true "request" @Success 200 @Security ApiKeyAuth @Router /containers/compose/test [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"检测 compose [name] 格式","formatEN":"check compose [name]"}

func (*BaseApi) UpdateBackup

func (b *BaseApi) UpdateBackup(c *gin.Context)

@Tags Backup Account @Summary Update backup account @Description 更新备份账号信息 @Accept json @Param request body dto.BackupOperate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/backup/update [post] @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新备份账号 [types]","formatEN":"update backup account [types]"}

func (*BaseApi) UpdateCommand

func (b *BaseApi) UpdateCommand(c *gin.Context)

@Tags Command @Summary Update command @Description 更新快速命令 @Accept json @Param request body dto.CommandOperate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/command/update [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新快捷命令 [name]","formatEN":"update quick command [name]"}

func (*BaseApi) UpdateComposeTemplate

func (b *BaseApi) UpdateComposeTemplate(c *gin.Context)

@Tags Container Compose-template @Summary Update compose template @Description 更新容器编排模版 @Accept json @Param request body dto.ComposeTemplateUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /containers/template/update [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"compose_templates","output_colume":"name","output_value":"name"}],"formatZH":"更新 compose 模版 [name]","formatEN":"update compose template information [name]"}

func (*BaseApi) UpdateCronjob

func (b *BaseApi) UpdateCronjob(c *gin.Context)

@Tags Cronjob @Summary Update cronjob @Description 更新计划任务 @Accept json @Param request body dto.CronjobUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs/update [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"cronjobs","output_colume":"name","output_value":"name"}],"formatZH":"更新计划任务 [name]","formatEN":"update cronjob [name]"}

func (*BaseApi) UpdateCronjobStatus

func (b *BaseApi) UpdateCronjobStatus(c *gin.Context)

@Tags Cronjob @Summary Update cronjob status @Description 更新计划任务状态 @Accept json @Param request body dto.CronjobUpdateStatus true "request" @Success 200 @Security ApiKeyAuth @Router /cronjobs/status [post] @x-panel-log {"bodyKeys":["id","status"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"cronjobs","output_colume":"name","output_value":"name"}],"formatZH":"修改计划任务 [name] 状态为 [status]","formatEN":"change the status of cronjob [name] to [status]."}

func (*BaseApi) UpdateDaemonJson

func (b *BaseApi) UpdateDaemonJson(c *gin.Context)

@Tags Container Docker @Summary Update docker daemon.json @Description 修改 docker 配置信息 @Accept json @Param request body dto.DaemonJsonConf true "request" @Success 200 @Security ApiKeyAuth @Router /containers/daemonjson/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 docker daemon.json 配置","formatEN":"Updated the docker daemon.json configuration"}

func (*BaseApi) UpdateDaemonJsonByFile

func (b *BaseApi) UpdateDaemonJsonByFile(c *gin.Context)

@Tags Container Docker @Summary Update docker daemon.json by upload file @Description 上传替换 docker 配置文件 @Accept json @Param request body dto.DaemonJsonUpdateByFile true "request" @Success 200 @Security ApiKeyAuth @Router /containers/daemonjson/update/byfile [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 docker daemon.json 配置","formatEN":"Updated the docker daemon.json configuration"}

func (*BaseApi) UpdateGroup

func (b *BaseApi) UpdateGroup(c *gin.Context)

@Tags System Group @Summary Update group @Description 更新系统组 @Accept json @Param request body dto.GroupUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/group/update [post] @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新组 [name][type]","formatEN":"update group [name][type]"}

func (*BaseApi) UpdateHTTPSConfig

func (b *BaseApi) UpdateHTTPSConfig(c *gin.Context)

@Tags Website HTTPS @Summary Update https conf @Description 更新 https 配置 @Accept json @Param request body request.WebsiteHTTPSOp true "request" @Success 200 {object} response.WebsiteHTTPS @Security ApiKeyAuth @Router /websites/:id/https [post] @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"websiteId","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] https 配置","formatEN":"Update website https [domain] conf"}

func (*BaseApi) UpdateHost

func (b *BaseApi) UpdateHost(c *gin.Context)

@Tags Host @Summary Update host @Description 更新主机 @Accept json @Param request body dto.HostOperate true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/update [post] @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新主机信息 [name][addr]","formatEN":"update host [name][addr]"}

func (*BaseApi) UpdateHostGroup

func (b *BaseApi) UpdateHostGroup(c *gin.Context)

@Tags Host @Summary Update host group @Description 切换分组 @Accept json @Param request body dto.ChangeHostGroup true "request" @Success 200 @Security ApiKeyAuth @Router /hosts/update [post] @x-panel-log {"bodyKeys":["id","group"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"hosts","output_colume":"addr","output_value":"addr"}],"formatZH":"切换主机[addr]分组 => [group]","formatEN":"change host [addr] group => [group]"}

func (*BaseApi) UpdateInstalled

func (b *BaseApi) UpdateInstalled(c *gin.Context)

@Tags App @Summary Change app params @Description 修改应用参数 @Accept json @Param request body request.AppInstalledUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /apps/installed/params/update [post] @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用参数修改 [installId]","formatEN":"Application param update [installId]"}

func (*BaseApi) UpdateMysqlConfByFile

func (b *BaseApi) UpdateMysqlConfByFile(c *gin.Context)

@Tags Database Mysql @Summary Update mysql conf by upload file @Description 上传替换 mysql 配置文件 @Accept json @Param request body dto.MysqlConfUpdateByFile true "request" @Success 200 @Security ApiKeyAuth @Router /databases/conffile/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 mysql 数据库配置信息","formatEN":"update the mysql database configuration information"}

func (*BaseApi) UpdateMysqlDescription

func (b *BaseApi) UpdateMysqlDescription(c *gin.Context)

@Tags Database Mysql @Summary Update mysql database description @Description 更新 mysql 数据库库描述信息 @Accept json @Param request body dto.UpdateDescription true "request" @Success 200 @Security ApiKeyAuth @Router /databases/description/update [post] @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"database_mysqls","output_colume":"name","output_value":"name"}],"formatZH":"mysql 数据库 [name] 描述信息修改 [description]","formatEN":"The description of the mysql database [name] is modified => [description]"}

func (*BaseApi) UpdateMysqlVariables

func (b *BaseApi) UpdateMysqlVariables(c *gin.Context)

@Tags Database Mysql @Summary Update mysql variables @Description mysql 性能调优 @Accept json @Param request body dto.MysqlVariablesUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /databases/variables/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"调整 mysql 数据库性能参数","formatEN":"adjust mysql database performance parameters"}

func (*BaseApi) UpdateNginxConfig

func (b *BaseApi) UpdateNginxConfig(c *gin.Context)

@Tags Website Nginx @Summary Update nginx conf @Description 更新 nginx 配置 @Accept json @Param request body request.NginxConfigUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/config/update [post] @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"websiteId","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"nginx 配置修改 [domain]","formatEN":"Nginx conf update [domain]"}

func (*BaseApi) UpdateNginxConfigByScope

func (b *BaseApi) UpdateNginxConfigByScope(c *gin.Context)

@Tags OpenResty @Summary Update OpenResty conf @Description 更新 OpenResty 配置信息 @Accept json @Param request body request.NginxConfigUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /openResty/update [post] @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"websiteId","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"更新 nginx 配置 [domain]","formatEN":"Update nginx conf [domain]"}

func (*BaseApi) UpdateNginxFile

func (b *BaseApi) UpdateNginxFile(c *gin.Context)

@Tags OpenResty @Summary Update OpenResty conf by upload file @Description 上传更新 OpenResty 配置文件 @Accept json @Param request body request.NginxConfigFileUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /openResty/file [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 nginx 配置","formatEN":"Update nginx conf"}

func (*BaseApi) UpdatePassword

func (b *BaseApi) UpdatePassword(c *gin.Context)

@Tags System Setting @Summary Update system password @Description 更新系统登录密码 @Accept json @Param request body dto.PasswordUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/password/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统密码","formatEN":"update system password"}

func (*BaseApi) UpdatePort

func (b *BaseApi) UpdatePort(c *gin.Context)

@Tags System Setting @Summary Update system port @Description 更新系统端口 @Accept json @Param request body dto.PortUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/port/update [post] @x-panel-log {"bodyKeys":["serverPort"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统端口 => [serverPort]","formatEN":"update system port => [serverPort]"}

func (*BaseApi) UpdateRedisConf

func (b *BaseApi) UpdateRedisConf(c *gin.Context)

@Tags Database Redis @Summary Update redis conf @Description 更新 redis 配置信息 @Accept json @Param request body dto.RedisConfUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /databases/redis/conf/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"}

func (*BaseApi) UpdateRedisConfByFile

func (b *BaseApi) UpdateRedisConfByFile(c *gin.Context)

@Tags Database Redis @Summary Update redis conf by file @Description 上传更新 redis 配置信息 @Accept json @Param request body dto.RedisConfUpdateByFile true "request" @Success 200 @Security ApiKeyAuth @Router /databases/redis/conffile/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"}

func (*BaseApi) UpdateRedisPersistenceConf

func (b *BaseApi) UpdateRedisPersistenceConf(c *gin.Context)

@Tags Database Redis @Summary Update redis persistence conf @Description 更新 redis 持久化配置 @Accept json @Param request body dto.RedisConfPersistenceUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /databases/redis/persistence/update [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"redis 数据库持久化配置更新","formatEN":"redis database persistence configuration update"}

func (*BaseApi) UpdateRepo

func (b *BaseApi) UpdateRepo(c *gin.Context)

@Tags Container Image-repo @Summary Update image repo @Description 更新镜像仓库 @Accept json @Param request body dto.ImageRepoUpdate true "request" @Produce json @Success 200 @Security ApiKeyAuth @Router /containers/repo/update [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"image_repos","output_colume":"name","output_value":"name"}],"formatZH":"更新镜像仓库 [name]","formatEN":"update image repo information [name]"}

func (*BaseApi) UpdateSetting

func (b *BaseApi) UpdateSetting(c *gin.Context)

@Tags System Setting @Summary Update system setting @Description 更新系统配置 @Accept json @Param request body dto.SettingUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /settings/update [post] @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统配置 [key] => [value]","formatEN":"update system setting [key] => [value]"}

func (*BaseApi) UpdateSnapDescription

func (b *BaseApi) UpdateSnapDescription(c *gin.Context)

@Tags System Setting @Summary Update snapshot description @Description 更新快照描述信息 @Accept json @Param request body dto.UpdateDescription true "request" @Success 200 @Security ApiKeyAuth @Router /settings/snapshot/description/update [post] @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"snapshots","output_colume":"name","output_value":"name"}],"formatZH":"快照 [name] 描述信息修改 [description]","formatEN":"The description of the snapshot [name] is modified => [description]"}

func (*BaseApi) UpdateWebsite

func (b *BaseApi) UpdateWebsite(c *gin.Context)

@Tags Website @Summary Update website @Description 更新网站 @Accept json @Param request body request.WebsiteUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/update [post] @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新网站 [primaryDomain]","formatEN":"Update website [primaryDomain]"}

func (*BaseApi) UpdateWebsiteDnsAccount

func (b *BaseApi) UpdateWebsiteDnsAccount(c *gin.Context)

@Tags Website DNS @Summary Update website dns account @Description 更新网站 dns @Accept json @Param request body request.WebsiteDnsAccountUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/dns/update [post] @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新网站 dns [name]","formatEN":"Update website dns [name]"}

func (*BaseApi) UpdateWebsiteNginxConfig

func (b *BaseApi) UpdateWebsiteNginxConfig(c *gin.Context)

@Tags Website Nginx @Summary Update website nginx conf @Description 更新 网站 nginx 配置 @Accept json @Param request body request.WebsiteNginxUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/nginx/update [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"[domain] Nginx 配置修改","formatEN":"[domain] Nginx conf update"}

func (*BaseApi) UpdateWebsiteSSL added in v1.0.3

func (b *BaseApi) UpdateWebsiteSSL(c *gin.Context)

@Tags Website SSL @Summary Update ssl @Description 更新 ssl @Accept json @Param request body request.WebsiteSSLUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/ssl/update [post] @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"id","isList":false,"db":"website_ssls","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"更新证书设置 [domain]","formatEN":"Update ssl config [domain]"}

func (*BaseApi) UpdateWebsiteWafConfig

func (b *BaseApi) UpdateWebsiteWafConfig(c *gin.Context)

@Tags Website WAF @Summary Update website waf conf @Description 更新 网站 waf 配置 @Accept json @Param request body request.WebsiteWafUpdate true "request" @Success 200 @Security ApiKeyAuth @Router /websites/waf/update [post] @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_colume":"id","input_value":"websiteId","isList":false,"db":"websites","output_colume":"primary_domain","output_value":"domain"}],"formatZH":"WAF 配置修改 [domain]","formatEN":"WAF conf update [domain]"}

func (*BaseApi) Upgrade

func (b *BaseApi) Upgrade(c *gin.Context)

@Tags System Setting @Summary Upgrade @Description 系统更新 @Accept json @Param request body dto.Upgrade true "request" @Success 200 @Security ApiKeyAuth @Router /settings/upgrade [post] @x-panel-log {"bodyKeys":["version"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新系统 => [version]","formatEN":"upgrade service => [version]"}

func (*BaseApi) UploadChunkFiles

func (b *BaseApi) UploadChunkFiles(c *gin.Context)

@Tags File @Summary ChunkUpload file @Description 分片上传文件 @Param file formData file true "request" @Success 200 @Security ApiKeyAuth @Router /files/chunkupload [post]

func (*BaseApi) UploadFiles

func (b *BaseApi) UploadFiles(c *gin.Context)

@Tags File @Summary Upload file @Description 上传文件 @Param file formData file true "request" @Success 200 @Security ApiKeyAuth @Router /files/upload [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"上传文件 path","formatEN":"Upload file path"}

func (*BaseApi) WgetFile

func (b *BaseApi) WgetFile(c *gin.Context)

@Tags File @Summary Wget file @Description 下载远端文件 @Accept json @Param request body request.FileWget true "request" @Success 200 @Security ApiKeyAuth @Router /files/wget [post] @x-panel-log {"bodyKeys":["url","path","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载 url => path/[name]","formatEN":"Download url => path/[name]"}

func (*BaseApi) Ws

func (b *BaseApi) Ws(c *gin.Context)

func (*BaseApi) WsSsh

func (b *BaseApi) WsSsh(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL