chore: sync vpn.proto with coder/coder-desktop-windows (#17106)

Syncs `vpn.proto` with https://github.com/coder/coder-desktop-windows/blob/main/Vpn.Proto/vpn.proto
This commit is contained in:
Spike Curtis
2025-03-26 13:38:39 +04:00
committed by GitHub
parent b4fa8097ef
commit f6a10eeb7f
2 changed files with 840 additions and 315 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,6 +44,26 @@ message TunnelMessage {
}
}
// ClientMessage is a message from the client (to the service). Windows only.
message ClientMessage {
RPC rpc = 1;
oneof msg {
StartRequest start = 2;
StopRequest stop = 3;
StatusRequest status = 4;
}
}
// ServiceMessage is a message from the service (to the client). Windows only.
message ServiceMessage {
RPC rpc = 1;
oneof msg {
StartResponse start = 2;
StopResponse stop = 3;
Status status = 4; // either in reply to a StatusRequest or broadcasted
}
}
// Log is a log message generated by the tunnel. The manager should log it to the system log. It is
// one-way tunnel -> manager with no response.
message Log {
@ -208,3 +228,26 @@ message StopResponse {
bool success = 1;
string error_message = 2;
}
// StatusRequest is a request to get the status of the tunnel. The manager
// replies with a Status.
message StatusRequest {}
// Status is sent in response to a StatusRequest or broadcasted to all clients
// when the status changes.
message Status {
enum Lifecycle {
UNKNOWN = 0;
STARTING = 1;
STARTED = 2;
STOPPING = 3;
STOPPED = 4;
}
Lifecycle lifecycle = 1;
string error_message = 2;
// This will be a FULL update with all workspaces and agents, so clients
// should replace their current peer state. Only the Upserted fields will
// be populated.
PeerUpdate peer_update = 3;
}