chore: update api.MachineClient interface

This commit is contained in:
Pasha Sviderski
2025-07-24 14:25:09 +10:00
parent 9a88e914f4
commit b24b55c4c7
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -42,6 +42,8 @@ type ImageClient interface {
type MachineClient interface {
InspectMachine(ctx context.Context, id string) (*pb.MachineMember, error)
ListMachines(ctx context.Context, filter *MachineFilter) (MachineMembersList, error)
UpdateMachine(ctx context.Context, req *pb.UpdateMachineRequest) (*pb.MachineInfo, error)
RenameMachine(ctx context.Context, nameOrID, newName string) (*pb.MachineInfo, error)
}
type ServiceClient interface {
+2
View File
@@ -19,6 +19,8 @@ type Client struct {
connector Connector
conn *grpc.ClientConn
// TODO: refactor to not embed MachineClient and instead expose only required methods.
// Methods such as Reset or Inspect are ambiguous in the context of a machine+cluster client.
pb.MachineClient
pb.ClusterClient
// Docker is a namespaced client for the Docker service to distinguish Uncloud-specific service container operations