plugins

package
v2.2.27 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fail2banController

type Fail2banController struct {
	// contains filtered or unexported fields
}

func NewFail2banController

func NewFail2banController() *Fail2banController

func (*Fail2banController) Add

Add 添加 Fail2ban 规则

func (*Fail2banController) BanList

func (r *Fail2banController) BanList(ctx http.Context) http.Response

BanList 获取封禁列表

func (*Fail2banController) Delete

func (r *Fail2banController) Delete(ctx http.Context) http.Response

Delete 删除规则

func (*Fail2banController) GetWhiteList

func (r *Fail2banController) GetWhiteList(ctx http.Context) http.Response

GetWhiteList 获取白名单

func (*Fail2banController) List

List 所有 Fail2ban 规则

func (*Fail2banController) SetWhiteList

func (r *Fail2banController) SetWhiteList(ctx http.Context) http.Response

SetWhiteList 设置白名单

func (*Fail2banController) Unban

Unban 解封

type FrpController

type FrpController struct {
}

func NewFrpController

func NewFrpController() *FrpController

func (*FrpController) GetConfig

func (r *FrpController) GetConfig(ctx http.Context) http.Response

GetConfig

@Summary		获取配置
@Description	获取 Frp 配置
@Tags			插件-Frp
@Produce		json
@Security		BearerToken
@Param			service	query		string	false	"服务"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/frp/config [get]

func (*FrpController) UpdateConfig

func (r *FrpController) UpdateConfig(ctx http.Context) http.Response

UpdateConfig

@Summary		更新配置
@Description	更新 Frp 配置
@Tags			插件-Frp
@Produce		json
@Security		BearerToken
@Param			data	body		requests.UpdateConfig	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/frp/config [post]

type GiteaController

type GiteaController struct {
}

func NewGiteaController

func NewGiteaController() *GiteaController

func (*GiteaController) GetConfig

func (r *GiteaController) GetConfig(ctx http.Context) http.Response

GetConfig

@Summary		获取配置
@Description	获取 Gitea 配置
@Tags			插件-Gitea
@Produce		json
@Security		BearerToken
@Success		200	{object}	controllers.SuccessResponse
@Router			/plugins/gitea/config [get]

func (*GiteaController) UpdateConfig

func (r *GiteaController) UpdateConfig(ctx http.Context) http.Response

UpdateConfig

@Summary		更新配置
@Description	更新 Gitea 配置
@Tags			插件-Gitea
@Produce		json
@Security		BearerToken
@Param			data	body		requests.UpdateConfig	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/gitea/config [post]

type MySQLController

type MySQLController struct {
	// contains filtered or unexported fields
}

func NewMySQLController

func NewMySQLController() *MySQLController

func (*MySQLController) AddDatabase

func (r *MySQLController) AddDatabase(ctx http.Context) http.Response

AddDatabase 添加数据库

func (*MySQLController) AddUser

func (r *MySQLController) AddUser(ctx http.Context) http.Response

AddUser 添加用户

func (*MySQLController) BackupList

func (r *MySQLController) BackupList(ctx http.Context) http.Response

BackupList 获取备份列表

func (*MySQLController) ClearErrorLog

func (r *MySQLController) ClearErrorLog(ctx http.Context) http.Response

ClearErrorLog 清空错误日志

func (*MySQLController) ClearSlowLog

func (r *MySQLController) ClearSlowLog(ctx http.Context) http.Response

ClearSlowLog 清空慢查询日志

func (*MySQLController) CreateBackup

func (r *MySQLController) CreateBackup(ctx http.Context) http.Response

CreateBackup 创建备份

func (*MySQLController) DatabaseList

func (r *MySQLController) DatabaseList(ctx http.Context) http.Response

DatabaseList 获取数据库列表

func (*MySQLController) DeleteBackup

func (r *MySQLController) DeleteBackup(ctx http.Context) http.Response

DeleteBackup 删除备份

func (*MySQLController) DeleteDatabase

