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

remove bytes fields in protobuf #175

Merged
merged 1 commit into from
Dec 16, 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
7 changes: 6 additions & 1 deletion src/main/proto/epp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.epp.proto";
option java_outer_classname = "EPPProto";

message OperandEntry {
string name = 1;
repeated string value = 2;
}

message EventContext {
string user = 1;
string process = 2;
string opName = 3;
map<string, bytes> operands = 4;
repeated OperandEntry operands = 4;
}

message EPPResponse {}
Expand Down
12 changes: 10 additions & 2 deletions src/main/proto/pdp.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
syntax = "proto3";

import "epp.proto";

option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.pdp.proto";
option java_outer_classname = "PDPProto";
Expand All @@ -9,8 +11,14 @@ message ResourceOperationRequest {
string target = 2;
}

message Node {
string name = 1;
string type = 2;
map<string, string> properties = 3;
}

message ResourceOperationResponse {
bytes node = 1;
Node node = 1;
}

service ResourcePDP {
Expand All @@ -19,7 +27,7 @@ service ResourcePDP {

message AdminOperationRequest {
string opName = 1;
map<string, bytes> operands = 2;
repeated OperandEntry operands = 2;
}

message AdminOperationResponse {}
Expand Down
Loading