Files
certimate/pkg/plugin/proto/plugin.proto
2026-07-28 13:21:39 +08:00

61 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
package certimate.plugin.v1;
option go_package = "github.com/certimate-go/certimate/pkg/plugin/proto";
service DeployerPlugin {
rpc GetMetadata(GetMetadataRequest) returns (GetMetadataResponse);
rpc GetConfigSchema(GetConfigSchemaRequest) returns (GetConfigSchemaResponse);
rpc Deploy(DeployRequest) returns (stream DeployFrame);
}
message GetMetadataRequest {}
message GetMetadataResponse {
string provider_type = 1;
string access_provider_type = 2;
uint32 protocol_version = 3;
string deploy_category = 4;
string deploy_display_name_key = 5;
string access_display_name_key = 6;
}
message GetConfigSchemaRequest {}
message StringMap {
map<string, string> entries = 1;
}
message GetConfigSchemaResponse {
bytes access_schema_json = 1;
bytes deploy_schema_json = 2;
map<string, StringMap> i18n_resources = 3;
}
message DeployRequest {
string log_level = 1;
string access_config_json = 2;
string extended_config_json = 3;
string certificate_pem = 4;
string private_key_pem = 5;
}
message DeployResponse {
string extended_data_json = 1;
}
message LogEntry {
int64 timestamp_milli = 1;
int32 level = 2;
string message = 3;
map<string, string> data = 4;
}
message DeployFrame {
oneof frame {
LogEntry log = 1;
DeployResponse result = 2;
}
}