minio/pkgs/storage/storage.go
2014-12-10 20:57:59 -08:00

16 lines
265 B
Go

package storage
import "io"
type ObjectStorage interface {
List(path string) ([]ObjectDescription, error)
Get(path string) (io.Reader, error)
Put(path string, object io.Reader) error
}
type ObjectDescription struct {
Path string
IsDir bool
Hash string
}