Skip to content

Commit

Permalink
storage redeclare command (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr authored Feb 13, 2025
1 parent 0f0f3ff commit 646c67f
Show file tree
Hide file tree
Showing 12 changed files with 608 additions and 398 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ go-generate:
gen: gensimple
.PHONY: gen

gensimple: go-generate cfgdoc-gen api-gen docsgen docsgen-cli
gensimple: api-gen go-generate cfgdoc-gen docsgen docsgen-cli
$(GOCC) run ./scripts/fiximports
go mod tidy
.PHONY: gen
Expand Down
1 change: 1 addition & 0 deletions api/api_curio.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Curio interface {
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
StorageGenerateVanillaProof(ctx context.Context, maddr address.Address, sector abi.SectorNumber) ([]byte, error) //perm:admin
StorageRedeclare(ctx context.Context, filterId *storiface.ID, dropMissing bool) error //perm:admin

// MethodGroup: Log
//The log method group has logging methods
Expand Down
13 changes: 13 additions & 0 deletions api/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 71 additions & 17 deletions build/openrpc/curio.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L330"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L333"
}
},
{
Expand All @@ -335,7 +335,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L341"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L344"
}
},
{
Expand Down Expand Up @@ -419,7 +419,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L352"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L355"
}
},
{
Expand Down Expand Up @@ -455,7 +455,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L363"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L366"
}
},
{
Expand Down Expand Up @@ -509,7 +509,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L374"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L377"
}
},
{
Expand All @@ -532,7 +532,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L385"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L388"
}
},
{
Expand Down Expand Up @@ -571,7 +571,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L396"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L399"
}
},
{
Expand Down Expand Up @@ -610,7 +610,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L407"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L410"
}
},
{
Expand Down Expand Up @@ -804,7 +804,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L418"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L421"
}
},
{
Expand Down Expand Up @@ -865,7 +865,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L429"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L432"
}
},
{
Expand Down Expand Up @@ -997,7 +997,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L440"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L443"
}
},
{
Expand Down Expand Up @@ -1131,7 +1131,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L451"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L454"
}
},
{
Expand Down Expand Up @@ -1185,7 +1185,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L462"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L465"
}
},
{
Expand Down Expand Up @@ -1219,7 +1219,61 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L473"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L476"
}
},
{
"name": "Filecoin.StorageRedeclare",
"description": "```go\nfunc (s *CurioStruct) StorageRedeclare(p0 context.Context, p1 *storiface.ID, p2 bool) error {\n\tif s.Internal.StorageRedeclare == nil {\n\t\treturn ErrNotSupported\n\t}\n\treturn s.Internal.StorageRedeclare(p0, p1, p2)\n}\n```",
"summary": "",
"paramStructure": "by-position",
"params": [
{
"name": "p1",
"description": "*storiface.ID",
"summary": "",
"schema": {
"examples": [
"string value"
],
"type": [
"string"
]
},
"required": true,
"deprecated": false
},
{
"name": "p2",
"description": "bool",
"summary": "",
"schema": {
"examples": [
true
],
"type": [
"boolean"
]
},
"required": true,
"deprecated": false
}
],
"result": {
"name": "Null",
"description": "Null",
"schema": {
"type": [
"null"
]
},
"required": true,
"deprecated": false
},
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L487"
}
},
{
Expand Down Expand Up @@ -1296,7 +1350,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L484"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L498"
}
},
{
Expand All @@ -1319,7 +1373,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L495"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L509"
}
},
{
Expand Down Expand Up @@ -1357,7 +1411,7 @@
"deprecated": false,
"externalDocs": {
"description": "Github remote link",
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L506"
"url": "https://github.com/filecoin-project/curio/blob/master/api/proxy_gen.go#L520"
}
}
]
Expand Down
Loading

0 comments on commit 646c67f

Please sign in to comment.