minio/pkgs/storage/storage.go
2014-12-15 15:59:17 +13:00

17 lines
310 B
Go

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