mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-05 04:55:23 +00:00
16 lines
396 B
Go
16 lines
396 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/samuelncui/tapemanager/entity"
|
|
)
|
|
|
|
func (e *Executor) startRestore(ctx context.Context, job *Job) error {
|
|
return e.Submit(ctx, job, &entity.JobNextParam{Param: &entity.JobNextParam_Restore{
|
|
Restore: &entity.JobRestoreNextParam{Param: &entity.JobRestoreNextParam_WaitForTape{
|
|
WaitForTape: &entity.JobRestoreWaitForTapeParam{},
|
|
}},
|
|
}})
|
|
}
|