@@ -43,6 +43,7 @@ const (
4343 StartedService_StartSTUNTest_FullMethodName = "/daemon.StartedService/StartSTUNTest"
4444 StartedService_SubscribeTailscaleStatus_FullMethodName = "/daemon.StartedService/SubscribeTailscaleStatus"
4545 StartedService_StartTailscalePing_FullMethodName = "/daemon.StartedService/StartTailscalePing"
46+ StartedService_SetTailscaleExitNode_FullMethodName = "/daemon.StartedService/SetTailscaleExitNode"
4647)
4748
4849// StartedServiceClient is the client API for StartedService service.
@@ -77,6 +78,7 @@ type StartedServiceClient interface {
7778 StartSTUNTest (ctx context.Context , in * STUNTestRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [STUNTestProgress ], error )
7879 SubscribeTailscaleStatus (ctx context.Context , in * emptypb.Empty , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [TailscaleStatusUpdate ], error )
7980 StartTailscalePing (ctx context.Context , in * TailscalePingRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [TailscalePingResponse ], error )
81+ SetTailscaleExitNode (ctx context.Context , in * SetTailscaleExitNodeRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error )
8082}
8183
8284type startedServiceClient struct {
@@ -466,6 +468,16 @@ func (c *startedServiceClient) StartTailscalePing(ctx context.Context, in *Tails
466468// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
467469type StartedService_StartTailscalePingClient = grpc.ServerStreamingClient [TailscalePingResponse ]
468470
471+ func (c * startedServiceClient ) SetTailscaleExitNode (ctx context.Context , in * SetTailscaleExitNodeRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error ) {
472+ cOpts := append ([]grpc.CallOption {grpc .StaticMethod ()}, opts ... )
473+ out := new (emptypb.Empty )
474+ err := c .cc .Invoke (ctx , StartedService_SetTailscaleExitNode_FullMethodName , in , out , cOpts ... )
475+ if err != nil {
476+ return nil , err
477+ }
478+ return out , nil
479+ }
480+
469481// StartedServiceServer is the server API for StartedService service.
470482// All implementations must embed UnimplementedStartedServiceServer
471483// for forward compatibility.
@@ -498,6 +510,7 @@ type StartedServiceServer interface {
498510 StartSTUNTest (* STUNTestRequest , grpc.ServerStreamingServer [STUNTestProgress ]) error
499511 SubscribeTailscaleStatus (* emptypb.Empty , grpc.ServerStreamingServer [TailscaleStatusUpdate ]) error
500512 StartTailscalePing (* TailscalePingRequest , grpc.ServerStreamingServer [TailscalePingResponse ]) error
513+ SetTailscaleExitNode (context.Context , * SetTailscaleExitNodeRequest ) (* emptypb.Empty , error )
501514 mustEmbedUnimplementedStartedServiceServer ()
502515}
503516
@@ -619,6 +632,10 @@ func (UnimplementedStartedServiceServer) SubscribeTailscaleStatus(*emptypb.Empty
619632func (UnimplementedStartedServiceServer ) StartTailscalePing (* TailscalePingRequest , grpc.ServerStreamingServer [TailscalePingResponse ]) error {
620633 return status .Error (codes .Unimplemented , "method StartTailscalePing not implemented" )
621634}
635+
636+ func (UnimplementedStartedServiceServer ) SetTailscaleExitNode (context.Context , * SetTailscaleExitNodeRequest ) (* emptypb.Empty , error ) {
637+ return nil , status .Error (codes .Unimplemented , "method SetTailscaleExitNode not implemented" )
638+ }
622639func (UnimplementedStartedServiceServer ) mustEmbedUnimplementedStartedServiceServer () {}
623640func (UnimplementedStartedServiceServer ) testEmbeddedByValue () {}
624641
@@ -1067,6 +1084,24 @@ func _StartedService_StartTailscalePing_Handler(srv interface{}, stream grpc.Ser
10671084// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
10681085type StartedService_StartTailscalePingServer = grpc.ServerStreamingServer [TailscalePingResponse ]
10691086
1087+ func _StartedService_SetTailscaleExitNode_Handler (srv interface {}, ctx context.Context , dec func (interface {}) error , interceptor grpc.UnaryServerInterceptor ) (interface {}, error ) {
1088+ in := new (SetTailscaleExitNodeRequest )
1089+ if err := dec (in ); err != nil {
1090+ return nil , err
1091+ }
1092+ if interceptor == nil {
1093+ return srv .(StartedServiceServer ).SetTailscaleExitNode (ctx , in )
1094+ }
1095+ info := & grpc.UnaryServerInfo {
1096+ Server : srv ,
1097+ FullMethod : StartedService_SetTailscaleExitNode_FullMethodName ,
1098+ }
1099+ handler := func (ctx context.Context , req interface {}) (interface {}, error ) {
1100+ return srv .(StartedServiceServer ).SetTailscaleExitNode (ctx , req .(* SetTailscaleExitNodeRequest ))
1101+ }
1102+ return interceptor (ctx , in , info , handler )
1103+ }
1104+
10701105// StartedService_ServiceDesc is the grpc.ServiceDesc for StartedService service.
10711106// It's only intended for direct use with grpc.RegisterService,
10721107// and not to be introspected or modified (even as a copy)
@@ -1142,6 +1177,10 @@ var StartedService_ServiceDesc = grpc.ServiceDesc{
11421177 MethodName : "GetStartedAt" ,
11431178 Handler : _StartedService_GetStartedAt_Handler ,
11441179 },
1180+ {
1181+ MethodName : "SetTailscaleExitNode" ,
1182+ Handler : _StartedService_SetTailscaleExitNode_Handler ,
1183+ },
11451184 },
11461185 Streams : []grpc.StreamDesc {
11471186 {
0 commit comments