Versions in this module Expand all Collapse all v1 v1.0.0 Mar 4, 2024 Changes in this version + var BadMetadata = errors.New("Corrupted metadata.") + var FileEmptyError = errors.New("Empty file") + var NotFoundErr = errors.New("File not found.") + type MetaStorageBackend interface + List func() ([]string, error) + type Metadata struct + AccessKey string + ArchiveFiles []string + DeleteKey string + Expiry time.Time + Mimetype string + Sha256sum string + Size int64 + type StorageBackend interface + Delete func(key string) error + Exists func(key string) (bool, error) + Get func(key string) (Metadata, io.ReadCloser, error) + Head func(key string) (Metadata, error) + Put func(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string) (Metadata, error) + PutMetadata func(key string, m Metadata) error + ServeFile func(key string, w http.ResponseWriter, r *http.Request) error + Size func(key string) (int64, error)