diff --git a/pkg/filestore/filestore.go b/pkg/filestore/filestore.go index ce19153416..7fef513940 100644 --- a/pkg/filestore/filestore.go +++ b/pkg/filestore/filestore.go @@ -27,6 +27,7 @@ var ( type ObjectAttrs struct { Path string Size int64 + Etag string UpdatedAt int64 } diff --git a/pkg/filestore/gcs/gcs.go b/pkg/filestore/gcs/gcs.go index 10b6a09d35..6048d18bec 100644 --- a/pkg/filestore/gcs/gcs.go +++ b/pkg/filestore/gcs/gcs.go @@ -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) diff --git a/pkg/filestore/minio/minio.go b/pkg/filestore/minio/minio.go index 01c4feebca..6ca047278f 100644 --- a/pkg/filestore/minio/minio.go +++ b/pkg/filestore/minio/minio.go @@ -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(), }) } diff --git a/pkg/filestore/s3/s3.go b/pkg/filestore/s3/s3.go index 5154241c49..9a63259936 100644 --- a/pkg/filestore/s3/s3.go +++ b/pkg/filestore/s3/s3.go @@ -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(), }) }