Skip to content

Commit

Permalink
feat(renterd): list objects allows fetching across buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Sep 17, 2024
1 parent 2cf5b66 commit e4c3dd4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/neat-foxes-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@siafoundation/renterd-js': minor
'@siafoundation/renterd-react': minor
'@siafoundation/renterd-types': minor
---

The list objects API now includes a slabEncryptionKey parameter.
7 changes: 7 additions & 0 deletions .changeset/spotty-sheep-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@siafoundation/renterd-js': minor
'@siafoundation/renterd-react': minor
'@siafoundation/renterd-types': minor
---

The list objects API bucket parameter is now optional, and bucket is returned in in the object metadata.
3 changes: 2 additions & 1 deletion libs/renterd-types/src/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,15 @@ export type BucketDeletePayload = void
export type BucketDeleteResponse = void

export type ObjectListParams = {
bucket?: string
prefix?: string
bucket: string
delimiter?: string
limit?: number
marker?: string
sortBy?: 'name' | 'health' | 'size'
sortDir?: 'asc' | 'desc'
substring?: string
slabEncryptionKey?: string
}
export type ObjectListPayload = void
export type ObjectListResponse = {
Expand Down
1 change: 1 addition & 0 deletions libs/renterd-types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export type ObjectObject = {
}

export type ObjectMetadata = {
bucket: string
key: string
size: number
health: number
Expand Down
6 changes: 2 additions & 4 deletions package-lock.json

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

0 comments on commit e4c3dd4

Please sign in to comment.