Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadMetadata = errors.New("Corrupted metadata.")
Functions ¶
This section is empty.
Types ¶
type MetaBackend ¶ added in v1.2.8
type MetaStorageBackend ¶ added in v1.2.8
type MetaStorageBackend interface {
StorageBackend
List() ([]string, error)
}
type StorageBackend ¶
type StorageBackend interface {
Delete(key string) error
Exists(key string) (bool, error)
Get(key string) ([]byte, error)
Put(key string, r io.Reader) (int64, error)
Open(key string) (ReadSeekCloser, error)
ServeFile(key string, w http.ResponseWriter, r *http.Request)
Size(key string) (int64, error)
}
Click to show internal directories.
Click to hide internal directories.