feat(caddystorage): integrate CaddyStorage gRPC service in machine API

This commit is contained in:
Pasha Sviderski committed 2026-09-07 10:44:08 +10:00
1 parent 5e01db5e20
commit c6d0371f15
4 files changed
+195 -8

No files matched your search

+3 -1
View File
@@ -25,7 +25,8 @@ type Client struct {
// Methods such as Reset or Inspect are ambiguous in the context of a machine+cluster client.
pb.MachineClient
pb.ClusterClient
Caddy pb.CaddyClient
Caddy pb.CaddyClient
CaddyStorage pb.CaddyStorageClient
// Docker is a namespaced client for the Docker service to distinguish Uncloud-specific service container operations
// from generic Docker operations.
Docker *docker.Client
@@ -58,6 +59,7 @@ func New(ctx context.Context, connector Connector) (*Client, error) {
c.MachineClient = pb.NewMachineClient(c.conn)
c.ClusterClient = pb.NewClusterClient(c.conn)
c.Caddy = pb.NewCaddyClient(c.conn)
c.CaddyStorage = pb.NewCaddyStorageClient(c.conn)
c.Docker = docker.NewClient(c.conn)
c.leases = distlockgrpc.NewLeaseClient(c.conn)