func (r *MySQLController) DeleteDatabase(ctx http.Context) http.Response

DeleteDatabase 删除数据库

func (*MySQLController) DeleteUser

func (r *MySQLController) DeleteUser(ctx http.Context) http.Response

DeleteUser 删除用户

func (*MySQLController) ErrorLog

func (r *MySQLController) ErrorLog(ctx http.Context) http.Response

ErrorLog 获取错误日志

func (*MySQLController) GetConfig

func (r *MySQLController) GetConfig(ctx http.Context) http.Response

GetConfig 获取配置

func (*MySQLController) GetRootPassword

func (r *MySQLController) GetRootPassword(ctx http.Context) http.Response

GetRootPassword 获取root密码

func (*MySQLController) Load

func (r *MySQLController) Load(ctx http.Context) http.Response

Load 获取负载

func (*MySQLController) RestoreBackup

func (r *MySQLController) RestoreBackup(ctx http.Context) http.Response

RestoreBackup 还原备份

func (*MySQLController) SaveConfig

func (r *MySQLController) SaveConfig(ctx http.Context) http.Response

SaveConfig 保存配置

func (*MySQLController) SetRootPassword

func (r *MySQLController) SetRootPassword(ctx http.Context) http.Response

SetRootPassword 设置root密码

func (*MySQLController) SetUserPassword

func (r *MySQLController) SetUserPassword(ctx http.Context) http.Response

SetUserPassword 设置用户密码

func (*MySQLController) SetUserPrivileges

func (r *MySQLController) SetUserPrivileges(ctx http.Context) http.Response

SetUserPrivileges 设置用户权限

func (*MySQLController) SlowLog

func (r *MySQLController) SlowLog(ctx http.Context) http.Response

SlowLog 获取慢查询日志

func (*MySQLController) UploadBackup

func (r *MySQLController) UploadBackup(ctx http.Context) http.Response

UploadBackup 上传备份

func (*MySQLController) UserList

func (r *MySQLController) UserList(ctx http.Context) http.Response

UserList 用户列表

type OpenRestyController

type OpenRestyController struct {
}

func NewOpenrestyController

func NewOpenrestyController() *OpenRestyController

func (*OpenRestyController) ClearErrorLog

func (r *OpenRestyController) ClearErrorLog(ctx http.Context) http.Response

ClearErrorLog

@Summary	清空错误日志
@Tags		插件-OpenResty
@Produce	json
@Security	BearerToken
@Success	200	{object}	controllers.SuccessResponse
@Router		/plugins/openresty/clearErrorLog [post]

func (*OpenRestyController) ErrorLog

func (r *OpenRestyController) ErrorLog(ctx http.Context) http.Response

ErrorLog

@Summary	获取错误日志
@Tags		插件-OpenResty
@Produce	json
@Security	BearerToken
@Success	200	{object}	controllers.SuccessResponse
@Router		/plugins/openresty/errorLog [get]

func (*OpenRestyController) GetConfig

func (r *OpenRestyController) GetConfig(ctx http.Context) http.Response

GetConfig

@Summary	获取配置
@Tags		插件-OpenResty
@Produce	json
@Security	BearerToken
@Success	200	{object}	controllers.SuccessResponse
@Router		/plugins/openresty/config [get]

func (*OpenRestyController) Load

Load

@Summary	获取负载状态
@Tags		插件-OpenResty
@Produce	json
@Security	BearerToken
@Success	200	{object}	controllers.SuccessResponse
@Router		/plugins/openresty/load [get]

func (*OpenRestyController) SaveConfig

func (r *OpenRestyController) SaveConfig(ctx http.Context) http.Response

SaveConfig

@Summary	保存配置
@Tags		插件-OpenResty
@Produce	json
@Security	BearerToken
@Param		config	body		string	true	"配置"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/openresty/config [post]

type PHPController

type PHPController struct{}

func NewPHPController

func NewPHPController() *PHPController

