2023-09-13 06:03:25 +02:00
|
|
|
package client
|
2023-02-09 12:16:36 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"forge.cadoles.com/arcad/edge/pkg/storage"
|
|
|
|
)
|
|
|
|
|
|
|
|
type BlobInfo struct {
|
|
|
|
id storage.BlobID
|
|
|
|
bucket string
|
|
|
|
contentType string
|
|
|
|
modTime time.Time
|
|
|
|
size int64
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bucket implements storage.BlobInfo
|
|
|
|
func (i *BlobInfo) Bucket() string {
|
|
|
|
return i.bucket
|
|
|
|
}
|
|
|
|
|
|
|
|
// ID implements storage.BlobInfo
|
|
|
|
func (i *BlobInfo) ID() storage.BlobID {
|
|
|
|
return i.id
|
|
|
|
}
|
|
|
|
|
|
|
|
// ContentType implements storage.BlobInfo
|
|
|
|
func (i *BlobInfo) ContentType() string {
|
|
|
|
return i.contentType
|
|
|
|
}
|
|
|
|
|
|
|
|
// ModTime implements storage.BlobInfo
|
|
|
|
func (i *BlobInfo) ModTime() time.Time {
|
|
|
|
return i.modTime
|
|
|
|
}
|
|
|
|
|
|
|
|
// Size implements storage.BlobInfo
|
|
|
|
func (i *BlobInfo) Size() int64 {
|
|
|
|
return i.size
|
|
|
|
}
|