mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 05:07:38 +08:00
23 lines
891 B
Go
23 lines
891 B
Go
package handler
|
|
|
|
import (
|
|
apimodel "github.com/goodrain/rainbond/api/model"
|
|
)
|
|
|
|
// AppRestoreHandler defines handler methods to restore app.
|
|
// app means market service.
|
|
type AppRestoreHandler interface {
|
|
RestoreEnvs(tenantID, serviceID string, req *apimodel.RestoreEnvsReq) error
|
|
RestorePorts(tenantID, serviceID string, req *apimodel.RestorePortsReq) error
|
|
RestoreVolumes(tenantID, serviceID string, req *apimodel.RestoreVolumesReq) error
|
|
RestoreProbe(serviceID string, req *apimodel.ServiceProbe) error
|
|
RestoreDeps(tenantID, serviceID string, req *apimodel.RestoreDepsReq) error
|
|
RestoreDepVols(tenantID, serviceID string, req *apimodel.RestoreDepVolsReq) error
|
|
RestorePlugins(tenantID, serviceID string, req *apimodel.RestorePluginsReq) error
|
|
}
|
|
|
|
// NewAppRestoreHandler creates a new AppRestoreHandler.
|
|
func NewAppRestoreHandler() AppRestoreHandler {
|
|
return &AppRestoreAction{}
|
|
}
|