feat: 安装包上传到网元主机执行安装命令

This commit is contained in:
TsMask
2024-04-11 17:07:23 +08:00
parent 513a5bb5fe
commit 5970a8b5f2
3 changed files with 185 additions and 42 deletions

View File

@@ -25,7 +25,8 @@ type INeSoftware interface {
// CheckUniqueTypeAndNameAndVersion 校验网元类型和文件名版本是否唯一
CheckUniqueTypeAndNameAndVersion(neType, name, version, id string) bool
// UploadToNeHost 安装包上传到网元主机
// 返回执行命令步骤
UploadToNeHost(neSoftware model.NeSoftware) ([]string, error)
// InstallToNeHost 安装包上传到网元主机执行安装命令
//
// action 安装行为install upgrade
InstallToNeHost(action string, neSoftware model.NeSoftware, preinput map[string]string) (string, error)
}