func (*PHPController) ClearErrorLog

func (r *PHPController) ClearErrorLog(ctx http.Context) http.Response

ClearErrorLog

@Summary	清空错误日志
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/clearErrorLog [post]

func (*PHPController) ClearSlowLog

func (r *PHPController) ClearSlowLog(ctx http.Context) http.Response

ClearSlowLog

@Summary	清空慢日志
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/clearSlowLog [post]

func (*PHPController) ErrorLog

func (r *PHPController) ErrorLog(ctx http.Context) http.Response

ErrorLog

@Summary	获取错误日志
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/errorLog [get]

func (*PHPController) ExtensionList

func (r *PHPController) ExtensionList(ctx http.Context) http.Response

ExtensionList

@Summary	获取扩展列表
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/extensions [get]

func (*PHPController) GetConfig

func (r *PHPController) GetConfig(ctx http.Context) http.Response

GetConfig

@Summary	获取配置
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/config [get]

func (*PHPController) GetFPMConfig

func (r *PHPController) GetFPMConfig(ctx http.Context) http.Response

GetFPMConfig

@Summary	获取 FPM 配置
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/fpmConfig [get]

func (*PHPController) InstallExtension

func (r *PHPController) InstallExtension(ctx http.Context) http.Response

InstallExtension

@Summary	安装扩展
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int		true	"PHP 版本"
@Param		slug	query		string	true	"slug"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/extensions [post]

func (*PHPController) Load

func (r *PHPController) Load(ctx http.Context) http.Response

Load

@Summary	获取负载状态
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/load [get]

func (*PHPController) SaveConfig

func (r *PHPController) SaveConfig(ctx http.Context) http.Response

SaveConfig

@Summary	保存配置
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int		true	"PHP 版本"
@Param		config	body		string	true	"配置"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/config [post]

func (*PHPController) SaveFPMConfig

func (r *PHPController) SaveFPMConfig(ctx http.Context) http.Response

SaveFPMConfig

@Summary	保存 FPM 配置
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int		true	"PHP 版本"
@Param		config	body		string	true	"配置"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/fpmConfig [post]

func (*PHPController) SlowLog

func (r *PHPController) SlowLog(ctx http.Context) http.Response

SlowLog

@Summary	获取慢日志
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int	true	"PHP 版本"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/slowLog [get]

func (*PHPController) UninstallExtension

func (r *PHPController) UninstallExtension(ctx http.Context) http.Response

UninstallExtension

@Summary	卸载扩展
@Tags		插件-PHP
@Produce	json
@Security	BearerToken
@Param		version	path		int		true	"PHP 版本"
@Param		slug	query		string	true	"slug"
@Success	200		{object}	controllers.SuccessResponse
@Router		/plugins/php/{version}/extensions [delete]

type PhpMyAdminController

type PhpMyAdminController struct {
}

func NewPhpMyAdminController

func NewPhpMyAdminController() *PhpMyAdminController

func (*PhpMyAdminController) GetConfig

func (r *PhpMyAdminController) GetConfig(ctx http.Context) http.Response

func (*PhpMyAdminController) Info

func (*PhpMyAdminController) SaveConfig

func (r *PhpMyAdminController) SaveConfig(ctx http.Context) http.Response

func (*PhpMyAdminController) SetPort

func (r *PhpMyAdminController) SetPort(ctx http.Context) http.Response

type PodmanController

type PodmanController struct {
}

func NewPodmanController

func NewPodmanController() *PodmanController

func (*PodmanController) GetRegistryConfig

func (r *PodmanController) GetRegistryConfig(ctx http.Context) http.Response

GetRegistryConfig

@Summary		获取注册表配置
@Description	获取 Podman 注册表配置
@Tags			插件-Podman
@Produce		json
@Security		BearerToken
@Success		200	{object}	controllers.SuccessResponse
@Router			/plugins/podman/registryConfig [get]

func (*PodmanController) GetStorageConfig

