mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
Add list() object support for erasure and append storage drivers
- Reply back objects with their protectionlevel and md5sum - // TODO hash value - Calculate md5sum after "storeBlocks()", to make sure data is committed
This commit is contained in:
1 parent
267aa87ad7
commit
0a0e1111cd
8 files changed
+65
-95
No files matched your search
@@ -3,13 +3,14 @@ package storage
|
||||
import "io"
|
||||
|
||||
type ObjectStorage interface {
|
||||
List(path string) ([]ObjectDescription, error)
|
||||
List() ([]ObjectDescription, error)
|
||||
Get(path string) (io.Reader, error)
|
||||
Put(path string, object io.Reader) error
|
||||
}
|
||||
|
||||
type ObjectDescription struct {
|
||||
Path string
|
||||
IsDir bool
|
||||
Hash string
|
||||
Name string
|
||||
Md5sum string
|
||||
Protectionlevel string
|
||||
// Hash string - TODO
|
||||
}
|
||||
Reference in new issue
Block a user