d6615b6286
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
28 lines
804 B
Go
28 lines
804 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/filecoin-project/sector-storage/sealtasks"
|
|
"github.com/filecoin-project/sector-storage/stores"
|
|
"github.com/filecoin-project/sector-storage/storiface"
|
|
"github.com/filecoin-project/specs-actors/actors/abi"
|
|
"github.com/filecoin-project/specs-storage/storage"
|
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
)
|
|
|
|
type WorkerAPI interface {
|
|
Version(context.Context) (build.Version, error)
|
|
// TODO: Info() (name, ...) ?
|
|
|
|
TaskTypes(context.Context) (map[sealtasks.TaskType]struct{}, error) // TaskType -> Weight
|
|
Paths(context.Context) ([]stores.StoragePath, error)
|
|
Info(context.Context) (storiface.WorkerInfo, error)
|
|
|
|
storage.Sealer
|
|
Fetch(context.Context, abi.SectorID, stores.SectorFileType, bool) error
|
|
|
|
Closing(context.Context) (<-chan struct{}, error)
|
|
}
|