minio/pkgs/storage/storage.go

17 lines
325 B
Go
Raw Normal View History

package storage
import "io"
type ObjectStorage interface {
List() ([]ObjectDescription, error)
2014-12-13 04:39:14 -05:00
// ListBucket(bucketName string) ([]ObjectDescription, error)
Get(path string) (io.Reader, error)
Put(path string, object io.Reader) error
}
type ObjectDescription struct {
Name string
Md5sum string
Murmur3 string
}