Skip to content

Commit

Permalink
feat:update PieceStorageInfos
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Aug 5, 2022
1 parent f5a4cc0 commit 62144a9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion venus-shared/api/market/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type IMarket interface {

AddFsPieceStorage(ctx context.Context, readonly bool, path string, name string) error //perm:admin

AddS3PieceStorage(ctx context.Context, readonly bool, endpoit, name, key, secret, token string) error //perm:admin
AddS3PieceStorage(ctx context.Context, readonly bool, endpoit, bucket, subdir, name, key, secret, token string) error //perm:admin

RemovePieceStorage(ctx context.Context, name string) error //perm:admin

Expand Down
6 changes: 5 additions & 1 deletion venus-shared/api/market/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Inputs:
"string value",
"string value",
"string value",
"string value",
"string value",
"string value"
]
```
Expand Down Expand Up @@ -631,7 +633,9 @@ Response:
{
"Name": "string value",
"ReadOnly": true,
"EndPoint": "string value"
"EndPoint": "string value",
"Bucket": "string value",
"SubDir": "string value"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions venus-shared/api/market/mock/mock_imarket.go

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

6 changes: 3 additions & 3 deletions venus-shared/api/market/proxy_gen.go

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

2 changes: 2 additions & 0 deletions venus-shared/types/market/piecestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ type S3Storage struct {
Name string
ReadOnly bool
EndPoint string
Bucket string
SubDir string
}

0 comments on commit 62144a9

Please sign in to comment.