From e779ff66b306f26fa096e784539dc637683ab571 Mon Sep 17 00:00:00 2001 From: Arthur Bellal Date: Wed, 5 Oct 2022 20:06:33 +0200 Subject: [PATCH] fix(data): add back SnapshotFileMeta.Custom (#373) add back SnapshotFileMeta.custom Signed-off-by: Arthur Bellal Signed-off-by: Arthur Bellal --- data/types.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/types.go b/data/types.go index d051b762..3e1806bd 100644 --- a/data/types.go +++ b/data/types.go @@ -172,11 +172,14 @@ func (f Hashes) HashAlgorithms() []string { } type metapathFileMeta struct { - Length int64 `json:"length,omitempty"` - Hashes Hashes `json:"hashes,omitempty"` - Version int64 `json:"version"` + Length int64 `json:"length,omitempty"` + Hashes Hashes `json:"hashes,omitempty"` + Version int64 `json:"version"` + Custom *json.RawMessage `json:"custom,omitempty"` } +// SnapshotFileMeta is the meta field of a snapshot +// Note: Contains a `custom` field type SnapshotFileMeta metapathFileMeta type SnapshotFiles map[string]SnapshotFileMeta