增加节点停止、启动、安装测试等功能

This commit is contained in:
GoEdgeLab
2020-10-27 12:33:22 +08:00
parent 8444e9b312
commit c13b8b99c5
6 changed files with 284 additions and 10 deletions

View File

@@ -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