BREAKING CHANGE: move Uncloud API socket to /run/uncloud/api/uncloud.sock, activate it by systemd socket unit

This commit is contained in:
Pasha Sviderski committed 2026-09-17 15:23:38 +10:00
1 parent c65f352250
commit f68c9859d9
24 files changed
+345 -112

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ import (
"google.golang.org/grpc/credentials/insecure"
)
// TCPConnector establishes a connection to the machine API through a direct TCP connection to an API endpoint.
// TCPConnector establishes a connection to the Uncloud API through a direct TCP connection.
type TCPConnector struct {
apiAddr netip.AddrPort
}
@@ -40,7 +40,7 @@ func (c *TCPConnector) Connect(_ context.Context) (*grpc.ClientConn, error) {
grpc.WithStreamInterceptor(grpcversion.ClientStreamInterceptor),
)
if err != nil {
return nil, fmt.Errorf("create machine API client: %w", err)
return nil, fmt.Errorf("create Uncloud API client: %w", err)
}
return conn, nil
}