Skip to content

Commit

Permalink
api: Added OCI runtime spec field to measure request
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ott <[email protected]>
  • Loading branch information
smo4201 committed Nov 26, 2024
1 parent 3a9fba9 commit 7842a39
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 60 deletions.
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type MeasureRequest struct {
Name string `json:"name,omitempty" cbor:"0,keyasint,omitempty"`
ConfigSha256 []byte `json:"configSha256,omitempty" cbor:"1,keyasint,omitempty"`
RootfsSha256 []byte `json:"rootfsSha256,omitempty" cbor:"2,keyasint,omitempty"`
OciSpec []byte `json:"ociSpec,omitempty" cbor:"3,keyasint,omitempty"`
}

type MeasureResponse struct {
Expand Down
128 changes: 69 additions & 59 deletions grpcapi/grpcapi.pb.go

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

1 change: 1 addition & 0 deletions grpcapi/grpcapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ message MeasureRequest {
string name = 1;
bytes ConfigSha256 = 2;
bytes RootfsSha256 = 3;
bytes OciSpec = 4;
}

message MeasureResponse {
Expand Down
2 changes: 1 addition & 1 deletion grpcapi/grpcapi_grpc.pb.go

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

0 comments on commit 7842a39

Please sign in to comment.