File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package client
19
19
import (
20
20
"context"
21
21
"log"
22
+ "mosn.io/layotto/spec/proto/extension/v1/s3"
22
23
"net"
23
24
"os"
24
25
"sync"
@@ -116,6 +117,8 @@ type Client interface {
116
117
117
118
// Close cleans up all resources created by the client.
118
119
Close ()
120
+
121
+ s3.ObjectStorageServiceClient
119
122
}
120
123
121
124
// NewClient instantiates runtime client using runtime_GRPC_PORT environment variable as port.
@@ -165,13 +168,15 @@ func NewClientWithAddress(address string) (client Client, err error) {
165
168
// NewClientWithConnection instantiates runtime client using specific connection.
166
169
func NewClientWithConnection (conn * grpc.ClientConn ) Client {
167
170
return & GRPCClient {
168
- connection : conn ,
169
- protoClient : runtimev1pb .NewRuntimeClient (conn ),
171
+ ObjectStorageServiceClient : s3 .NewObjectStorageServiceClient (conn ),
172
+ connection : conn ,
173
+ protoClient : runtimev1pb .NewRuntimeClient (conn ),
170
174
}
171
175
}
172
176
173
177
// GRPCClient is the gRPC implementation of runtime client.
174
178
type GRPCClient struct {
179
+ s3.ObjectStorageServiceClient
175
180
connection * grpc.ClientConn
176
181
protoClient runtimev1pb.RuntimeClient
177
182
}
You can’t perform that action at this time.
0 commit comments