Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repo digest field to container payload #293

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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
2 changes: 1 addition & 1 deletion contimage/contimage.pb.go

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

2 changes: 1 addition & 1 deletion contlcycle/contlcycle.pb.go

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

2 changes: 1 addition & 1 deletion cws/dumpsv1/activity_dump.pb.go

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

2 changes: 1 addition & 1 deletion cyclonedx_v1_4/bom-1.4.pb.go

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

1,124 changes: 589 additions & 535 deletions process/agent.pb.go

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions process/agent.proto_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,12 @@ func (x *ContainerBuilder) SetMemoryRequest(v uint64) {
x.scratch = protowire.AppendVarint(x.scratch, uint64(v))
x.writer.Write(x.scratch)
}
func (x *ContainerBuilder) SetRepoDigest(v string) {
x.scratch = x.scratch[:0]
x.scratch = protowire.AppendVarint(x.scratch, 0x11a)
x.scratch = protowire.AppendString(x.scratch, v)
x.writer.Write(x.scratch)
}

type ProcessStatBuilder struct {
writer io.Writer
Expand Down
1 change: 1 addition & 0 deletions proto/process/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ message Container {
uint64 memAccounted = 32;
float cpuRequest = 33;
uint64 memoryRequest = 34;
string repoDigest = 35;
}

// Process state codes in http://wiki.preshweb.co.uk/doku.php?id=linux:psflags
Expand Down
2 changes: 1 addition & 1 deletion sbom/sbom.pb.go

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

Loading