mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-12 06:10:26 +08:00
增加节点停止、启动、安装测试等功能
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package installers
|
||||
|
||||
import "github.com/TeaOSLab/EdgeAPI/internal/db/models"
|
||||
|
||||
type InstallerInterface interface {
|
||||
// 登录SSH服务
|
||||
Login(credentials *Credentials) error
|
||||
|
||||
// 安装
|
||||
Install(dir string, params interface{}) error
|
||||
Install(dir string, params interface{}, installStatus *models.NodeInstallStatus) error
|
||||
|
||||
// 关闭连接的SSH服务
|
||||
Close() error
|
||||
|
||||
Reference in New Issue
Block a user