mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
ObjectStorage refactor to take io.Reader instead of []byte
This commit is contained in:
@@ -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