listObjects: Channel based ftw - initial implementation.

This commit is contained in:
Krishna Srinivas
2015-11-10 03:10:11 -08:00
committed by Harshavardhana
parent 67a70eb6d6
commit 9e18bfa60e
5 changed files with 248 additions and 358 deletions

View File

@@ -130,6 +130,31 @@ type BucketResourcesMetadata struct {
CommonPrefixes []string
}
type ListObjectsReq struct {
Bucket string
Prefix string
Marker string
Delimiter string
MaxKeys int
}
type ListObjectsResp struct {
IsTruncated bool
NextMarker string
Objects []ObjectMetadata
Prefixes []string
}
type listServiceReq struct {
req ListObjectsReq
respCh chan ListObjectsResp
}
type listWorkerReq struct {
req ListObjectsReq
respCh chan ListObjectsResp
}
// CompletePart - completed part container
type CompletePart struct {
PartNumber int