Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/filestore/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var (
type ObjectAttrs struct {
Path string
Size int64
Etag string
UpdatedAt int64
}

Expand Down
1 change: 1 addition & 0 deletions pkg/filestore/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (s *Store) List(ctx context.Context, prefix string) ([]filestore.ObjectAttr
object := filestore.ObjectAttrs{
Path: attrs.Name,
Size: attrs.Size,
Etag: attrs.Etag,
UpdatedAt: attrs.Updated.Unix(),
}
objects = append(objects, object)
Expand Down
1 change: 1 addition & 0 deletions pkg/filestore/minio/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (s *Store) List(ctx context.Context, prefix string) ([]filestore.ObjectAttr
objects = append(objects, filestore.ObjectAttrs{
Path: o.Key,
Size: o.Size,
Etag: o.ETag,
UpdatedAt: o.LastModified.Unix(),
})
}
Expand Down
1 change: 1 addition & 0 deletions pkg/filestore/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func (s *Store) List(ctx context.Context, prefix string) ([]filestore.ObjectAttr
objects = append(objects, filestore.ObjectAttrs{
Path: aws.ToString(obj.Key),
Size: obj.Size,
Etag: aws.ToString(obj.ETag),
UpdatedAt: aws.ToTime(obj.LastModified).Unix(),
})
}
Expand Down