ObjectStorage refactor to take io.Reader instead of []byte

This commit is contained in:
Frederick F. Kautz IV committed 2014-12-10 20:57:59 -08:00
1 parent c7b4e14f64
commit 19da9760b3
7 files changed
+65 -43

No files matched your search

+4 -2
View File
@@ -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 {