mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
1112
vpn/vpn.pb.go
1112
vpn/vpn.pb.go
File diff suppressed because it is too large
Load Diff
@ -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
|
// 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.
|
// one-way tunnel -> manager with no response.
|
||||||
message Log {
|
message Log {
|
||||||
@ -208,3 +228,26 @@ message StopResponse {
|
|||||||
bool success = 1;
|
bool success = 1;
|
||||||
string error_message = 2;
|
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;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user