1
0
mirror of https://github.com/restic/restic.git synced 2024-06-20 07:06:38 +02:00

Add Blob.Handle()

This commit is contained in:
Alexander Weiss 2020-07-17 22:13:23 +02:00 committed by Alexander Neumann
parent 581d90cf91
commit ce7d613749

View File

@ -19,6 +19,10 @@ func (b Blob) String() string {
b.Type, b.ID.Str(), b.Offset, b.Length)
}
func (b Blob) Handle() BlobHandle {
return BlobHandle{ID: b.ID, Type: b.Type}
}
// PackedBlob is a blob stored within a file.
type PackedBlob struct {
Blob