mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
Adding List(path) to object storage definition and accompanying definition to fs
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
package storage
|
||||
|
||||
type ObjectStorage interface {
|
||||
GetList() ([]byte, error)
|
||||
List(path string) ([]ObjectDescription, error)
|
||||
Get(path string) ([]byte, error)
|
||||
Put(path string, object []byte) error
|
||||
}
|
||||
|
||||
type ObjectDescription struct {
|
||||
Path string
|
||||
IsDir bool
|
||||
Hash string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user