43 lines
765 B
Go
43 lines
765 B
Go
|
package gob
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"forge.cadoles.com/arcad/edge/pkg/storage"
|
||
|
)
|
||
|
|
||
|
type BlobInfo struct {
|
||
|
Bucket_ string
|
||
|
ContentType_ string
|
||
|
BlobID_ storage.BlobID
|
||
|
ModTime_ time.Time
|
||
|
Size_ int64
|
||
|
}
|
||
|
|
||
|
// Bucket implements storage.BlobInfo.
|
||
|
func (bi *BlobInfo) Bucket() string {
|
||
|
return bi.Bucket_
|
||
|
}
|
||
|
|
||
|
// ContentType implements storage.BlobInfo.
|
||
|
func (bi *BlobInfo) ContentType() string {
|
||
|
return bi.ContentType_
|
||
|
}
|
||
|
|
||
|
// ID implements storage.BlobInfo.
|
||
|
func (bi *BlobInfo) ID() storage.BlobID {
|
||
|
return bi.BlobID_
|
||
|
}
|
||
|
|
||
|
// ModTime implements storage.BlobInfo.
|
||
|
func (bi *BlobInfo) ModTime() time.Time {
|
||
|
return bi.ModTime_
|
||
|
}
|
||
|
|
||
|
// Size implements storage.BlobInfo.
|
||
|
func (bi *BlobInfo) Size() int64 {
|
||
|
return bi.Size_
|
||
|
}
|
||
|
|
||
|
var _ storage.BlobInfo = &BlobInfo{}
|