package blob import "forge.cadoles.com/arcad/edge/pkg/storage" type blobInfo struct { ID storage.BlobID `goja:"id"` Bucket string `goja:"bucket"` ModTime int64 `goja:"modTime"` Size int64 `goja:"size"` ContentType string `goja:"contentType"` } func toGojaBlobInfo(blob storage.BlobInfo) blobInfo { return blobInfo{ ID: blob.ID(), Bucket: blob.Bucket(), ModTime: blob.ModTime().Unix(), Size: blob.Size(), ContentType: blob.ContentType(), } }