aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/entry.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-06-10 16:57:32 -0700
committerChris Lu <chris.lu@gmail.com>2018-06-10 16:57:32 -0700
commit98110c16970a1c231a5cc04e0eb85ec48d649e14 (patch)
tree17dceb7f2426cc857e64881091c3993c34c51494 /weed/filer2/entry.go
parentf1273073fc1b3d5c62ccb734b84e12fa3053d65f (diff)
downloadseaweedfs-98110c16970a1c231a5cc04e0eb85ec48d649e14.tar.xz
seaweedfs-98110c16970a1c231a5cc04e0eb85ec48d649e14.zip
add collection, replication, ttl to each file
Diffstat (limited to 'weed/filer2/entry.go')
-rw-r--r--weed/filer2/entry.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/weed/filer2/entry.go b/weed/filer2/entry.go
index a2f8b91ef..82bc00b27 100644
--- a/weed/filer2/entry.go
+++ b/weed/filer2/entry.go
@@ -8,12 +8,15 @@ import (
)
type Attr struct {
- Mtime time.Time // time of last modification
- Crtime time.Time // time of creation (OS X only)
- Mode os.FileMode // file mode
- Uid uint32 // owner uid
- Gid uint32 // group gid
- Mime string
+ Mtime time.Time // time of last modification
+ Crtime time.Time // time of creation (OS X only)
+ Mode os.FileMode // file mode
+ Uid uint32 // owner uid
+ Gid uint32 // group gid
+ Mime string // mime type
+ Replication string // replication
+ Collection string // collection name
+ TtlSec int32 // ttl in seconds
}
func (attr Attr) IsDirectory() bool {