repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
27e24e6
parent
1cfab57
author
Eric Bower
date
2025-04-18 13:01:42 -0400 EDT
chore: rm UserMetadata
4 files changed,  +0, -4
M pkg/pobj/storage/fs.go
+0, -1
1@@ -97,7 +97,6 @@ func (s *StorageFS) GetObject(bucket Bucket, fpath string) (utils.ReadAndReaderA
2 	objInfo := &ObjectInfo{
3 		LastModified: time.Time{},
4 		Metadata:     nil,
5-		UserMetadata: map[string]string{},
6 	}
7 
8 	dat, err := os.Open(filepath.Join(bucket.Path, fpath))
M pkg/pobj/storage/memory.go
+0, -1
1@@ -87,7 +87,6 @@ func (s *StorageMemory) GetObject(bucket Bucket, fpath string) (utils.ReadAndRea
2 	objInfo := &ObjectInfo{
3 		LastModified: time.Time{},
4 		Metadata:     nil,
5-		UserMetadata: map[string]string{},
6 	}
7 
8 	dat, ok := s.storage[bucket.Path][fpath]
M pkg/pobj/storage/minio.go
+0, -1
1@@ -200,7 +200,6 @@ func (s *StorageMinio) GetObject(bucket Bucket, fpath string) (utils.ReadAndRead
2 	objInfo.LastModified = info.LastModified
3 	objInfo.ETag = info.ETag
4 	objInfo.Metadata = info.Metadata
5-	objInfo.UserMetadata = info.UserMetadata
6 	objInfo.Size = info.Size
7 
8 	if mtime, ok := info.UserMetadata["Mtime"]; ok {
M pkg/pobj/storage/storage.go
+0, -1
1@@ -33,5 +33,4 @@ type ObjectInfo struct {
2 	LastModified time.Time
3 	ETag         string
4 	Metadata     http.Header
5-	UserMetadata map[string]string
6 }