add uncloud machine init command to initialise a new cluster on local machine

This commit is contained in:
Pavel Sviderski
2024-09-05 12:21:01 +10:00
parent 58fb3105cd
commit 3f71aec275
7 changed files with 222 additions and 53 deletions
-20
View File
@@ -1,20 +0,0 @@
package api
import (
"context"
pb2 "uncloud/internal/machine/api/pb"
)
// Server is the gRPC server for the Cluster service.
type Server struct {
pb2.UnimplementedClusterServer
}
func NewServer() *Server {
return &Server{}
}
// AddMachine adds a machine to the cluster.
func (s *Server) AddMachine(ctx context.Context, req *pb2.AddMachineRequest) (*pb2.AddMachineResponse, error) {
return &pb2.AddMachineResponse{}, nil
}