func (r *PodmanController) GetStorageConfig(ctx http.Context) http.Response

GetStorageConfig

@Summary		获取存储配置
@Description	获取 Podman 存储配置
@Tags			插件-Podman
@Produce		json
@Security		BearerToken
@Success		200	{object}	controllers.SuccessResponse
@Router			/plugins/podman/storageConfig [get]

func (*PodmanController) UpdateRegistryConfig

func (r *PodmanController) UpdateRegistryConfig(ctx http.Context) http.Response

UpdateRegistryConfig

@Summary		更新注册表配置
@Description	更新 Podman 注册表配置
@Tags			插件-Podman
@Produce		json
@Security		BearerToken
@Param			data	body		requests.UpdateRegistryConfig	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/podman/registryConfig [post]

func (*PodmanController) UpdateStorageConfig

func (r *PodmanController) UpdateStorageConfig(ctx http.Context) http.Response

UpdateStorageConfig

@Summary		更新存储配置
@Description	更新 Podman 存储配置
@Tags			插件-Podman
@Produce		json
@Security		BearerToken
@Param			data	body		requests.UpdateStorageConfig	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/podman/storageConfig [post]

type PostgreSQLController

type PostgreSQLController struct {
	// contains filtered or unexported fields
}

func NewPostgreSQLController

func NewPostgreSQLController() *PostgreSQLController

func (*PostgreSQLController) AddDatabase

func (r *PostgreSQLController) AddDatabase(ctx http.Context) http.Response

AddDatabase 添加数据库

func (*PostgreSQLController) AddRole

func (r *PostgreSQLController) AddRole(ctx http.Context) http.Response

AddRole 添加角色

func (*PostgreSQLController) BackupList

func (r *PostgreSQLController) BackupList(ctx http.Context) http.Response

BackupList 获取备份列表

func (*PostgreSQLController) ClearLog

func (r *PostgreSQLController) ClearLog(ctx http.Context) http.Response

ClearLog 清空日志

func (*PostgreSQLController) CreateBackup

func (r *PostgreSQLController) CreateBackup(ctx http.Context) http.Response

CreateBackup 创建备份

func (*PostgreSQLController) DatabaseList

func (r *PostgreSQLController) DatabaseList(ctx http.Context) http.Response

DatabaseList 获取数据库列表

func (*PostgreSQLController) DeleteBackup

func (r *PostgreSQLController) DeleteBackup(ctx http.Context) http.Response

DeleteBackup 删除备份

func (*PostgreSQLController) DeleteDatabase

func (r *PostgreSQLController) DeleteDatabase(ctx http.Context) http.Response

DeleteDatabase 删除数据库

func (*PostgreSQLController) DeleteRole

func (r *PostgreSQLController) DeleteRole(ctx http.Context) http.Response

DeleteRole 删除角色

func (*PostgreSQLController) GetConfig

func (r *PostgreSQLController) GetConfig(ctx http.Context) http.Response

GetConfig 获取配置

func (*PostgreSQLController) GetUserConfig

func (r *PostgreSQLController) GetUserConfig(ctx http.Context) http.Response

GetUserConfig 获取用户配置

func (*PostgreSQLController) Load

Load 获取负载

func (*PostgreSQLController) Log

Log 获取日志

func (*PostgreSQLController) RestoreBackup

func (r *PostgreSQLController) RestoreBackup(ctx http.Context) http.Response

RestoreBackup 还原备份

func (*PostgreSQLController) RoleList

func (r *PostgreSQLController) RoleList(ctx http.Context) http.Response

RoleList 角色列表

func (*PostgreSQLController) SaveConfig

func (r *PostgreSQLController) SaveConfig(ctx http.Context) http.Response

SaveConfig 保存配置

func (*PostgreSQLController) SaveUserConfig

func (r *PostgreSQLController) SaveUserConfig(ctx http.Context) http.Response

SaveUserConfig 保存用户配置

func (*PostgreSQLController) SetRolePassword

