2020-03-11 01:57:52 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/specs-storage/storage"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
|
|
"github.com/filecoin-project/lotus/storage/sealmgr"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WorkerApi interface {
|
|
|
|
Version(context.Context) (build.Version, error)
|
|
|
|
// TODO: Info() (name, ...) ?
|
|
|
|
|
|
|
|
TaskTypes(context.Context) (map[sealmgr.TaskType]struct{}, error) // TaskType -> Weight
|
2020-03-11 05:49:17 +00:00
|
|
|
Paths(context.Context) ([]StoragePath, error)
|
2020-03-11 01:57:52 +00:00
|
|
|
|
|
|
|
storage.Sealer
|
|
|
|
}
|