-
Notifications
You must be signed in to change notification settings - Fork 0
/
sms_gateway_maintainer.go
27 lines (20 loc) · 1.1 KB
/
sms_gateway_maintainer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package maintainer
import (
"github.com/maoge/paas-metasvr-go/pkg/consts"
SmsDeployUtils "github.com/maoge/paas-metasvr-go/pkg/deployutils/sms"
"github.com/maoge/paas-metasvr-go/pkg/result"
)
type SmsGatewayMaintainer struct {
}
func (h *SmsGatewayMaintainer) MaintainInstance(servInstID, instID, servType string, op *consts.OperationExt, isHandle bool,
logKey, magicKey string, paasResult *result.ResultBean) bool {
return SmsDeployUtils.MaintainInstance(servInstID, instID, servType, op, isHandle, logKey, magicKey, paasResult)
}
func (h *SmsGatewayMaintainer) UpdateInstanceForBatch(servInstID, instID, servType string, loadDeployFile, rmDeployFile, isHandle bool,
logKey, magicKey string, paasResult *result.ResultBean) bool {
return SmsDeployUtils.UpdateInstanceForBatch(servInstID, instID, servType, loadDeployFile, rmDeployFile,
isHandle, logKey, magicKey, paasResult)
}
func (h *SmsGatewayMaintainer) CheckInstanceStatus(servInstID, instID, servType, magicKey string, paasResult *result.ResultBean) bool {
return SmsDeployUtils.CheckInstanceStatus(servInstID, instID, servType, magicKey, paasResult)
}