zrok/agent/agentGrpc/agent.proto

67 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

2024-08-26 17:39:13 +02:00
syntax = "proto3";
2024-08-23 18:31:02 +02:00
option go_package = "github.com/openziti/zrok/agent/agentGrpc";
2024-08-23 17:31:46 +02:00
service Agent {
rpc PublicShare(PublicShareRequest) returns (PublicShareReply) {}
rpc ReleaseShare(ReleaseShareRequest) returns (ReleaseShareReply) {}
rpc Status(StatusRequest) returns (StatusReply) {}
2024-08-23 17:31:46 +02:00
rpc Version(VersionRequest) returns (VersionReply) {}
}
message AccessDetail {
string token = 1;
string bindAddress = 2;
repeated string responseHeaders = 3;
}
message PublicShareReply {
string token = 1;
}
message PublicShareRequest {
string target = 1;
repeated string basicAuth = 2;
repeated string frontendSelection = 3;
string backendMode = 4;
bool insecure = 5;
string oauthProvider = 6;
repeated string oauthEmailAddressPatterns = 7;
string oauthCheckInterval = 8;
bool closed = 9;
repeated string accessGrants = 10;
}
message ReleaseShareRequest {
string token = 1;
}
message ReleaseShareReply {
}
message ShareDetail {
string token = 1;
string shareMode = 2;
string backendMode = 3;
bool reserved = 4;
repeated string frontendEndpoint = 5;
string backendEndpoint = 6;
bool closed = 7;
string status = 8;
}
message StatusRequest {
}
message StatusReply {
repeated AccessDetail accesses = 1;
repeated ShareDetail shares = 2;
}
2024-08-23 17:31:46 +02:00
message VersionRequest {
}
message VersionReply {
2024-08-26 17:39:13 +02:00
string v = 1;
2024-08-23 17:31:46 +02:00
}