feat: lotus-provider: storage find command

This commit is contained in:
Łukasz Magiera 2024-02-24 11:11:57 +01:00
parent b691adc487
commit a0fb6eccf3
8 changed files with 678 additions and 506 deletions

View File

@ -6,6 +6,7 @@ import (
"net/url" "net/url"
"github.com/filecoin-project/go-address" "github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/storage/sealer/fsutil" "github.com/filecoin-project/lotus/storage/sealer/fsutil"
"github.com/filecoin-project/lotus/storage/sealer/storiface" "github.com/filecoin-project/lotus/storage/sealer/storiface"
@ -16,12 +17,13 @@ type LotusProvider interface {
AllocatePieceToSector(ctx context.Context, maddr address.Address, piece PieceDealInfo, rawSize int64, source url.URL, header http.Header) (SectorOffset, error) //perm:write AllocatePieceToSector(ctx context.Context, maddr address.Address, piece PieceDealInfo, rawSize int64, source url.URL, header http.Header) (SectorOffset, error) //perm:write
StorageAddLocal(ctx context.Context, path string) error //perm:admin StorageAddLocal(ctx context.Context, path string) error //perm:admin
StorageDetachLocal(ctx context.Context, path string) error //perm:admin StorageDetachLocal(ctx context.Context, path string) error //perm:admin
StorageList(ctx context.Context) (map[storiface.ID][]storiface.Decl, error) //perm:admin StorageList(ctx context.Context) (map[storiface.ID][]storiface.Decl, error) //perm:admin
StorageLocal(ctx context.Context) (map[storiface.ID]string, error) //perm:admin StorageLocal(ctx context.Context) (map[storiface.ID]string, error) //perm:admin
StorageStat(ctx context.Context, id storiface.ID) (fsutil.FsStat, error) //perm:admin StorageStat(ctx context.Context, id storiface.ID) (fsutil.FsStat, error) //perm:admin
StorageInfo(context.Context, storiface.ID) (storiface.StorageInfo, error) //perm:admin StorageInfo(context.Context, storiface.ID) (storiface.StorageInfo, error) //perm:admin
StorageFindSector(ctx context.Context, sector abi.SectorID, ft storiface.SectorFileType, ssize abi.SectorSize, allowFetch bool) ([]storiface.SectorStorageInfo, error) //perm:admin
// Trigger shutdown // Trigger shutdown
Shutdown(context.Context) error //perm:admin Shutdown(context.Context) error //perm:admin

View File

@ -842,6 +842,8 @@ type LotusProviderMethods struct {
StorageDetachLocal func(p0 context.Context, p1 string) error `perm:"admin"` StorageDetachLocal func(p0 context.Context, p1 string) error `perm:"admin"`
StorageFindSector func(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) `perm:"admin"`
StorageInfo func(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) `perm:"admin"` StorageInfo func(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) `perm:"admin"`
StorageList func(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) `perm:"admin"` StorageList func(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) `perm:"admin"`
@ -5261,6 +5263,17 @@ func (s *LotusProviderStub) StorageDetachLocal(p0 context.Context, p1 string) er
return ErrNotSupported return ErrNotSupported
} }
func (s *LotusProviderStruct) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) {
if s.Internal.StorageFindSector == nil {
return *new([]storiface.SectorStorageInfo), ErrNotSupported
}
return s.Internal.StorageFindSector(p0, p1, p2, p3, p4)
}
func (s *LotusProviderStub) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) {
return *new([]storiface.SectorStorageInfo), ErrNotSupported
}
func (s *LotusProviderStruct) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) { func (s *LotusProviderStruct) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) {
if s.Internal.StorageInfo == nil { if s.Internal.StorageInfo == nil {
return *new(storiface.StorageInfo), ErrNotSupported return *new(storiface.StorageInfo), ErrNotSupported

File diff suppressed because it is too large Load Diff

View File

@ -242,7 +242,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4186" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4188"
} }
}, },
{ {
@ -473,7 +473,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4197" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4199"
} }
}, },
{ {
@ -505,7 +505,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4208" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4210"
} }
}, },
{ {
@ -611,7 +611,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4219" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4221"
} }
}, },
{ {
@ -704,7 +704,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4230" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4232"
} }
}, },
{ {
@ -788,7 +788,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4241" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4243"
} }
}, },
{ {
@ -888,7 +888,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4252" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4254"
} }
}, },
{ {
@ -944,7 +944,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4263" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4265"
} }
}, },
{ {
@ -1017,7 +1017,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4274" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4276"
} }
}, },
{ {
@ -1090,7 +1090,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4285" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4287"
} }
}, },
{ {
@ -1137,7 +1137,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4296" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4298"
} }
}, },
{ {
@ -1169,7 +1169,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4307" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4309"
} }
}, },
{ {
@ -1206,7 +1206,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4329" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4331"
} }
}, },
{ {
@ -1253,7 +1253,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4340" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4342"
} }
}, },
{ {
@ -1293,7 +1293,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4351" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4353"
} }
}, },
{ {
@ -1340,7 +1340,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4362" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4364"
} }
}, },
{ {
@ -1369,7 +1369,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4373" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4375"
} }
}, },
{ {
@ -1506,7 +1506,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4384" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4386"
} }
}, },
{ {
@ -1535,7 +1535,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4395" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4397"
} }
}, },
{ {
@ -1589,7 +1589,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4406" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4408"
} }
}, },
{ {
@ -1680,7 +1680,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4417" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4419"
} }
}, },
{ {
@ -1708,7 +1708,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4428" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4430"
} }
}, },
{ {
@ -1798,7 +1798,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4439" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4441"
} }
}, },
{ {
@ -2054,7 +2054,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4450" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4452"
} }
}, },
{ {
@ -2299,7 +2299,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4461" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4463"
} }
}, },
{ {
@ -2355,7 +2355,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4472" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4474"
} }
}, },
{ {
@ -2402,7 +2402,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4483" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4485"
} }
}, },
{ {
@ -2500,7 +2500,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4494" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4496"
} }
}, },
{ {
@ -2566,7 +2566,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4505" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4507"
} }
}, },
{ {
@ -2632,7 +2632,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4516" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4518"
} }
}, },
{ {
@ -2741,7 +2741,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4527" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4529"
} }
}, },
{ {
@ -2799,7 +2799,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4538" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4540"
} }
}, },
{ {
@ -2921,7 +2921,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4549" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4551"
} }
}, },
{ {
@ -3108,7 +3108,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4560" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4562"
} }
}, },
{ {
@ -3312,7 +3312,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4571" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4573"
} }
}, },
{ {
@ -3403,7 +3403,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4582" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4584"
} }
}, },
{ {
@ -3461,7 +3461,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4593" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4595"
} }
}, },
{ {
@ -3719,7 +3719,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4604" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4606"
} }
}, },
{ {
@ -3994,7 +3994,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4615" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4617"
} }
}, },
{ {
@ -4022,7 +4022,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4626" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4628"
} }
}, },
{ {
@ -4060,7 +4060,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4637" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4639"
} }
}, },
{ {
@ -4168,7 +4168,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4648" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4650"
} }
}, },
{ {
@ -4206,7 +4206,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4659" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4661"
} }
}, },
{ {
@ -4235,7 +4235,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4670" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4672"
} }
}, },
{ {
@ -4298,7 +4298,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4681" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4683"
} }
}, },
{ {
@ -4361,7 +4361,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4692" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4694"
} }
}, },
{ {
@ -4406,7 +4406,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4703" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4705"
} }
}, },
{ {
@ -4528,7 +4528,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4714" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4716"
} }
}, },
{ {
@ -4683,7 +4683,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4725" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4727"
} }
}, },
{ {
@ -4737,7 +4737,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4736" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4738"
} }
}, },
{ {
@ -4791,7 +4791,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4747" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4749"
} }
}, },
{ {
@ -4893,7 +4893,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4758" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4760"
} }
}, },
{ {
@ -5116,7 +5116,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4769" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4771"
} }
}, },
{ {
@ -5310,7 +5310,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4780" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4782"
} }
}, },
{ {
@ -5356,7 +5356,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4791" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4793"
} }
}, },
{ {
@ -5506,7 +5506,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4802" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4804"
} }
}, },
{ {
@ -5643,7 +5643,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4813" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4815"
} }
}, },
{ {
@ -5711,7 +5711,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4824" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4826"
} }
}, },
{ {
@ -5828,7 +5828,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4835" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4837"
} }
}, },
{ {
@ -5919,7 +5919,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4846" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4848"
} }
}, },
{ {
@ -6005,7 +6005,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4857" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4859"
} }
}, },
{ {
@ -6032,7 +6032,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4868" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4870"
} }
}, },
{ {
@ -6059,7 +6059,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4879" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4881"
} }
}, },
{ {
@ -6127,7 +6127,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4890" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4892"
} }
}, },
{ {
@ -6633,7 +6633,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4901" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4903"
} }
}, },
{ {
@ -6730,7 +6730,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4912" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4914"
} }
}, },
{ {
@ -6830,7 +6830,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4923" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4925"
} }
}, },
{ {
@ -6930,7 +6930,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4934" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4936"
} }
}, },
{ {
@ -7055,7 +7055,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4945" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4947"
} }
}, },
{ {
@ -7164,7 +7164,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4956" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4958"
} }
}, },
{ {
@ -7267,7 +7267,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4967" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4969"
} }
}, },
{ {
@ -7397,7 +7397,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4978" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4980"
} }
}, },
{ {
@ -7504,7 +7504,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4989" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L4991"
} }
}, },
{ {
@ -7565,7 +7565,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5000" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5002"
} }
}, },
{ {
@ -7633,7 +7633,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5011" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5013"
} }
}, },
{ {
@ -7714,7 +7714,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5022" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5024"
} }
}, },
{ {
@ -7878,7 +7878,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5033" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5035"
} }
}, },
{ {
@ -8079,7 +8079,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5044" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5046"
} }
}, },
{ {
@ -8190,7 +8190,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5055" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5057"
} }
}, },
{ {
@ -8321,7 +8321,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5066" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5068"
} }
}, },
{ {
@ -8407,7 +8407,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5077" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5079"
} }
}, },
{ {
@ -8434,7 +8434,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5088" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5090"
} }
}, },
{ {
@ -8487,7 +8487,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5099" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5101"
} }
}, },
{ {
@ -8575,7 +8575,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5110" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5112"
} }
}, },
{ {
@ -9026,7 +9026,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5121" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5123"
} }
}, },
{ {
@ -9193,7 +9193,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5132" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5134"
} }
}, },
{ {
@ -9366,7 +9366,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5143" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5145"
} }
}, },
{ {
@ -9434,7 +9434,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5154" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5156"
} }
}, },
{ {
@ -9502,7 +9502,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5165" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5167"
} }
}, },
{ {
@ -9663,7 +9663,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5176" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5178"
} }
}, },
{ {
@ -9708,7 +9708,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5187" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5189"
} }
}, },
{ {
@ -9753,7 +9753,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5198" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5200"
} }
}, },
{ {
@ -9780,7 +9780,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5209" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L5211"
} }
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@ -161,7 +161,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7134" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7147"
} }
}, },
{ {
@ -252,7 +252,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7145" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7158"
} }
}, },
{ {
@ -420,7 +420,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7156" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7169"
} }
}, },
{ {
@ -447,7 +447,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7167" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7180"
} }
}, },
{ {
@ -597,7 +597,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7178" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7191"
} }
}, },
{ {
@ -700,7 +700,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7189" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7202"
} }
}, },
{ {
@ -803,7 +803,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7200" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7213"
} }
}, },
{ {
@ -925,7 +925,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7211" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7224"
} }
}, },
{ {
@ -1135,7 +1135,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7222" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7235"
} }
}, },
{ {
@ -1306,7 +1306,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7233" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7246"
} }
}, },
{ {
@ -3350,7 +3350,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7244" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7257"
} }
}, },
{ {
@ -3470,7 +3470,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7255" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7268"
} }
}, },
{ {
@ -3531,7 +3531,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7266" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7279"
} }
}, },
{ {
@ -3569,7 +3569,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7277" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7290"
} }
}, },
{ {
@ -3729,7 +3729,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7288" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7301"
} }
}, },
{ {
@ -3913,7 +3913,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7299" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7312"
} }
}, },
{ {
@ -4054,7 +4054,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7310" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7323"
} }
}, },
{ {
@ -4107,7 +4107,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7321" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7334"
} }
}, },
{ {
@ -4250,7 +4250,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7332" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7345"
} }
}, },
{ {
@ -4474,7 +4474,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7343" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7356"
} }
}, },
{ {
@ -4601,7 +4601,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7354" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7367"
} }
}, },
{ {
@ -4768,7 +4768,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7365" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7378"
} }
}, },
{ {
@ -4895,7 +4895,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7376" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7389"
} }
}, },
{ {
@ -4933,7 +4933,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7387" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7400"
} }
}, },
{ {
@ -4972,7 +4972,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7398" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7411"
} }
}, },
{ {
@ -4995,7 +4995,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7409" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7422"
} }
}, },
{ {
@ -5034,7 +5034,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7420" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7433"
} }
}, },
{ {
@ -5057,7 +5057,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7431" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7444"
} }
}, },
{ {
@ -5096,7 +5096,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7442" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7455"
} }
}, },
{ {
@ -5130,7 +5130,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7453" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7466"
} }
}, },
{ {
@ -5184,7 +5184,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7464" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7477"
} }
}, },
{ {
@ -5223,7 +5223,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7475" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7488"
} }
}, },
{ {
@ -5262,7 +5262,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7486" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7499"
} }
}, },
{ {
@ -5297,7 +5297,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7497" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7510"
} }
}, },
{ {
@ -5477,7 +5477,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7508" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7521"
} }
}, },
{ {
@ -5506,7 +5506,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7519" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7532"
} }
}, },
{ {
@ -5529,7 +5529,7 @@
"deprecated": false, "deprecated": false,
"externalDocs": { "externalDocs": {
"description": "Github remote link", "description": "Github remote link",
"url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7530" "url": "https://github.com/filecoin-project/lotus/blob/master/api/proxy_gen.go#L7543"
} }
} }
] ]

