storj/pkg/storage/meta.go
Kaloyan Raev 8ce889ed1b
ObjectStore (#128)
* WIP ObjectStore

* Remove methods for extended attributes

* List returns metadata too

* No real need to prepend "object" in path

* Serialize metadata

* List retuns []ListItem instead of []Path
2018-07-16 23:44:28 +03:00

42 lines
803 B
Go

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package storage
import (
"time"
"storj.io/storj/protos/meta"
)
// Meta flags for the List method
const (
// MetaNone represents no meta flags
MetaNone = uint64(1 << iota)
// MetaModified meta flag
MetaModified
// MetaExpiration meta flag
MetaExpiration
// MetaSize meta flags
MetaSize
// MetaChecksum meta flag
MetaChecksum
// MetaContentType meta flag
MetaContentType
// MetaUserDefined meta flag
MetaUserDefined
// MetaAll represents all the meta flags
MetaAll = ^uint64(0)
)
// Meta is the full object metadata
type Meta struct {
meta.Serializable
Modified time.Time
Expiration time.Time
Size int64
Checksum string
// Redundancy []eestream.RedundancyStrategy
// EncryptionScheme
}