func (r *PostgreSQLController) SetRolePassword(ctx http.Context) http.Response

SetRolePassword 设置用户密码

func (*PostgreSQLController) UploadBackup

func (r *PostgreSQLController) UploadBackup(ctx http.Context) http.Response

UploadBackup 上传备份

type PureFtpdController

type PureFtpdController struct {
}

func NewPureFtpdController

func NewPureFtpdController() *PureFtpdController

func (*PureFtpdController) Add

Add 添加用户

func (*PureFtpdController) ChangePassword

func (r *PureFtpdController) ChangePassword(ctx http.Context) http.Response

ChangePassword 修改密码

func (*PureFtpdController) Delete

func (r *PureFtpdController) Delete(ctx http.Context) http.Response

Delete 删除用户

func (*PureFtpdController) GetPort

func (r *PureFtpdController) GetPort(ctx http.Context) http.Response

GetPort 获取端口

func (*PureFtpdController) List

List 获取用户列表

func (*PureFtpdController) SetPort

func (r *PureFtpdController) SetPort(ctx http.Context) http.Response

SetPort 设置端口

type RedisController

type RedisController struct {
}

func NewRedisController

func NewRedisController() *RedisController

func (*RedisController) GetConfig

func (r *RedisController) GetConfig(ctx http.Context) http.Response

GetConfig 获取配置

func (*RedisController) Load

func (r *RedisController) Load(ctx http.Context) http.Response

Load 获取负载

func (*RedisController) SaveConfig

func (r *RedisController) SaveConfig(ctx http.Context) http.Response

SaveConfig 保存配置

type RsyncController

type RsyncController struct {
}

func NewRsyncController

func NewRsyncController() *RsyncController

func (*RsyncController) Create

func (r *RsyncController) Create(ctx http.Context) http.Response

Create

@Summary		添加模块
@Description	添加 Rsync 模块
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Param			data	body		requests.Create	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/rsync/modules [post]

func (*RsyncController) Destroy

func (r *RsyncController) Destroy(ctx http.Context) http.Response

Destroy

@Summary		删除模块
@Description	删除 Rsync 模块
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Param			name	path		string	true	"模块名称"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/rsync/modules/{name} [delete]

func (*RsyncController) GetConfig

func (r *RsyncController) GetConfig(ctx http.Context) http.Response

GetConfig

@Summary		获取配置
@Description	获取 Rsync 配置
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Success		200	{object}	controllers.SuccessResponse
@Router			/plugins/rsync/config [get]

func (*RsyncController) List

func (r *RsyncController) List(ctx http.Context) http.Response

List

@Summary		列出模块
@Description	列出所有 Rsync 模块
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Param			data	query		commonrequests.Paginate	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/rsync/modules [get]

func (*RsyncController) Update

func (r *RsyncController) Update(ctx http.Context) http.Response

Update

@Summary		更新模块
@Description	更新 Rsync 模块
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Param			name	path		string			true	"模块名称"
@Param			data	body		requests.Update	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/rsync/modules/{name} [post]

func (*RsyncController) UpdateConfig

func (r *RsyncController) UpdateConfig(ctx http.Context) http.Response

UpdateConfig

@Summary		更新配置
@Description	更新 Rsync 配置
@Tags			插件-Rsync
@Produce		json
@Security		BearerToken
@Param			data	body		requests.UpdateConfig	true	"request"
@Success		200		{object}	controllers.SuccessResponse
@Router			/plugins/rsync/config [post]

type S3fsController

type S3fsController struct {
	// contains filtered or unexported fields
}

func NewS3fsController

func NewS3fsController() *S3fsController

func (*S3fsController) Add

func (r *S3fsController) Add(ctx http.Context) http.Response

Add 添加 S3fs 挂载

func (*S3fsController) Delete

func (r *S3fsController) Delete(ctx http.Context) http.Response

Delete 删除 S3fs 挂载

func (*S3fsController) List

