mirror of
https://github.com/minio/minio.git
synced 2024-12-30 09:03:22 -05:00
16 lines
265 B
Go
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
|
|
}
|