proto/proto/manager_protobuf.proto
2024-12-11 16:13:28 +05:30

39 lines
805 B
Protocol Buffer

syntax = "proto3";
package dtpm_proto;
message SetConfigResponse {
string status = 1;
}
// The main Config structure
message ManagerConfigPB {
repeated FileEntry filesystem = 1;
repeated EnvironmentEntry environment = 2;
repeated ChildProcess child_processes = 3;
}
// Represents a file entry with a path and content
message FileEntry {
string path = 1;
oneof content {
string data = 2;
string file_path = 3; // For the `Path` variant in FileContent
}
}
// Represents an environment variable entry
message EnvironmentEntry {
string name = 1;
string value = 2;
}
// Represents a child process configuration
message ChildProcess {
string path = 1;
repeated string arguments = 2;
}
service ConfigManager {
rpc SetConfig(ManagerConfigPB) returns (SetConfigResponse) {}
}