You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
279 B
16 lines
279 B
10 years ago
|
package storage
|
||
10 years ago
|
|
||
10 years ago
|
import "io"
|
||
|
|
||
10 years ago
|
type ObjectStorage interface {
|
||
10 years ago
|
List(objectPath string) ([]ObjectDescription, error)
|
||
10 years ago
|
Get(path string) (io.Reader, error)
|
||
|
Put(path string, object io.Reader) error
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
type ObjectDescription struct {
|
||
10 years ago
|
Name string
|
||
|
Md5sum string
|
||
|
Murmur3 string
|
||
10 years ago
|
}
|