View File

@ -7,6 +7,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"sort" "sort"
"strconv"
"strings" "strings"
"time" "time"
@ -17,6 +18,9 @@ import (
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"golang.org/x/xerrors" "golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/chain/types"
lcli "github.com/filecoin-project/lotus/cli" lcli "github.com/filecoin-project/lotus/cli"
"github.com/filecoin-project/lotus/cmd/lotus-provider/rpc" "github.com/filecoin-project/lotus/cmd/lotus-provider/rpc"
@ -37,9 +41,9 @@ stored while moving through the sealing pipeline (references as 'seal').`,
storageAttachCmd, storageAttachCmd,
storageDetachCmd, storageDetachCmd,
storageListCmd, storageListCmd,
storageFindCmd,
/*storageDetachCmd, /*storageDetachCmd,
storageRedeclareCmd, storageRedeclareCmd,
storageFindCmd,
storageCleanupCmd, storageCleanupCmd,
storageLocks,*/ storageLocks,*/
}, },
@ -396,3 +400,112 @@ var storageListCmd = &cli.Command{
return nil return nil
}, },
} }
type storedSector struct {
id storiface.ID
store storiface.SectorStorageInfo
types map[storiface.SectorFileType]bool
}
var storageFindCmd = &cli.Command{
Name: "find",
Usage: "find sector in the storage system",
ArgsUsage: "[miner address] [sector number]",
Action: func(cctx *cli.Context) error {
minerApi, closer, err := rpc.GetProviderAPI(cctx)
if err != nil {
return err
}
defer closer()
ctx := lcli.ReqContext(cctx)
if cctx.NArg() != 2 {
return lcli.IncorrectNumArgs(cctx)
}
maddr := cctx.Args().First()
ma, err := address.NewFromString(maddr)
if err != nil {
return xerrors.Errorf("parsing miner address: %w", err)
}
mid, err := address.IDFromAddress(ma)
if err != nil {
return err
}
if !cctx.Args().Present() {
return xerrors.New("Usage: lotus-miner storage find [sector number]")
}
snum, err := strconv.ParseUint(cctx.Args().Get(1), 10, 64)
if err != nil {
return err
}
sid := abi.SectorID{
Miner: abi.ActorID(mid),
Number: abi.SectorNumber(snum),
}
sectorTypes := []storiface.SectorFileType{
storiface.FTUnsealed, storiface.FTSealed, storiface.FTCache, storiface.FTUpdate, storiface.FTUpdateCache,
}
byId := make(map[storiface.ID]*storedSector)
for _, sectorType := range sectorTypes {
infos, err := minerApi.StorageFindSector(ctx, sid, sectorType, 0, false)
if err != nil {
return xerrors.Errorf("finding sector type %d: %w", sectorType, err)
}
for _, info := range infos {
sts, ok := byId[info.ID]
if !ok {
sts = &storedSector{
id: info.ID,
store: info,
types: make(map[storiface.SectorFileType]bool),
}
byId[info.ID] = sts
}
sts.types[sectorType] = true
}
}
local, err := minerApi.StorageLocal(ctx)
if err != nil {
return err
}
var out []*storedSector
for _, sector := range byId {
out = append(out, sector)
}
sort.Slice(out, func(i, j int) bool {
return out[i].id < out[j].id
})
for _, info := range out {
var types []string
for sectorType, present := range info.types {
if present {
types = append(types, sectorType.String())
}
}
sort.Strings(types) // Optional: Sort types for consistent output
fmt.Printf("In %s (%s)\n", info.id, strings.Join(types, ", "))
fmt.Printf("\tSealing: %t; Storage: %t\n", info.store.CanSeal, info.store.CanStore)
if localPath, ok := local[info.id]; ok {
fmt.Printf("\tLocal (%s)\n", localPath)
} else {
fmt.Printf("\tRemote\n")
}
for _, l := range info.store.URLs {
fmt.Printf("\tURL: %s\n", l)
}
}
return nil
},
}

View File

@ -7,6 +7,7 @@
* [Storage](#Storage) * [Storage](#Storage)
* [StorageAddLocal](#StorageAddLocal) * [StorageAddLocal](#StorageAddLocal)
* [StorageDetachLocal](#StorageDetachLocal) * [StorageDetachLocal](#StorageDetachLocal)
* [StorageFindSector](#StorageFindSector)
* [StorageInfo](#StorageInfo) * [StorageInfo](#StorageInfo)
* [StorageList](#StorageList) * [StorageList](#StorageList)
* [StorageLocal](#StorageLocal) * [StorageLocal](#StorageLocal)
@ -131,6 +132,49 @@ Inputs:
Response: `{}` Response: `{}`
### StorageFindSector
Perms: admin
Inputs:
```json
[
{
"Miner": 1000,
"Number": 9
},
1,
34359738368,
true
]
```
Response:
```json
[
{
"ID": "76f1988b-ef30-4d7e-b3ec-9a627f4ba5a8",
"URLs": [
"string value"
],
"BaseURLs": [
"string value"
],
"Weight": 42,
"CanSeal": true,
"CanStore": true,
"Primary": true,
"AllowTypes": [
"string value"
],
"DenyTypes": [
"string value"
]
}
]
```
### StorageInfo ### StorageInfo