Skip to content

Commit

Permalink
add back SnapshotFileMeta.custom
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Bellal <arthur.bellal@datadoghq.com>
  • Loading branch information
arbll committed Sep 21, 2022
1 parent 7097fd8 commit 0518f2f
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 0518f2f

Please sign in to comment.