mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
428d7c86ce
While this truly breaks the point of the backwards compatible stuff with protobuf, it does not seem worth it to attempt to glue together a compatible API. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
51 lines
810 B
Protocol Buffer
51 lines
810 B
Protocol Buffer
syntax = "proto3";
|
|
package headscale.v1;
|
|
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message User {
|
|
string id = 1;
|
|
string name = 2;
|
|
google.protobuf.Timestamp created_at = 3;
|
|
}
|
|
|
|
message GetUserRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message GetUserResponse {
|
|
User user = 1;
|
|
}
|
|
|
|
message CreateUserRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message CreateUserResponse {
|
|
User user = 1;
|
|
}
|
|
|
|
message RenameUserRequest {
|
|
string old_name = 1;
|
|
string new_name = 2;
|
|
}
|
|
|
|
message RenameUserResponse {
|
|
User user = 1;
|
|
}
|
|
|
|
message DeleteUserRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message DeleteUserResponse {
|
|
}
|
|
|
|
message ListUsersRequest {
|
|
}
|
|
|
|
message ListUsersResponse {
|
|
repeated User users = 1;
|
|
}
|