mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
ObjectStorage refactor to take io.Reader instead of []byte
This commit is contained in:
1 parent
c7b4e14f64
commit
19da9760b3
7 files changed
+65
-43
No files matched your search
@@ -1,9 +1,11 @@
|
||||
package storage
|
||||
|
||||
import "io"
|
||||
|
||||
type ObjectStorage interface {
|
||||
List(path string) ([]ObjectDescription, error)
|
||||
Get(path string) ([]byte, error)
|
||||
Put(path string, object []byte) error
|
||||
Get(path string) (io.Reader, error)
|
||||
Put(path string, object io.Reader) error
|
||||
}
|
||||
|
||||
type ObjectDescription struct {
|
||||
|
||||
Reference in new issue
Block a user