Skip to content

Commit

Permalink
fix(data): add back SnapshotFileMeta.Custom (#373)
Browse files Browse the repository at this point in the history
add back SnapshotFileMeta.custom

Signed-off-by: Arthur Bellal <[email protected]>

Signed-off-by: Arthur Bellal <[email protected]>
  • Loading branch information
arbll authored Oct 5, 2022
1 parent b4b954d commit adbdc7d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adbdc7d

Please sign in to comment.