mirror of
https://github.com/openziti/zrok.git
synced 2024-11-23 16:43:09 +01:00
59 lines
1.1 KiB
Protocol Buffer
59 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "github.com/openziti/zrok/agent/agentGrpc";
|
|
|
|
service Agent {
|
|
rpc PublicShare(PublicShareRequest) returns (PublicShareReply) {}
|
|
rpc Status(StatusRequest) returns (StatusReply) {}
|
|
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 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;
|
|
}
|
|
|
|
message VersionRequest {
|
|
}
|
|
|
|
message VersionReply {
|
|
string v = 1;
|
|
}
|