From 2acfafe21835c5ec1cbecd2625040854847cb573 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Thu, 24 Jul 2025 19:34:05 +1000 Subject: [PATCH] chore: regenerate proto --- internal/machine/api/pb/cluster.proto | 3 ++- internal/machine/api/pb/machine.proto | 2 +- internal/machine/api/pb/machine_grpc.pb.go | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/machine/api/pb/cluster.proto b/internal/machine/api/pb/cluster.proto index c937b7b9..fe08f8cf 100644 --- a/internal/machine/api/pb/cluster.proto +++ b/internal/machine/api/pb/cluster.proto @@ -12,6 +12,7 @@ service Cluster { rpc AddMachine(AddMachineRequest) returns (AddMachineResponse); rpc ListMachines(google.protobuf.Empty) returns (ListMachinesResponse); rpc UpdateMachine(UpdateMachineRequest) returns (UpdateMachineResponse); + // TODO: add RemoveMachine (see stashed changes) rpc ReserveDomain(ReserveDomainRequest) returns (Domain); rpc GetDomain(google.protobuf.Empty) returns (Domain); @@ -81,7 +82,7 @@ message DNSRecord { message UpdateMachineRequest { // Machine to update string machine_id = 1; - + // Updated machine information optional string name = 2; optional IP public_ip = 3; diff --git a/internal/machine/api/pb/machine.proto b/internal/machine/api/pb/machine.proto index 87188390..bfa126f3 100644 --- a/internal/machine/api/pb/machine.proto +++ b/internal/machine/api/pb/machine.proto @@ -14,7 +14,7 @@ service Machine { rpc JoinCluster(JoinClusterRequest) returns (google.protobuf.Empty); rpc Token(google.protobuf.Empty) returns (TokenResponse); rpc Inspect(google.protobuf.Empty) returns (MachineInfo); - // Reset restores the machine to a clean state, removing all cluster-related сonfiguration and data. + // Reset restores the machine to a clean state, removing all cluster-related configuration and data. rpc Reset(ResetRequest) returns (google.protobuf.Empty); rpc InspectService(InspectServiceRequest) returns (InspectServiceResponse); diff --git a/internal/machine/api/pb/machine_grpc.pb.go b/internal/machine/api/pb/machine_grpc.pb.go index a53be439..035883ed 100644 --- a/internal/machine/api/pb/machine_grpc.pb.go +++ b/internal/machine/api/pb/machine_grpc.pb.go @@ -39,7 +39,7 @@ type MachineClient interface { JoinCluster(ctx context.Context, in *JoinClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Token(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TokenResponse, error) Inspect(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MachineInfo, error) - // Reset restores the machine to a clean state, removing all cluster-related сonfiguration and data. + // Reset restores the machine to a clean state, removing all cluster-related configuration and data. Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) InspectService(ctx context.Context, in *InspectServiceRequest, opts ...grpc.CallOption) (*InspectServiceResponse, error) } @@ -132,7 +132,7 @@ type MachineServer interface { JoinCluster(context.Context, *JoinClusterRequest) (*emptypb.Empty, error) Token(context.Context, *emptypb.Empty) (*TokenResponse, error) Inspect(context.Context, *emptypb.Empty) (*MachineInfo, error) - // Reset restores the machine to a clean state, removing all cluster-related сonfiguration and data. + // Reset restores the machine to a clean state, removing all cluster-related configuration and data. Reset(context.Context, *ResetRequest) (*emptypb.Empty, error) InspectService(context.Context, *InspectServiceRequest) (*InspectServiceResponse, error) mustEmbedUnimplementedMachineServer()