Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 67 additions & 37 deletions contimage/contimage.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions proto/contimage/contimage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,18 @@ message ContainerImage {
bool emptyLayer = 5;
}
History history = 5;

// Logical file bytes stored in this layer that later layers of this image
// hide through deletion or replacement. Absent when collection is unavailable.
optional uint64 hidden_bytes = 6;
}
repeated ContainerImageLayer layers = 10;

google.protobuf.Timestamp builtAt = 11;
optional google.protobuf.Timestamp publishedAt = 13;

// Logical regular-file bytes across all layers, including versions hidden by
// later layers. Same-layer hardlinks count once. Excludes archive and filesystem
// overhead, symlinks, config and manifest. Absent when collection is unavailable.
optional uint64 uncompressed_size = 14;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the unrelated uncompressed-size field

This commit and its companion work introduce only the per-layer hidden_bytes metric, but this line also publishes a separate image-level protobuf contract and permanently claims field 14. If merged independently of the total-size work, consumers see an unsupported field and the eventual implementation can no longer choose or revise its wire definition safely; move this field and its generated Go changes to the dedicated uncompressed-size change.

Useful? React with 👍 / 👎.

}
Loading