2021-10-29 18:43:10 +02:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-08-25 08:12:50 +02:00
// versions:
2024-02-18 23:22:07 +01:00
// - protoc-gen-go-grpc v1.3.0
2022-08-25 08:12:50 +02:00
// - protoc (unknown)
// source: headscale/v1/headscale.proto
2021-10-29 18:43:10 +02:00
package v1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
2024-02-18 23:22:07 +01:00
const (
HeadscaleService_GetUser_FullMethodName = "/headscale.v1.HeadscaleService/GetUser"
HeadscaleService_CreateUser_FullMethodName = "/headscale.v1.HeadscaleService/CreateUser"
HeadscaleService_RenameUser_FullMethodName = "/headscale.v1.HeadscaleService/RenameUser"
HeadscaleService_DeleteUser_FullMethodName = "/headscale.v1.HeadscaleService/DeleteUser"
HeadscaleService_ListUsers_FullMethodName = "/headscale.v1.HeadscaleService/ListUsers"
HeadscaleService_CreatePreAuthKey_FullMethodName = "/headscale.v1.HeadscaleService/CreatePreAuthKey"
HeadscaleService_ExpirePreAuthKey_FullMethodName = "/headscale.v1.HeadscaleService/ExpirePreAuthKey"
HeadscaleService_ListPreAuthKeys_FullMethodName = "/headscale.v1.HeadscaleService/ListPreAuthKeys"
HeadscaleService_DebugCreateNode_FullMethodName = "/headscale.v1.HeadscaleService/DebugCreateNode"
HeadscaleService_GetNode_FullMethodName = "/headscale.v1.HeadscaleService/GetNode"
HeadscaleService_SetTags_FullMethodName = "/headscale.v1.HeadscaleService/SetTags"
HeadscaleService_RegisterNode_FullMethodName = "/headscale.v1.HeadscaleService/RegisterNode"
HeadscaleService_DeleteNode_FullMethodName = "/headscale.v1.HeadscaleService/DeleteNode"
HeadscaleService_ExpireNode_FullMethodName = "/headscale.v1.HeadscaleService/ExpireNode"
HeadscaleService_RenameNode_FullMethodName = "/headscale.v1.HeadscaleService/RenameNode"
HeadscaleService_ListNodes_FullMethodName = "/headscale.v1.HeadscaleService/ListNodes"
HeadscaleService_MoveNode_FullMethodName = "/headscale.v1.HeadscaleService/MoveNode"
2024-04-17 07:03:06 +02:00
HeadscaleService_BackfillNodeIPs_FullMethodName = "/headscale.v1.HeadscaleService/BackfillNodeIPs"
2024-02-18 23:22:07 +01:00
HeadscaleService_GetRoutes_FullMethodName = "/headscale.v1.HeadscaleService/GetRoutes"
HeadscaleService_EnableRoute_FullMethodName = "/headscale.v1.HeadscaleService/EnableRoute"
HeadscaleService_DisableRoute_FullMethodName = "/headscale.v1.HeadscaleService/DisableRoute"
HeadscaleService_GetNodeRoutes_FullMethodName = "/headscale.v1.HeadscaleService/GetNodeRoutes"
HeadscaleService_DeleteRoute_FullMethodName = "/headscale.v1.HeadscaleService/DeleteRoute"
HeadscaleService_CreateApiKey_FullMethodName = "/headscale.v1.HeadscaleService/CreateApiKey"
HeadscaleService_ExpireApiKey_FullMethodName = "/headscale.v1.HeadscaleService/ExpireApiKey"
HeadscaleService_ListApiKeys_FullMethodName = "/headscale.v1.HeadscaleService/ListApiKeys"
HeadscaleService_DeleteApiKey_FullMethodName = "/headscale.v1.HeadscaleService/DeleteApiKey"
)
2021-10-29 18:43:10 +02:00
// HeadscaleServiceClient is the client API for HeadscaleService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type HeadscaleServiceClient interface {
2023-01-17 17:52:03 +01:00
// --- User start ---
GetUser ( ctx context . Context , in * GetUserRequest , opts ... grpc . CallOption ) ( * GetUserResponse , error )
CreateUser ( ctx context . Context , in * CreateUserRequest , opts ... grpc . CallOption ) ( * CreateUserResponse , error )
RenameUser ( ctx context . Context , in * RenameUserRequest , opts ... grpc . CallOption ) ( * RenameUserResponse , error )
DeleteUser ( ctx context . Context , in * DeleteUserRequest , opts ... grpc . CallOption ) ( * DeleteUserResponse , error )
ListUsers ( ctx context . Context , in * ListUsersRequest , opts ... grpc . CallOption ) ( * ListUsersResponse , error )
2021-11-04 23:07:59 +01:00
// --- PreAuthKeys start ---
CreatePreAuthKey ( ctx context . Context , in * CreatePreAuthKeyRequest , opts ... grpc . CallOption ) ( * CreatePreAuthKeyResponse , error )
ExpirePreAuthKey ( ctx context . Context , in * ExpirePreAuthKeyRequest , opts ... grpc . CallOption ) ( * ExpirePreAuthKeyResponse , error )
ListPreAuthKeys ( ctx context . Context , in * ListPreAuthKeysRequest , opts ... grpc . CallOption ) ( * ListPreAuthKeysResponse , error )
2023-09-24 13:42:05 +02:00
// --- Node start ---
DebugCreateNode ( ctx context . Context , in * DebugCreateNodeRequest , opts ... grpc . CallOption ) ( * DebugCreateNodeResponse , error )
GetNode ( ctx context . Context , in * GetNodeRequest , opts ... grpc . CallOption ) ( * GetNodeResponse , error )
2022-04-25 20:45:33 +02:00
SetTags ( ctx context . Context , in * SetTagsRequest , opts ... grpc . CallOption ) ( * SetTagsResponse , error )
2023-09-24 13:42:05 +02:00
RegisterNode ( ctx context . Context , in * RegisterNodeRequest , opts ... grpc . CallOption ) ( * RegisterNodeResponse , error )
DeleteNode ( ctx context . Context , in * DeleteNodeRequest , opts ... grpc . CallOption ) ( * DeleteNodeResponse , error )
ExpireNode ( ctx context . Context , in * ExpireNodeRequest , opts ... grpc . CallOption ) ( * ExpireNodeResponse , error )
RenameNode ( ctx context . Context , in * RenameNodeRequest , opts ... grpc . CallOption ) ( * RenameNodeResponse , error )
ListNodes ( ctx context . Context , in * ListNodesRequest , opts ... grpc . CallOption ) ( * ListNodesResponse , error )
MoveNode ( ctx context . Context , in * MoveNodeRequest , opts ... grpc . CallOption ) ( * MoveNodeResponse , error )
2024-04-17 07:03:06 +02:00
BackfillNodeIPs ( ctx context . Context , in * BackfillNodeIPsRequest , opts ... grpc . CallOption ) ( * BackfillNodeIPsResponse , error )
2021-11-04 23:07:59 +01:00
// --- Route start ---
2022-11-26 01:03:01 +01:00
GetRoutes ( ctx context . Context , in * GetRoutesRequest , opts ... grpc . CallOption ) ( * GetRoutesResponse , error )
EnableRoute ( ctx context . Context , in * EnableRouteRequest , opts ... grpc . CallOption ) ( * EnableRouteResponse , error )
DisableRoute ( ctx context . Context , in * DisableRouteRequest , opts ... grpc . CallOption ) ( * DisableRouteResponse , error )
2023-09-24 13:42:05 +02:00
GetNodeRoutes ( ctx context . Context , in * GetNodeRoutesRequest , opts ... grpc . CallOption ) ( * GetNodeRoutesResponse , error )
2023-03-06 09:05:40 +01:00
DeleteRoute ( ctx context . Context , in * DeleteRouteRequest , opts ... grpc . CallOption ) ( * DeleteRouteResponse , error )
2022-01-25 23:11:15 +01:00
// --- ApiKeys start ---
CreateApiKey ( ctx context . Context , in * CreateApiKeyRequest , opts ... grpc . CallOption ) ( * CreateApiKeyResponse , error )
ExpireApiKey ( ctx context . Context , in * ExpireApiKeyRequest , opts ... grpc . CallOption ) ( * ExpireApiKeyResponse , error )
ListApiKeys ( ctx context . Context , in * ListApiKeysRequest , opts ... grpc . CallOption ) ( * ListApiKeysResponse , error )
2024-02-12 11:31:21 +01:00
DeleteApiKey ( ctx context . Context , in * DeleteApiKeyRequest , opts ... grpc . CallOption ) ( * DeleteApiKeyResponse , error )
2021-10-29 18:43:10 +02:00
}
type headscaleServiceClient struct {
cc grpc . ClientConnInterface
}
func NewHeadscaleServiceClient ( cc grpc . ClientConnInterface ) HeadscaleServiceClient {
return & headscaleServiceClient { cc }
}
2023-01-17 17:52:03 +01:00
func ( c * headscaleServiceClient ) GetUser ( ctx context . Context , in * GetUserRequest , opts ... grpc . CallOption ) ( * GetUserResponse , error ) {
out := new ( GetUserResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_GetUser_FullMethodName , in , out , opts ... )
2021-10-29 18:43:10 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-17 17:52:03 +01:00
func ( c * headscaleServiceClient ) CreateUser ( ctx context . Context , in * CreateUserRequest , opts ... grpc . CallOption ) ( * CreateUserResponse , error ) {
out := new ( CreateUserResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_CreateUser_FullMethodName , in , out , opts ... )
2021-10-29 18:43:10 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-17 17:52:03 +01:00
func ( c * headscaleServiceClient ) RenameUser ( ctx context . Context , in * RenameUserRequest , opts ... grpc . CallOption ) ( * RenameUserResponse , error ) {
out := new ( RenameUserResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_RenameUser_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-17 17:52:03 +01:00
func ( c * headscaleServiceClient ) DeleteUser ( ctx context . Context , in * DeleteUserRequest , opts ... grpc . CallOption ) ( * DeleteUserResponse , error ) {
out := new ( DeleteUserResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DeleteUser_FullMethodName , in , out , opts ... )
2021-10-29 18:43:10 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-17 17:52:03 +01:00
func ( c * headscaleServiceClient ) ListUsers ( ctx context . Context , in * ListUsersRequest , opts ... grpc . CallOption ) ( * ListUsersResponse , error ) {
out := new ( ListUsersResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ListUsers_FullMethodName , in , out , opts ... )
2021-10-29 18:43:10 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2021-11-04 23:07:59 +01:00
func ( c * headscaleServiceClient ) CreatePreAuthKey ( ctx context . Context , in * CreatePreAuthKeyRequest , opts ... grpc . CallOption ) ( * CreatePreAuthKeyResponse , error ) {
out := new ( CreatePreAuthKeyResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_CreatePreAuthKey_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) ExpirePreAuthKey ( ctx context . Context , in * ExpirePreAuthKeyRequest , opts ... grpc . CallOption ) ( * ExpirePreAuthKeyResponse , error ) {
out := new ( ExpirePreAuthKeyResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ExpirePreAuthKey_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) ListPreAuthKeys ( ctx context . Context , in * ListPreAuthKeysRequest , opts ... grpc . CallOption ) ( * ListPreAuthKeysResponse , error ) {
out := new ( ListPreAuthKeysResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ListPreAuthKeys_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) DebugCreateNode ( ctx context . Context , in * DebugCreateNodeRequest , opts ... grpc . CallOption ) ( * DebugCreateNodeResponse , error ) {
out := new ( DebugCreateNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DebugCreateNode_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) GetNode ( ctx context . Context , in * GetNodeRequest , opts ... grpc . CallOption ) ( * GetNodeResponse , error ) {
out := new ( GetNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_GetNode_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2022-04-25 20:45:33 +02:00
func ( c * headscaleServiceClient ) SetTags ( ctx context . Context , in * SetTagsRequest , opts ... grpc . CallOption ) ( * SetTagsResponse , error ) {
out := new ( SetTagsResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_SetTags_FullMethodName , in , out , opts ... )
2022-04-15 13:11:41 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) RegisterNode ( ctx context . Context , in * RegisterNodeRequest , opts ... grpc . CallOption ) ( * RegisterNodeResponse , error ) {
out := new ( RegisterNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_RegisterNode_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) DeleteNode ( ctx context . Context , in * DeleteNodeRequest , opts ... grpc . CallOption ) ( * DeleteNodeResponse , error ) {
out := new ( DeleteNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DeleteNode_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) ExpireNode ( ctx context . Context , in * ExpireNodeRequest , opts ... grpc . CallOption ) ( * ExpireNodeResponse , error ) {
out := new ( ExpireNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ExpireNode_FullMethodName , in , out , opts ... )
2021-11-21 14:40:04 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) RenameNode ( ctx context . Context , in * RenameNodeRequest , opts ... grpc . CallOption ) ( * RenameNodeResponse , error ) {
out := new ( RenameNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_RenameNode_FullMethodName , in , out , opts ... )
2022-03-13 22:03:20 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) ListNodes ( ctx context . Context , in * ListNodesRequest , opts ... grpc . CallOption ) ( * ListNodesResponse , error ) {
out := new ( ListNodesResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ListNodes_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) MoveNode ( ctx context . Context , in * MoveNodeRequest , opts ... grpc . CallOption ) ( * MoveNodeResponse , error ) {
out := new ( MoveNodeResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_MoveNode_FullMethodName , in , out , opts ... )
2022-05-01 15:34:40 +02:00
if err != nil {
return nil , err
}
return out , nil
}
2024-04-17 07:03:06 +02:00
func ( c * headscaleServiceClient ) BackfillNodeIPs ( ctx context . Context , in * BackfillNodeIPsRequest , opts ... grpc . CallOption ) ( * BackfillNodeIPsResponse , error ) {
out := new ( BackfillNodeIPsResponse )
err := c . cc . Invoke ( ctx , HeadscaleService_BackfillNodeIPs_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-11-26 01:03:01 +01:00
func ( c * headscaleServiceClient ) GetRoutes ( ctx context . Context , in * GetRoutesRequest , opts ... grpc . CallOption ) ( * GetRoutesResponse , error ) {
out := new ( GetRoutesResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_GetRoutes_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2022-11-26 01:03:01 +01:00
func ( c * headscaleServiceClient ) EnableRoute ( ctx context . Context , in * EnableRouteRequest , opts ... grpc . CallOption ) ( * EnableRouteResponse , error ) {
out := new ( EnableRouteResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_EnableRoute_FullMethodName , in , out , opts ... )
2022-11-26 01:03:01 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) DisableRoute ( ctx context . Context , in * DisableRouteRequest , opts ... grpc . CallOption ) ( * DisableRouteResponse , error ) {
out := new ( DisableRouteResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DisableRoute_FullMethodName , in , out , opts ... )
2022-11-26 01:03:01 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-09-24 13:42:05 +02:00
func ( c * headscaleServiceClient ) GetNodeRoutes ( ctx context . Context , in * GetNodeRoutesRequest , opts ... grpc . CallOption ) ( * GetNodeRoutesResponse , error ) {
out := new ( GetNodeRoutesResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_GetNodeRoutes_FullMethodName , in , out , opts ... )
2021-11-04 23:07:59 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2023-03-06 09:05:40 +01:00
func ( c * headscaleServiceClient ) DeleteRoute ( ctx context . Context , in * DeleteRouteRequest , opts ... grpc . CallOption ) ( * DeleteRouteResponse , error ) {
out := new ( DeleteRouteResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DeleteRoute_FullMethodName , in , out , opts ... )
2023-03-06 09:05:40 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2022-01-25 23:11:15 +01:00
func ( c * headscaleServiceClient ) CreateApiKey ( ctx context . Context , in * CreateApiKeyRequest , opts ... grpc . CallOption ) ( * CreateApiKeyResponse , error ) {
out := new ( CreateApiKeyResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_CreateApiKey_FullMethodName , in , out , opts ... )
2022-01-25 23:11:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) ExpireApiKey ( ctx context . Context , in * ExpireApiKeyRequest , opts ... grpc . CallOption ) ( * ExpireApiKeyResponse , error ) {
out := new ( ExpireApiKeyResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ExpireApiKey_FullMethodName , in , out , opts ... )
2022-01-25 23:11:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) ListApiKeys ( ctx context . Context , in * ListApiKeysRequest , opts ... grpc . CallOption ) ( * ListApiKeysResponse , error ) {
out := new ( ListApiKeysResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_ListApiKeys_FullMethodName , in , out , opts ... )
2024-02-12 11:31:21 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * headscaleServiceClient ) DeleteApiKey ( ctx context . Context , in * DeleteApiKeyRequest , opts ... grpc . CallOption ) ( * DeleteApiKeyResponse , error ) {
out := new ( DeleteApiKeyResponse )
2024-02-18 23:22:07 +01:00
err := c . cc . Invoke ( ctx , HeadscaleService_DeleteApiKey_FullMethodName , in , out , opts ... )
2022-01-25 23:11:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
2021-10-29 18:43:10 +02:00
// HeadscaleServiceServer is the server API for HeadscaleService service.
// All implementations must embed UnimplementedHeadscaleServiceServer
// for forward compatibility
type HeadscaleServiceServer interface {
2023-01-17 17:52:03 +01:00
// --- User start ---
GetUser ( context . Context , * GetUserRequest ) ( * GetUserResponse , error )
CreateUser ( context . Context , * CreateUserRequest ) ( * CreateUserResponse , error )
RenameUser ( context . Context , * RenameUserRequest ) ( * RenameUserResponse , error )
DeleteUser ( context . Context , * DeleteUserRequest ) ( * DeleteUserResponse , error )
ListUsers ( context . Context , * ListUsersRequest ) ( * ListUsersResponse , error )
2021-11-04 23:07:59 +01:00
// --- PreAuthKeys start ---
CreatePreAuthKey ( context . Context , * CreatePreAuthKeyRequest ) ( * CreatePreAuthKeyResponse , error )
ExpirePreAuthKey ( context . Context , * ExpirePreAuthKeyRequest ) ( * ExpirePreAuthKeyResponse , error )
ListPreAuthKeys ( context . Context , * ListPreAuthKeysRequest ) ( * ListPreAuthKeysResponse , error )
2023-09-24 13:42:05 +02:00
// --- Node start ---
DebugCreateNode ( context . Context , * DebugCreateNodeRequest ) ( * DebugCreateNodeResponse , error )
GetNode ( context . Context , * GetNodeRequest ) ( * GetNodeResponse , error )
2022-04-25 20:45:33 +02:00
SetTags ( context . Context , * SetTagsRequest ) ( * SetTagsResponse , error )
2023-09-24 13:42:05 +02:00
RegisterNode ( context . Context , * RegisterNodeRequest ) ( * RegisterNodeResponse , error )
DeleteNode ( context . Context , * DeleteNodeRequest ) ( * DeleteNodeResponse , error )
ExpireNode ( context . Context , * ExpireNodeRequest ) ( * ExpireNodeResponse , error )
RenameNode ( context . Context , * RenameNodeRequest ) ( * RenameNodeResponse , error )
ListNodes ( context . Context , * ListNodesRequest ) ( * ListNodesResponse , error )
MoveNode ( context . Context , * MoveNodeRequest ) ( * MoveNodeResponse , error )
2024-04-17 07:03:06 +02:00
BackfillNodeIPs ( context . Context , * BackfillNodeIPsRequest ) ( * BackfillNodeIPsResponse , error )
2021-11-04 23:07:59 +01:00
// --- Route start ---
2022-11-26 01:03:01 +01:00
GetRoutes ( context . Context , * GetRoutesRequest ) ( * GetRoutesResponse , error )
EnableRoute ( context . Context , * EnableRouteRequest ) ( * EnableRouteResponse , error )
DisableRoute ( context . Context , * DisableRouteRequest ) ( * DisableRouteResponse , error )
2023-09-24 13:42:05 +02:00
GetNodeRoutes ( context . Context , * GetNodeRoutesRequest ) ( * GetNodeRoutesResponse , error )
2023-03-06 09:05:40 +01:00
DeleteRoute ( context . Context , * DeleteRouteRequest ) ( * DeleteRouteResponse , error )
2022-01-25 23:11:15 +01:00
// --- ApiKeys start ---
CreateApiKey ( context . Context , * CreateApiKeyRequest ) ( * CreateApiKeyResponse , error )
ExpireApiKey ( context . Context , * ExpireApiKeyRequest ) ( * ExpireApiKeyResponse , error )
ListApiKeys ( context . Context , * ListApiKeysRequest ) ( * ListApiKeysResponse , error )
2024-02-12 11:31:21 +01:00
DeleteApiKey ( context . Context , * DeleteApiKeyRequest ) ( * DeleteApiKeyResponse , error )
2021-10-29 18:43:10 +02:00
mustEmbedUnimplementedHeadscaleServiceServer ( )
}
// UnimplementedHeadscaleServiceServer must be embedded to have forward compatible implementations.
2023-03-06 09:05:40 +01:00
type UnimplementedHeadscaleServiceServer struct {
}
2021-10-29 18:43:10 +02:00
2023-01-17 17:52:03 +01:00
func ( UnimplementedHeadscaleServiceServer ) GetUser ( context . Context , * GetUserRequest ) ( * GetUserResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUser not implemented" )
2021-10-29 18:43:10 +02:00
}
2023-01-17 17:52:03 +01:00
func ( UnimplementedHeadscaleServiceServer ) CreateUser ( context . Context , * CreateUserRequest ) ( * CreateUserResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateUser not implemented" )
2021-10-29 18:43:10 +02:00
}
2023-01-17 17:52:03 +01:00
func ( UnimplementedHeadscaleServiceServer ) RenameUser ( context . Context , * RenameUserRequest ) ( * RenameUserResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RenameUser not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-01-17 17:52:03 +01:00
func ( UnimplementedHeadscaleServiceServer ) DeleteUser ( context . Context , * DeleteUserRequest ) ( * DeleteUserResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteUser not implemented" )
2021-10-29 18:43:10 +02:00
}
2023-01-17 17:52:03 +01:00
func ( UnimplementedHeadscaleServiceServer ) ListUsers ( context . Context , * ListUsersRequest ) ( * ListUsersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListUsers not implemented" )
2021-10-29 18:43:10 +02:00
}
2021-11-04 23:07:59 +01:00
func ( UnimplementedHeadscaleServiceServer ) CreatePreAuthKey ( context . Context , * CreatePreAuthKeyRequest ) ( * CreatePreAuthKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreatePreAuthKey not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) ExpirePreAuthKey ( context . Context , * ExpirePreAuthKeyRequest ) ( * ExpirePreAuthKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ExpirePreAuthKey not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) ListPreAuthKeys ( context . Context , * ListPreAuthKeysRequest ) ( * ListPreAuthKeysResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListPreAuthKeys not implemented" )
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) DebugCreateNode ( context . Context , * DebugCreateNodeRequest ) ( * DebugCreateNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DebugCreateNode not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) GetNode ( context . Context , * GetNodeRequest ) ( * GetNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetNode not implemented" )
2021-11-04 23:07:59 +01:00
}
2022-04-25 20:45:33 +02:00
func ( UnimplementedHeadscaleServiceServer ) SetTags ( context . Context , * SetTagsRequest ) ( * SetTagsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetTags not implemented" )
2022-04-15 13:11:41 +02:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) RegisterNode ( context . Context , * RegisterNodeRequest ) ( * RegisterNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RegisterNode not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) DeleteNode ( context . Context , * DeleteNodeRequest ) ( * DeleteNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteNode not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) ExpireNode ( context . Context , * ExpireNodeRequest ) ( * ExpireNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ExpireNode not implemented" )
2021-11-21 14:40:04 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) RenameNode ( context . Context , * RenameNodeRequest ) ( * RenameNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RenameNode not implemented" )
2022-03-13 22:03:20 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) ListNodes ( context . Context , * ListNodesRequest ) ( * ListNodesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListNodes not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) MoveNode ( context . Context , * MoveNodeRequest ) ( * MoveNodeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method MoveNode not implemented" )
2022-05-01 15:34:40 +02:00
}
2024-04-17 07:03:06 +02:00
func ( UnimplementedHeadscaleServiceServer ) BackfillNodeIPs ( context . Context , * BackfillNodeIPsRequest ) ( * BackfillNodeIPsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BackfillNodeIPs not implemented" )
}
2022-11-26 01:03:01 +01:00
func ( UnimplementedHeadscaleServiceServer ) GetRoutes ( context . Context , * GetRoutesRequest ) ( * GetRoutesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetRoutes not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) EnableRoute ( context . Context , * EnableRouteRequest ) ( * EnableRouteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EnableRoute not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) DisableRoute ( context . Context , * DisableRouteRequest ) ( * DisableRouteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DisableRoute not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-09-24 13:42:05 +02:00
func ( UnimplementedHeadscaleServiceServer ) GetNodeRoutes ( context . Context , * GetNodeRoutesRequest ) ( * GetNodeRoutesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetNodeRoutes not implemented" )
2021-11-04 23:07:59 +01:00
}
2023-03-06 09:05:40 +01:00
func ( UnimplementedHeadscaleServiceServer ) DeleteRoute ( context . Context , * DeleteRouteRequest ) ( * DeleteRouteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteRoute not implemented" )
}
2022-01-25 23:11:15 +01:00
func ( UnimplementedHeadscaleServiceServer ) CreateApiKey ( context . Context , * CreateApiKeyRequest ) ( * CreateApiKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateApiKey not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) ExpireApiKey ( context . Context , * ExpireApiKeyRequest ) ( * ExpireApiKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ExpireApiKey not implemented" )
}
func ( UnimplementedHeadscaleServiceServer ) ListApiKeys ( context . Context , * ListApiKeysRequest ) ( * ListApiKeysResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListApiKeys not implemented" )
}
2024-02-12 11:31:21 +01:00
func ( UnimplementedHeadscaleServiceServer ) DeleteApiKey ( context . Context , * DeleteApiKeyRequest ) ( * DeleteApiKeyResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteApiKey not implemented" )
}
2021-10-29 18:43:10 +02:00
func ( UnimplementedHeadscaleServiceServer ) mustEmbedUnimplementedHeadscaleServiceServer ( ) { }
// UnsafeHeadscaleServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HeadscaleServiceServer will
// result in compilation errors.
type UnsafeHeadscaleServiceServer interface {
mustEmbedUnimplementedHeadscaleServiceServer ( )
}
func RegisterHeadscaleServiceServer ( s grpc . ServiceRegistrar , srv HeadscaleServiceServer ) {
s . RegisterService ( & HeadscaleService_ServiceDesc , srv )
}
2023-01-17 17:52:03 +01:00
func _HeadscaleService_GetUser_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetUserRequest )
2021-10-29 18:43:10 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . GetUser ( ctx , in )
2021-10-29 18:43:10 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_GetUser_FullMethodName ,
2021-10-29 18:43:10 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . GetUser ( ctx , req . ( * GetUserRequest ) )
2021-10-29 18:43:10 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2023-01-17 17:52:03 +01:00
func _HeadscaleService_CreateUser_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateUserRequest )
2021-10-29 18:43:10 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . CreateUser ( ctx , in )
2021-10-29 18:43:10 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_CreateUser_FullMethodName ,
2021-10-29 18:43:10 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . CreateUser ( ctx , req . ( * CreateUserRequest ) )
2021-10-29 18:43:10 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2023-01-17 17:52:03 +01:00
func _HeadscaleService_RenameUser_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RenameUserRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . RenameUser ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_RenameUser_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . RenameUser ( ctx , req . ( * RenameUserRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-01-17 17:52:03 +01:00
func _HeadscaleService_DeleteUser_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteUserRequest )
2021-10-29 18:43:10 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . DeleteUser ( ctx , in )
2021-10-29 18:43:10 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DeleteUser_FullMethodName ,
2021-10-29 18:43:10 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . DeleteUser ( ctx , req . ( * DeleteUserRequest ) )
2021-10-29 18:43:10 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2023-01-17 17:52:03 +01:00
func _HeadscaleService_ListUsers_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListUsersRequest )
2021-10-29 18:43:10 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . ListUsers ( ctx , in )
2021-10-29 18:43:10 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ListUsers_FullMethodName ,
2021-10-29 18:43:10 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-01-17 17:52:03 +01:00
return srv . ( HeadscaleServiceServer ) . ListUsers ( ctx , req . ( * ListUsersRequest ) )
2021-10-29 18:43:10 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2021-11-04 23:07:59 +01:00
func _HeadscaleService_CreatePreAuthKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreatePreAuthKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . CreatePreAuthKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_CreatePreAuthKey_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . CreatePreAuthKey ( ctx , req . ( * CreatePreAuthKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_ExpirePreAuthKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ExpirePreAuthKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . ExpirePreAuthKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ExpirePreAuthKey_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . ExpirePreAuthKey ( ctx , req . ( * ExpirePreAuthKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_ListPreAuthKeys_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListPreAuthKeysRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . ListPreAuthKeys ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ListPreAuthKeys_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . ListPreAuthKeys ( ctx , req . ( * ListPreAuthKeysRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_DebugCreateNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DebugCreateNodeRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . DebugCreateNode ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DebugCreateNode_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . DebugCreateNode ( ctx , req . ( * DebugCreateNodeRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_GetNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetNodeRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . GetNode ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_GetNode_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . GetNode ( ctx , req . ( * GetNodeRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2022-04-25 20:45:33 +02:00
func _HeadscaleService_SetTags_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetTagsRequest )
2022-04-15 13:11:41 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2022-04-25 20:45:33 +02:00
return srv . ( HeadscaleServiceServer ) . SetTags ( ctx , in )
2022-04-15 13:11:41 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_SetTags_FullMethodName ,
2022-04-15 13:11:41 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2022-04-25 20:45:33 +02:00
return srv . ( HeadscaleServiceServer ) . SetTags ( ctx , req . ( * SetTagsRequest ) )
2022-04-15 13:11:41 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_RegisterNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RegisterNodeRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . RegisterNode ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_RegisterNode_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . RegisterNode ( ctx , req . ( * RegisterNodeRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_DeleteNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteNodeRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . DeleteNode ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DeleteNode_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . DeleteNode ( ctx , req . ( * DeleteNodeRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_ExpireNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ExpireNodeRequest )
2021-11-21 14:40:04 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . ExpireNode ( ctx , in )
2021-11-21 14:40:04 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ExpireNode_FullMethodName ,
2021-11-21 14:40:04 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . ExpireNode ( ctx , req . ( * ExpireNodeRequest ) )
2021-11-21 14:40:04 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_RenameNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RenameNodeRequest )
2022-03-13 22:03:20 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . RenameNode ( ctx , in )
2022-03-13 22:03:20 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_RenameNode_FullMethodName ,
2022-03-13 22:03:20 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . RenameNode ( ctx , req . ( * RenameNodeRequest ) )
2022-03-13 22:03:20 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_ListNodes_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListNodesRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . ListNodes ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ListNodes_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . ListNodes ( ctx , req . ( * ListNodesRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_MoveNode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( MoveNodeRequest )
2022-05-01 15:34:40 +02:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . MoveNode ( ctx , in )
2022-05-01 15:34:40 +02:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_MoveNode_FullMethodName ,
2022-05-01 15:34:40 +02:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . MoveNode ( ctx , req . ( * MoveNodeRequest ) )
2022-05-01 15:34:40 +02:00
}
return interceptor ( ctx , in , info , handler )
}
2024-04-17 07:03:06 +02:00
func _HeadscaleService_BackfillNodeIPs_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BackfillNodeIPsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . BackfillNodeIPs ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HeadscaleService_BackfillNodeIPs_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . BackfillNodeIPs ( ctx , req . ( * BackfillNodeIPsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-11-26 01:03:01 +01:00
func _HeadscaleService_GetRoutes_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetRoutesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . GetRoutes ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_GetRoutes_FullMethodName ,
2022-11-26 01:03:01 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . GetRoutes ( ctx , req . ( * GetRoutesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_EnableRoute_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EnableRouteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . EnableRoute ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_EnableRoute_FullMethodName ,
2022-11-26 01:03:01 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . EnableRoute ( ctx , req . ( * EnableRouteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_DisableRoute_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DisableRouteRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2022-11-26 01:03:01 +01:00
return srv . ( HeadscaleServiceServer ) . DisableRoute ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DisableRoute_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2022-11-26 01:03:01 +01:00
return srv . ( HeadscaleServiceServer ) . DisableRoute ( ctx , req . ( * DisableRouteRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-09-24 13:42:05 +02:00
func _HeadscaleService_GetNodeRoutes_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetNodeRoutesRequest )
2021-11-04 23:07:59 +01:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . GetNodeRoutes ( ctx , in )
2021-11-04 23:07:59 +01:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_GetNodeRoutes_FullMethodName ,
2021-11-04 23:07:59 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-09-24 13:42:05 +02:00
return srv . ( HeadscaleServiceServer ) . GetNodeRoutes ( ctx , req . ( * GetNodeRoutesRequest ) )
2021-11-04 23:07:59 +01:00
}
return interceptor ( ctx , in , info , handler )
}
2023-03-06 09:05:40 +01:00
func _HeadscaleService_DeleteRoute_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteRouteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . DeleteRoute ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DeleteRoute_FullMethodName ,
2023-03-06 09:05:40 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . DeleteRoute ( ctx , req . ( * DeleteRouteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-01-25 23:11:15 +01:00
func _HeadscaleService_CreateApiKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateApiKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . CreateApiKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_CreateApiKey_FullMethodName ,
2022-01-25 23:11:15 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . CreateApiKey ( ctx , req . ( * CreateApiKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_ExpireApiKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ExpireApiKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . ExpireApiKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ExpireApiKey_FullMethodName ,
2022-01-25 23:11:15 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . ExpireApiKey ( ctx , req . ( * ExpireApiKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HeadscaleService_ListApiKeys_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListApiKeysRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . ListApiKeys ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_ListApiKeys_FullMethodName ,
2022-01-25 23:11:15 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . ListApiKeys ( ctx , req . ( * ListApiKeysRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-02-12 11:31:21 +01:00
func _HeadscaleService_DeleteApiKey_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteApiKeyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HeadscaleServiceServer ) . DeleteApiKey ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-18 23:22:07 +01:00
FullMethod : HeadscaleService_DeleteApiKey_FullMethodName ,
2024-02-12 11:31:21 +01:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HeadscaleServiceServer ) . DeleteApiKey ( ctx , req . ( * DeleteApiKeyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-10-29 18:43:10 +02:00
// HeadscaleService_ServiceDesc is the grpc.ServiceDesc for HeadscaleService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var HeadscaleService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "headscale.v1.HeadscaleService" ,
HandlerType : ( * HeadscaleServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
2023-01-17 17:52:03 +01:00
MethodName : "GetUser" ,
Handler : _HeadscaleService_GetUser_Handler ,
2021-10-29 18:43:10 +02:00
} ,
{
2023-01-17 17:52:03 +01:00
MethodName : "CreateUser" ,
Handler : _HeadscaleService_CreateUser_Handler ,
2021-10-29 18:43:10 +02:00
} ,
2021-11-04 23:07:59 +01:00
{
2023-01-17 17:52:03 +01:00
MethodName : "RenameUser" ,
Handler : _HeadscaleService_RenameUser_Handler ,
2021-11-04 23:07:59 +01:00
} ,
2021-10-29 18:43:10 +02:00
{
2023-01-17 17:52:03 +01:00
MethodName : "DeleteUser" ,
Handler : _HeadscaleService_DeleteUser_Handler ,
2021-10-29 18:43:10 +02:00
} ,
{
2023-01-17 17:52:03 +01:00
MethodName : "ListUsers" ,
Handler : _HeadscaleService_ListUsers_Handler ,
2021-10-29 18:43:10 +02:00
} ,
2021-11-04 23:07:59 +01:00
{
MethodName : "CreatePreAuthKey" ,
Handler : _HeadscaleService_CreatePreAuthKey_Handler ,
} ,
{
MethodName : "ExpirePreAuthKey" ,
Handler : _HeadscaleService_ExpirePreAuthKey_Handler ,
} ,
{
MethodName : "ListPreAuthKeys" ,
Handler : _HeadscaleService_ListPreAuthKeys_Handler ,
} ,
{
2023-09-24 13:42:05 +02:00
MethodName : "DebugCreateNode" ,
Handler : _HeadscaleService_DebugCreateNode_Handler ,
2021-11-04 23:07:59 +01:00
} ,
{
2023-09-24 13:42:05 +02:00
MethodName : "GetNode" ,
Handler : _HeadscaleService_GetNode_Handler ,
2021-11-04 23:07:59 +01:00
} ,
2022-04-15 13:11:41 +02:00
{
2022-04-25 20:45:33 +02:00
MethodName : "SetTags" ,
Handler : _HeadscaleService_SetTags_Handler ,
2022-04-15 13:11:41 +02:00
} ,
2021-11-04 23:07:59 +01:00
{
2023-09-24 13:42:05 +02:00
MethodName : "RegisterNode" ,
Handler : _HeadscaleService_RegisterNode_Handler ,
2021-11-04 23:07:59 +01:00
} ,
{
2023-09-24 13:42:05 +02:00
MethodName : "DeleteNode" ,
Handler : _HeadscaleService_DeleteNode_Handler ,
2021-11-04 23:07:59 +01:00
} ,
2021-11-21 14:40:04 +01:00
{
2023-09-24 13:42:05 +02:00
MethodName : "ExpireNode" ,
Handler : _HeadscaleService_ExpireNode_Handler ,
2021-11-21 14:40:04 +01:00
} ,
2022-03-13 22:03:20 +01:00
{
2023-09-24 13:42:05 +02:00
MethodName : "RenameNode" ,
Handler : _HeadscaleService_RenameNode_Handler ,
2022-03-13 22:03:20 +01:00
} ,
2021-11-04 23:07:59 +01:00
{
2023-09-24 13:42:05 +02:00
MethodName : "ListNodes" ,
Handler : _HeadscaleService_ListNodes_Handler ,
2021-11-04 23:07:59 +01:00
} ,
2022-05-01 15:34:40 +02:00
{
2023-09-24 13:42:05 +02:00
MethodName : "MoveNode" ,
Handler : _HeadscaleService_MoveNode_Handler ,
2022-05-01 15:34:40 +02:00
} ,
2024-04-17 07:03:06 +02:00
{
MethodName : "BackfillNodeIPs" ,
Handler : _HeadscaleService_BackfillNodeIPs_Handler ,
} ,
2021-11-04 23:07:59 +01:00
{
2022-11-26 01:03:01 +01:00
MethodName : "GetRoutes" ,
Handler : _HeadscaleService_GetRoutes_Handler ,
} ,
{
MethodName : "EnableRoute" ,
Handler : _HeadscaleService_EnableRoute_Handler ,
} ,
{
MethodName : "DisableRoute" ,
Handler : _HeadscaleService_DisableRoute_Handler ,
2021-11-04 23:07:59 +01:00
} ,
{
2023-09-24 13:42:05 +02:00
MethodName : "GetNodeRoutes" ,
Handler : _HeadscaleService_GetNodeRoutes_Handler ,
2021-11-04 23:07:59 +01:00
} ,
2023-03-06 09:05:40 +01:00
{
MethodName : "DeleteRoute" ,
Handler : _HeadscaleService_DeleteRoute_Handler ,
} ,
2022-01-25 23:11:15 +01:00
{
MethodName : "CreateApiKey" ,
Handler : _HeadscaleService_CreateApiKey_Handler ,
} ,
{
MethodName : "ExpireApiKey" ,
Handler : _HeadscaleService_ExpireApiKey_Handler ,
} ,
{
MethodName : "ListApiKeys" ,
Handler : _HeadscaleService_ListApiKeys_Handler ,
} ,
2024-02-12 11:31:21 +01:00
{
MethodName : "DeleteApiKey" ,
Handler : _HeadscaleService_DeleteApiKey_Handler ,
} ,
2021-10-29 18:43:10 +02:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
2021-10-30 16:29:41 +02:00
Metadata : "headscale/v1/headscale.proto" ,
2021-10-29 18:43:10 +02:00
}