Rainbond/api/handler/app_restore_handler.go

23 lines
891 B
Go
Raw Normal View History

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{}
}