Contains the Concourse pipeline definition for building a line-server container
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.

23 lines
387 B

  1. package backends
  2. import (
  3. "errors"
  4. "time"
  5. )
  6. type MetaBackend interface {
  7. Get(key string) (Metadata, error)
  8. Put(key string, metadata *Metadata) error
  9. }
  10. type Metadata struct {
  11. DeleteKey string
  12. Sha256sum string
  13. Mimetype string
  14. Size int64
  15. Expiry time.Time
  16. ArchiveFiles []string
  17. ShortURL string
  18. }
  19. var BadMetadata = errors.New("Corrupted metadata.")