mirror of
https://github.com/restic/restic.git
synced 2024-12-25 01:06:39 +00:00
Add Blob.Handle()
This commit is contained in:
parent
581d90cf91
commit
ce7d613749
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ func (b Blob) String() string {
|
||||||
b.Type, b.ID.Str(), b.Offset, b.Length)
|
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.
|
// PackedBlob is a blob stored within a file.
|
||||||
type PackedBlob struct {
|
type PackedBlob struct {
|
||||||
Blob
|
Blob
|
||||||
|
|
Loading…
Reference in a new issue