Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadMetadata = errors.New("Corrupted metadata.")
View Source
var FileEmptyError = errors.New("Empty file")
View Source
var NotFoundErr = errors.New("File not found.")
Functions ¶
This section is empty.
Types ¶
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) Head(key string) (Metadata, error) Get(key string) (Metadata, io.ReadCloser, error) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string) (Metadata, error) PutMetadata(key string, m Metadata) error Size(key string) (int64, error) }
Click to show internal directories.
Click to hide internal directories.