From ce7d6137496d5971462b12865a475e751fe0e4dd Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Fri, 17 Jul 2020 22:13:23 +0200 Subject: [PATCH] Add Blob.Handle() --- internal/restic/blob.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/restic/blob.go b/internal/restic/blob.go index a3a6c8630..b6c5a47cf 100644 --- a/internal/restic/blob.go +++ b/internal/restic/blob.go @@ -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