mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-11 03:27:20 +02:00
drop unused last_successful_update field from node table (#1754)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
syntax = "proto3";
|
||||
package headscale.v1;
|
||||
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "headscale/v1/user.proto";
|
||||
import "headscale/v1/preauthkey.proto";
|
||||
import "headscale/v1/user.proto";
|
||||
|
||||
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
||||
|
||||
enum RegisterMethod {
|
||||
REGISTER_METHOD_UNSPECIFIED = 0;
|
||||
@@ -14,17 +15,19 @@ enum RegisterMethod {
|
||||
}
|
||||
|
||||
message Node {
|
||||
// 9: removal of last_successful_update
|
||||
reserved 9;
|
||||
|
||||
uint64 id = 1;
|
||||
string machine_key = 2;
|
||||
string node_key = 3;
|
||||
string disco_key = 4;
|
||||
repeated string ip_addresses = 5;
|
||||
string name = 6;
|
||||
User user = 7;
|
||||
User user = 7;
|
||||
|
||||
google.protobuf.Timestamp last_seen = 8;
|
||||
google.protobuf.Timestamp last_successful_update = 9;
|
||||
google.protobuf.Timestamp expiry = 10;
|
||||
google.protobuf.Timestamp last_seen = 8;
|
||||
google.protobuf.Timestamp expiry = 10;
|
||||
|
||||
PreAuthKey pre_auth_key = 11;
|
||||
|
||||
@@ -49,7 +52,7 @@ message Node {
|
||||
|
||||
message RegisterNodeRequest {
|
||||
string user = 1;
|
||||
string key = 2;
|
||||
string key = 2;
|
||||
}
|
||||
|
||||
message RegisterNodeResponse {
|
||||
@@ -66,7 +69,7 @@ message GetNodeResponse {
|
||||
|
||||
message SetTagsRequest {
|
||||
uint64 node_id = 1;
|
||||
repeated string tags = 2;
|
||||
repeated string tags = 2;
|
||||
}
|
||||
|
||||
message SetTagsResponse {
|
||||
@@ -77,8 +80,7 @@ message DeleteNodeRequest {
|
||||
uint64 node_id = 1;
|
||||
}
|
||||
|
||||
message DeleteNodeResponse {
|
||||
}
|
||||
message DeleteNodeResponse {}
|
||||
|
||||
message ExpireNodeRequest {
|
||||
uint64 node_id = 1;
|
||||
@@ -89,8 +91,8 @@ message ExpireNodeResponse {
|
||||
}
|
||||
|
||||
message RenameNodeRequest {
|
||||
uint64 node_id = 1;
|
||||
string new_name = 2;
|
||||
uint64 node_id = 1;
|
||||
string new_name = 2;
|
||||
}
|
||||
|
||||
message RenameNodeResponse {
|
||||
@@ -107,7 +109,7 @@ message ListNodesResponse {
|
||||
|
||||
message MoveNodeRequest {
|
||||
uint64 node_id = 1;
|
||||
string user = 2;
|
||||
string user = 2;
|
||||
}
|
||||
|
||||
message MoveNodeResponse {
|
||||
@@ -115,7 +117,7 @@ message MoveNodeResponse {
|
||||
}
|
||||
|
||||
message DebugCreateNodeRequest {
|
||||
string user = 1;
|
||||
string user = 1;
|
||||
string key = 2;
|
||||
string name = 3;
|
||||
repeated string routes = 4;
|
||||
|
||||
Reference in New Issue
Block a user