Files
EdgeAPI/internal/installers/installer_interface.go

15 lines
319 B
Go
Raw Permalink Normal View History

2020-09-06 16:19:54 +08:00
package installers
import "github.com/TeaOSLab/EdgeAPI/internal/db/models"
2020-09-06 16:19:54 +08:00
type InstallerInterface interface {
// 登录SSH服务
Login(credentials *Credentials) error
// 安装
Install(dir string, params interface{}, installStatus *models.NodeInstallStatus) error
2020-09-06 16:19:54 +08:00
// 关闭连接的SSH服务
Close() error
}