2020-03-11 01:57:52 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-03-13 11:59:19 +00:00
|
|
|
"github.com/filecoin-project/lotus/storage/sealmgr/stores"
|
2020-03-11 01:57:52 +00:00
|
|
|
|
|
|
|
"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-13 11:59:19 +00:00
|
|
|
Paths(context.Context) ([]stores.StoragePath, error)
|
2020-03-11 01:57:52 +00:00
|
|
|
|
|
|
|
storage.Sealer
|
|
|
|
}
|