func (r *S3fsController) List(ctx http.Context) http.Response

List 所有 S3fs 挂载

type SupervisorController

type SupervisorController struct {
	// contains filtered or unexported fields
}

func NewSupervisorController

func NewSupervisorController() *SupervisorController

func (*SupervisorController) AddProcess

func (r *SupervisorController) AddProcess(ctx http.Context) http.Response

AddProcess 添加进程

func (*SupervisorController) ClearLog

func (r *SupervisorController) ClearLog(ctx http.Context) http.Response

ClearLog 清空日志

func (*SupervisorController) ClearProcessLog

func (r *SupervisorController) ClearProcessLog(ctx http.Context) http.Response

ClearProcessLog 清空进程日志

func (*SupervisorController) Config

Config 获取配置

func (*SupervisorController) DeleteProcess

func (r *SupervisorController) DeleteProcess(ctx http.Context) http.Response

DeleteProcess 删除进程

func (*SupervisorController) Log

Log 日志

func (*SupervisorController) ProcessConfig

func (r *SupervisorController) ProcessConfig(ctx http.Context) http.Response

ProcessConfig 获取进程配置

func (*SupervisorController) ProcessLog

func (r *SupervisorController) ProcessLog(ctx http.Context) http.Response

ProcessLog 进程日志

func (*SupervisorController) Processes

func (r *SupervisorController) Processes(ctx http.Context) http.Response

Processes 进程列表

func (*SupervisorController) RestartProcess

func (r *SupervisorController) RestartProcess(ctx http.Context) http.Response

RestartProcess 重启进程

func (*SupervisorController) SaveConfig

func (r *SupervisorController) SaveConfig(ctx http.Context) http.Response

SaveConfig 保存配置

func (*SupervisorController) SaveProcessConfig

func (r *SupervisorController) SaveProcessConfig(ctx http.Context) http.Response

SaveProcessConfig 保存进程配置

func (*SupervisorController) Service

func (r *SupervisorController) Service(ctx http.Context) http.Response

Service 获取服务名称

func (*SupervisorController) StartProcess

func (r *SupervisorController) StartProcess(ctx http.Context) http.Response

StartProcess 启动进程

func (*SupervisorController) StopProcess

func (r *SupervisorController) StopProcess(ctx http.Context) http.Response

StopProcess 停止进程

type ToolBoxController

type ToolBoxController struct {
}

func NewToolBoxController

func NewToolBoxController() *ToolBoxController

func (*ToolBoxController) GetDNS

func (r *ToolBoxController) GetDNS(ctx http.Context) http.Response

GetDNS 获取 DNS 信息

func (*ToolBoxController) GetHosts

func (r *ToolBoxController) GetHosts(ctx http.Context) http.Response

GetHosts 获取 hosts 信息

func (*ToolBoxController) GetSWAP

func (r *ToolBoxController) GetSWAP(ctx http.Context) http.Response

GetSWAP 获取 SWAP 信息

func (*ToolBoxController) GetTimezone

func (r *ToolBoxController) GetTimezone(ctx http.Context) http.Response

GetTimezone 获取时区

func (*ToolBoxController) SetDNS

func (r *ToolBoxController) SetDNS(ctx http.Context) http.Response

SetDNS 设置 DNS 信息

func (*ToolBoxController) SetHosts

func (r *ToolBoxController) SetHosts(ctx http.Context) http.Response

SetHosts 设置 hosts 信息

func (*ToolBoxController) SetRootPassword

func (r *ToolBoxController) SetRootPassword(ctx http.Context) http.Response

SetRootPassword 设置 root 密码

func (*ToolBoxController) SetSWAP

func (r *ToolBoxController) SetSWAP(ctx http.Context) http.Response

SetSWAP 设置 SWAP 信息

func (*ToolBoxController) SetTimezone

func (r *ToolBoxController) SetTimezone(ctx http.Context) http.Response

SetTimezone 设置时区

Jump to

Keyboard shortcuts

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