mirror of https://github.com/perkeep/perkeep.git
Add type blobref.SizedBlobRef
This commit is contained in:
parent
ba48b63543
commit
866ff37ce1
|
@ -32,11 +32,18 @@ var supportedDigests = map[string]func()hash.Hash{
|
|||
},
|
||||
}
|
||||
|
||||
// BlobRef is an immutable reference to a blob.
|
||||
type BlobRef struct {
|
||||
hashName string
|
||||
digest string
|
||||
}
|
||||
|
||||
// SizedBlobRef is like a BlobRef but includes a (potentially mutable) size.
|
||||
type SizedBlobRef struct {
|
||||
*BlobRef
|
||||
Size int64
|
||||
}
|
||||
|
||||
type ReadSeekCloser interface {
|
||||
io.Reader
|
||||
io.Seeker
|
||||
|
|
Loading…
Reference in New Issue