mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
A full restructure
This commit is contained in:
15
pkg/storage/storage.go
Normal file
15
pkg/storage/storage.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package storage
|
||||
|
||||
import "io"
|
||||
|
||||
type ObjectStorage interface {
|
||||
List(objectPath string) ([]ObjectDescription, error)
|
||||
Get(path string) (io.Reader, error)
|
||||
Put(path string, object io.Reader) error
|
||||
}
|
||||
|
||||
type ObjectDescription struct {
|
||||
Name string
|
||||
Md5sum string
|
||||
Murmur3 string
|
||||
}
|
||||
Reference in New Issue
Block a user