blob: 9453df38d88482194197ecf9b2dcb2f846a78991 [file] [log] [blame]
Lorenz Brun94695962023-01-12 17:33:17 +00001syntax = "proto3";
2package cloud.agent.api;
3option go_package = "source.monogon.dev/cloud/agent/api";
4
5// TakeoverInit is the message sent to the takeover process over an SSH session
6// during initialization.
7message TakeoverInit {
8 // provider is the provider name the machine was created at.
9 string provider = 1;
10 // provider_id is the machine's provider-assigned ID.
11 string provider_id = 2;
12 // bmaas_endpoint is an address of the BMaaS service the agent should call
13 // back to.
14 string bmaas_endpoint = 3;
15}
16
17// TakeoverResponse is the message the takeover process sends back after
18// receiving an TakeoverInit message.
19message TakeoverResponse {
20 // init_message is the exact init message the agent received.
21 TakeoverInit init_message = 1;
22 // key is the agent's public key.
23 bytes key = 2;
24}