mirror of
https://github.com/minio/minio.git
synced 2025-01-07 04:53:23 -05:00
0a0e1111cd
- Reply back objects with their protectionlevel and md5sum - // TODO hash value - Calculate md5sum after "storeBlocks()", to make sure data is committed
17 lines
311 B
Go
17 lines
311 B
Go
package storage
|
|
|
|
import "io"
|
|
|
|
type ObjectStorage interface {
|
|
List() ([]ObjectDescription, error)
|
|
Get(path string) (io.Reader, error)
|
|
Put(path string, object io.Reader) error
|
|
}
|
|
|
|
type ObjectDescription struct {
|
|
Name string
|
|
Md5sum string
|
|
Protectionlevel string
|
|
// Hash string - TODO
|
|
}
|