Add type blobref.SizedBlobRef

This commit is contained in:
Brad Fitzpatrick 2011-02-03 17:06:29 -08:00
parent ba48b63543
commit 866ff37ce1
1 changed files with 7 additions and 0 deletions

View File

@ -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