22 lines
517 B
Go
22 lines
517 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
"github.com/filecoin-project/lotus/storage/sealmgr/stores"
|
|
|
|
"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
|
|
Paths(context.Context) ([]stores.StoragePath, error)
|
|
|
|
storage.Sealer
|
|
}
|