2017-05-02 06:25:56 +02:00
|
|
|
package backends
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Metadata struct {
|
|
|
|
DeleteKey string
|
2020-02-17 15:58:56 +01:00
|
|
|
AccessKey string
|
2017-05-02 06:25:56 +02:00
|
|
|
Sha256sum string
|
|
|
|
Mimetype string
|
|
|
|
Size int64
|
|
|
|
Expiry time.Time
|
2021-02-10 04:36:14 +01:00
|
|
|
SrcIp string
|
2017-05-02 06:25:56 +02:00
|
|
|
ArchiveFiles []string
|
|
|
|
}
|
|
|
|
|
|
|
|
var BadMetadata = errors.New("Corrupted metadata.")
|