Nickname support
This commit is contained in:
parent
61440c42d3
commit
663e8384a3
10 changed files with 669 additions and 197 deletions
|
@ -99,6 +99,12 @@ service HeadscaleService {
|
|||
};
|
||||
}
|
||||
|
||||
rpc RenameMachine(RenameMachineRequest) returns (RenameMachineResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v1/machine/{machine_id}/rename/{new_name}"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ListMachines(ListMachinesRequest) returns (ListMachinesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/v1/machine"
|
||||
|
|
|
@ -38,6 +38,8 @@ message Machine {
|
|||
// bytes host_info = 15;
|
||||
// bytes endpoints = 16;
|
||||
// bytes enabled_routes = 17;
|
||||
|
||||
string nickname = 18;
|
||||
}
|
||||
|
||||
message RegisterMachineRequest {
|
||||
|
@ -72,6 +74,15 @@ message ExpireMachineResponse {
|
|||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message RenameMachineRequest {
|
||||
uint64 machine_id = 1;
|
||||
string new_name = 2;
|
||||
}
|
||||
|
||||
message RenameMachineResponse {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message ListMachinesRequest {
|
||||
string namespace = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue