跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

driver_grpc.pb.go

1006 行 · 43.1 KB历史下载
1// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2// versions:
3// - protoc-gen-go-grpc [version omitted for reproducibility]
4// - protoc [version omitted for reproducibility]
5// source: driver.proto
6
7package external
8
9import (
10 context "context"
11 grpc "google.golang.org/grpc"
12 codes "google.golang.org/grpc/codes"
13 status "google.golang.org/grpc/status"
14 emptypb "google.golang.org/protobuf/types/known/emptypb"
15)
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the grpc package it is being compiled against.
19// Requires gRPC-Go v1.64.0 or later.
20const _ = grpc.SupportPackageIsVersion9
21
22const (
23 Driver_Validate_FullMethodName = "/Driver/Validate"
24 Driver_Create_FullMethodName = "/Driver/Create"
25 Driver_CreateDisk_FullMethodName = "/Driver/CreateDisk"
26 Driver_Start_FullMethodName = "/Driver/Start"
27 Driver_Stop_FullMethodName = "/Driver/Stop"
28 Driver_Delete_FullMethodName = "/Driver/Delete"
29 Driver_BootScripts_FullMethodName = "/Driver/BootScripts"
30 Driver_RunGUI_FullMethodName = "/Driver/RunGUI"
31 Driver_ChangeDisplayPassword_FullMethodName = "/Driver/ChangeDisplayPassword"
32 Driver_GetDisplayConnection_FullMethodName = "/Driver/GetDisplayConnection"
33 Driver_CreateSnapshot_FullMethodName = "/Driver/CreateSnapshot"
34 Driver_ApplySnapshot_FullMethodName = "/Driver/ApplySnapshot"
35 Driver_DeleteSnapshot_FullMethodName = "/Driver/DeleteSnapshot"
36 Driver_ListSnapshots_FullMethodName = "/Driver/ListSnapshots"
37 Driver_ForwardGuestAgent_FullMethodName = "/Driver/ForwardGuestAgent"
38 Driver_GuestAgentConn_FullMethodName = "/Driver/GuestAgentConn"
39 Driver_Configure_FullMethodName = "/Driver/Configure"
40 Driver_Info_FullMethodName = "/Driver/Info"
41 Driver_SSHAddress_FullMethodName = "/Driver/SSHAddress"
42 Driver_AdditionalSetupForSSH_FullMethodName = "/Driver/AdditionalSetupForSSH"
43)
44
45// DriverClient is the client API for Driver service.
46//
47// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
48//
49// Driver is the transport used by an external VM driver. It is the gRPC
50// projection of the Go `driver.Driver` interface (pkg/driver/driver.go): the
51// host agent runs a gRPC client and each external driver binary
52// (lima-driver-<name>) runs the server. The RPCs mirror the interface methods
53// one-to-one, so this file is the authoritative contract for driver authors.
54//
55// Call ordering on the instance start path: instance.Prepare (pkg/instance)
56// runs steps 1-4, then the host agent (pkg/hostagent) boots the VM and runs
57// steps 5-7. Creating an instance without starting it (limactl create) only
58// runs Configure and Create.
59// 1. Configure - set the instance config; must run before any method that
60// depends on it.
61// 2. Validate - reject configs the driver cannot support.
62// 3. Create - first-time provisioning; a no-op on existing instances.
63// 4. CreateDisk - create the instance disk(s).
64// 5. Start - begin booting the VM. It returns once boot has been
65// initiated (the initial StartResponse), not once the guest has finished
66// booting; later boot errors arrive on the stream. See StartResponse.
67// 6. AdditionalSetupForSSH - runs right after Start returns (boot initiated,
68// the guest is not necessarily up yet), before the first SSH connection.
69// 7. SSHAddress - re-queried after Start only when Info reports
70// Features.dynamicSSHAddress.
71//
72// Unless stated otherwise, an RPC returning google.protobuf.Empty completes
73// synchronously and reports failures as a gRPC error status. Requests and
74// responses that carry structured data use JSON payloads (Info, Configure) to
75// stay in sync with the Go types without duplicating them here.
76//
77// Concurrency: the start-path RPCs above are invoked sequentially in the
78// order listed. Once the VM is running, the host agent polls read-only RPCs
79// (notably Info and ForwardGuestAgent) from background goroutines, so the
80// driver server must be safe to handle concurrent RPCs.
81type DriverClient interface {
82 // Validate reports whether the driver supports the currently configured
83 // instance. It is called early on the start path, before Create. Returning
84 // an error aborts the operation.
85 Validate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
86 // Create performs first-time provisioning of the instance (e.g. writing a
87 // "vz-identifier" file). It MUST return successfully (no-op) when called
88 // against an instance that already exists, and it MUST NOT create the disks
89 // (that is CreateDisk's job).
90 Create(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
91 // CreateDisk creates the instance disk(s). It is called after Create.
92 CreateDisk(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
93 // Start begins booting the VM. It is a server-streaming RPC that mirrors the
94 // `(chan error, error)` return of the in-process interface: the call returns
95 // once boot has been initiated (the initial StartResponse), not once the
96 // guest has finished booting, and later boot errors arrive on the stream. See
97 // StartResponse for the streaming protocol.
98 Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StartResponse], error)
99 // Stop terminates the running VM. It blocks until the VM has fully exited
100 // (or the driver's internal shutdown deadline elapses) and returns a gRPC
101 // error status if the shutdown failed.
102 Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
103 // Delete removes the instance created by Create (and its driver-specific
104 // files). The generic instance directory is removed by the host agent.
105 Delete(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
106 // BootScripts returns the boot scripts to inject into the VM via cloud-init.
107 // See BootScriptsResponse for the required key format.
108 BootScripts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BootScriptsResponse, error)
109 // RunGUI starts the GUI synchronously. It blocks and returns only after the
110 // VM terminates. It is only used by drivers that report Features.canRunGui.
111 RunGUI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
112 // ChangeDisplayPassword sets the password for the VM display (e.g. VNC).
113 ChangeDisplayPassword(ctx context.Context, in *ChangeDisplayPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
114 // GetDisplayConnection returns the connection string for the VM display.
115 GetDisplayConnection(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDisplayConnectionResponse, error)
116 // CreateSnapshot creates a VM snapshot identified by the given tag.
117 CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
118 // ApplySnapshot restores the VM to the snapshot identified by the given tag.
119 ApplySnapshot(ctx context.Context, in *ApplySnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
120 // DeleteSnapshot removes the snapshot identified by the given tag.
121 DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
122 // ListSnapshots returns the driver-formatted list of existing snapshots.
123 ListSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
124 // ForwardGuestAgent reports whether the host agent must forward the guest
125 // agent socket over SSH. When false, the driver provides a direct guest agent
126 // connection via GuestAgentConn (e.g. vsock/virtio).
127 ForwardGuestAgent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ForwardGuestAgentResponse, error)
128 // GuestAgentConn returns a direct guest agent connection, used when
129 // ForwardGuestAgent is false; it returns nil when the socket is forwarded
130 // over SSH instead. Over this transport the server bridges the connection to
131 // a unix socket in the instance directory when it is not already one, so the
132 // client relies on that socket rather than on a returned connection.
133 GuestAgentConn(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
134 // Configure sets the instance configuration on the driver. It must be called
135 // before RPCs that depend on the config.
136 Configure(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error)
137 // Info returns driver metadata and capability flags (see InfoResponse). The
138 // host agent uses it to discover features such as dynamicSSHAddress.
139 Info(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfoResponse, error)
140 // SSHAddress returns the address used to SSH into the guest. For drivers that
141 // report Features.dynamicSSHAddress the address is not known until after
142 // Start, so the host agent re-queries it at that point.
143 SSHAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SSHAddressResponse, error)
144 // AdditionalSetupForSSH provides additional setup required for SSH connection.
145 // It is called right after Start returns (boot initiated, the guest is not
146 // necessarily up yet), before the first SSH connection.
147 AdditionalSetupForSSH(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
148}
149
150type driverClient struct {
151 cc grpc.ClientConnInterface
152}
153
154func NewDriverClient(cc grpc.ClientConnInterface) DriverClient {
155 return &driverClient{cc}
156}
157
158func (c *driverClient) Validate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
159 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
160 out := new(emptypb.Empty)
161 err := c.cc.Invoke(ctx, Driver_Validate_FullMethodName, in, out, cOpts...)
162 if err != nil {
163 return nil, err
164 }
165 return out, nil
166}
167
168func (c *driverClient) Create(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
169 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
170 out := new(emptypb.Empty)
171 err := c.cc.Invoke(ctx, Driver_Create_FullMethodName, in, out, cOpts...)
172 if err != nil {
173 return nil, err
174 }
175 return out, nil
176}
177
178func (c *driverClient) CreateDisk(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
179 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
180 out := new(emptypb.Empty)
181 err := c.cc.Invoke(ctx, Driver_CreateDisk_FullMethodName, in, out, cOpts...)
182 if err != nil {
183 return nil, err
184 }
185 return out, nil
186}
187
188func (c *driverClient) Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StartResponse], error) {
189 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
190 stream, err := c.cc.NewStream(ctx, &Driver_ServiceDesc.Streams[0], Driver_Start_FullMethodName, cOpts...)
191 if err != nil {
192 return nil, err
193 }
194 x := &grpc.GenericClientStream[emptypb.Empty, StartResponse]{ClientStream: stream}
195 if err := x.ClientStream.SendMsg(in); err != nil {
196 return nil, err
197 }
198 if err := x.ClientStream.CloseSend(); err != nil {
199 return nil, err
200 }
201 return x, nil
202}
203
204// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
205type Driver_StartClient = grpc.ServerStreamingClient[StartResponse]
206
207func (c *driverClient) Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
208 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
209 out := new(emptypb.Empty)
210 err := c.cc.Invoke(ctx, Driver_Stop_FullMethodName, in, out, cOpts...)
211 if err != nil {
212 return nil, err
213 }
214 return out, nil
215}
216
217func (c *driverClient) Delete(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
218 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
219 out := new(emptypb.Empty)
220 err := c.cc.Invoke(ctx, Driver_Delete_FullMethodName, in, out, cOpts...)
221 if err != nil {
222 return nil, err
223 }
224 return out, nil
225}
226
227func (c *driverClient) BootScripts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BootScriptsResponse, error) {
228 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
229 out := new(BootScriptsResponse)
230 err := c.cc.Invoke(ctx, Driver_BootScripts_FullMethodName, in, out, cOpts...)
231 if err != nil {
232 return nil, err
233 }
234 return out, nil
235}
236
237func (c *driverClient) RunGUI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
238 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
239 out := new(emptypb.Empty)
240 err := c.cc.Invoke(ctx, Driver_RunGUI_FullMethodName, in, out, cOpts...)
241 if err != nil {
242 return nil, err
243 }
244 return out, nil
245}
246
247func (c *driverClient) ChangeDisplayPassword(ctx context.Context, in *ChangeDisplayPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
248 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
249 out := new(emptypb.Empty)
250 err := c.cc.Invoke(ctx, Driver_ChangeDisplayPassword_FullMethodName, in, out, cOpts...)
251 if err != nil {
252 return nil, err
253 }
254 return out, nil
255}
256
257func (c *driverClient) GetDisplayConnection(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDisplayConnectionResponse, error) {
258 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
259 out := new(GetDisplayConnectionResponse)
260 err := c.cc.Invoke(ctx, Driver_GetDisplayConnection_FullMethodName, in, out, cOpts...)
261 if err != nil {
262 return nil, err
263 }
264 return out, nil
265}
266
267func (c *driverClient) CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
268 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
269 out := new(emptypb.Empty)
270 err := c.cc.Invoke(ctx, Driver_CreateSnapshot_FullMethodName, in, out, cOpts...)
271 if err != nil {
272 return nil, err
273 }
274 return out, nil
275}
276
277func (c *driverClient) ApplySnapshot(ctx context.Context, in *ApplySnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
278 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
279 out := new(emptypb.Empty)
280 err := c.cc.Invoke(ctx, Driver_ApplySnapshot_FullMethodName, in, out, cOpts...)
281 if err != nil {
282 return nil, err
283 }
284 return out, nil
285}
286
287func (c *driverClient) DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
288 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
289 out := new(emptypb.Empty)
290 err := c.cc.Invoke(ctx, Driver_DeleteSnapshot_FullMethodName, in, out, cOpts...)
291 if err != nil {
292 return nil, err
293 }
294 return out, nil
295}
296
297func (c *driverClient) ListSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) {
298 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
299 out := new(ListSnapshotsResponse)
300 err := c.cc.Invoke(ctx, Driver_ListSnapshots_FullMethodName, in, out, cOpts...)
301 if err != nil {
302 return nil, err
303 }
304 return out, nil
305}
306
307func (c *driverClient) ForwardGuestAgent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ForwardGuestAgentResponse, error) {
308 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
309 out := new(ForwardGuestAgentResponse)
310 err := c.cc.Invoke(ctx, Driver_ForwardGuestAgent_FullMethodName, in, out, cOpts...)
311 if err != nil {
312 return nil, err
313 }
314 return out, nil
315}
316
317func (c *driverClient) GuestAgentConn(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
318 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
319 out := new(emptypb.Empty)
320 err := c.cc.Invoke(ctx, Driver_GuestAgentConn_FullMethodName, in, out, cOpts...)
321 if err != nil {
322 return nil, err
323 }
324 return out, nil
325}
326
327func (c *driverClient) Configure(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) {
328 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
329 out := new(SetConfigResponse)
330 err := c.cc.Invoke(ctx, Driver_Configure_FullMethodName, in, out, cOpts...)
331 if err != nil {
332 return nil, err
333 }
334 return out, nil
335}
336
337func (c *driverClient) Info(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfoResponse, error) {
338 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
339 out := new(InfoResponse)
340 err := c.cc.Invoke(ctx, Driver_Info_FullMethodName, in, out, cOpts...)
341 if err != nil {
342 return nil, err
343 }
344 return out, nil
345}
346
347func (c *driverClient) SSHAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SSHAddressResponse, error) {
348 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
349 out := new(SSHAddressResponse)
350 err := c.cc.Invoke(ctx, Driver_SSHAddress_FullMethodName, in, out, cOpts...)
351 if err != nil {
352 return nil, err
353 }
354 return out, nil
355}
356
357func (c *driverClient) AdditionalSetupForSSH(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
358 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
359 out := new(emptypb.Empty)
360 err := c.cc.Invoke(ctx, Driver_AdditionalSetupForSSH_FullMethodName, in, out, cOpts...)
361 if err != nil {
362 return nil, err
363 }
364 return out, nil
365}
366
367// DriverServer is the server API for Driver service.
368// All implementations must embed UnimplementedDriverServer
369// for forward compatibility.
370//
371// Driver is the transport used by an external VM driver. It is the gRPC
372// projection of the Go `driver.Driver` interface (pkg/driver/driver.go): the
373// host agent runs a gRPC client and each external driver binary
374// (lima-driver-<name>) runs the server. The RPCs mirror the interface methods
375// one-to-one, so this file is the authoritative contract for driver authors.
376//
377// Call ordering on the instance start path: instance.Prepare (pkg/instance)
378// runs steps 1-4, then the host agent (pkg/hostagent) boots the VM and runs
379// steps 5-7. Creating an instance without starting it (limactl create) only
380// runs Configure and Create.
381// 1. Configure - set the instance config; must run before any method that
382// depends on it.
383// 2. Validate - reject configs the driver cannot support.
384// 3. Create - first-time provisioning; a no-op on existing instances.
385// 4. CreateDisk - create the instance disk(s).
386// 5. Start - begin booting the VM. It returns once boot has been
387// initiated (the initial StartResponse), not once the guest has finished
388// booting; later boot errors arrive on the stream. See StartResponse.
389// 6. AdditionalSetupForSSH - runs right after Start returns (boot initiated,
390// the guest is not necessarily up yet), before the first SSH connection.
391// 7. SSHAddress - re-queried after Start only when Info reports
392// Features.dynamicSSHAddress.
393//
394// Unless stated otherwise, an RPC returning google.protobuf.Empty completes
395// synchronously and reports failures as a gRPC error status. Requests and
396// responses that carry structured data use JSON payloads (Info, Configure) to
397// stay in sync with the Go types without duplicating them here.
398//
399// Concurrency: the start-path RPCs above are invoked sequentially in the
400// order listed. Once the VM is running, the host agent polls read-only RPCs
401// (notably Info and ForwardGuestAgent) from background goroutines, so the
402// driver server must be safe to handle concurrent RPCs.
403type DriverServer interface {
404 // Validate reports whether the driver supports the currently configured
405 // instance. It is called early on the start path, before Create. Returning
406 // an error aborts the operation.
407 Validate(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
408 // Create performs first-time provisioning of the instance (e.g. writing a
409 // "vz-identifier" file). It MUST return successfully (no-op) when called
410 // against an instance that already exists, and it MUST NOT create the disks
411 // (that is CreateDisk's job).
412 Create(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
413 // CreateDisk creates the instance disk(s). It is called after Create.
414 CreateDisk(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
415 // Start begins booting the VM. It is a server-streaming RPC that mirrors the
416 // `(chan error, error)` return of the in-process interface: the call returns
417 // once boot has been initiated (the initial StartResponse), not once the
418 // guest has finished booting, and later boot errors arrive on the stream. See
419 // StartResponse for the streaming protocol.
420 Start(*emptypb.Empty, grpc.ServerStreamingServer[StartResponse]) error
421 // Stop terminates the running VM. It blocks until the VM has fully exited
422 // (or the driver's internal shutdown deadline elapses) and returns a gRPC
423 // error status if the shutdown failed.
424 Stop(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
425 // Delete removes the instance created by Create (and its driver-specific
426 // files). The generic instance directory is removed by the host agent.
427 Delete(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
428 // BootScripts returns the boot scripts to inject into the VM via cloud-init.
429 // See BootScriptsResponse for the required key format.
430 BootScripts(context.Context, *emptypb.Empty) (*BootScriptsResponse, error)
431 // RunGUI starts the GUI synchronously. It blocks and returns only after the
432 // VM terminates. It is only used by drivers that report Features.canRunGui.
433 RunGUI(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
434 // ChangeDisplayPassword sets the password for the VM display (e.g. VNC).
435 ChangeDisplayPassword(context.Context, *ChangeDisplayPasswordRequest) (*emptypb.Empty, error)
436 // GetDisplayConnection returns the connection string for the VM display.
437 GetDisplayConnection(context.Context, *emptypb.Empty) (*GetDisplayConnectionResponse, error)
438 // CreateSnapshot creates a VM snapshot identified by the given tag.
439 CreateSnapshot(context.Context, *CreateSnapshotRequest) (*emptypb.Empty, error)
440 // ApplySnapshot restores the VM to the snapshot identified by the given tag.
441 ApplySnapshot(context.Context, *ApplySnapshotRequest) (*emptypb.Empty, error)
442 // DeleteSnapshot removes the snapshot identified by the given tag.
443 DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*emptypb.Empty, error)
444 // ListSnapshots returns the driver-formatted list of existing snapshots.
445 ListSnapshots(context.Context, *emptypb.Empty) (*ListSnapshotsResponse, error)
446 // ForwardGuestAgent reports whether the host agent must forward the guest
447 // agent socket over SSH. When false, the driver provides a direct guest agent
448 // connection via GuestAgentConn (e.g. vsock/virtio).
449 ForwardGuestAgent(context.Context, *emptypb.Empty) (*ForwardGuestAgentResponse, error)
450 // GuestAgentConn returns a direct guest agent connection, used when
451 // ForwardGuestAgent is false; it returns nil when the socket is forwarded
452 // over SSH instead. Over this transport the server bridges the connection to
453 // a unix socket in the instance directory when it is not already one, so the
454 // client relies on that socket rather than on a returned connection.
455 GuestAgentConn(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
456 // Configure sets the instance configuration on the driver. It must be called
457 // before RPCs that depend on the config.
458 Configure(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
459 // Info returns driver metadata and capability flags (see InfoResponse). The
460 // host agent uses it to discover features such as dynamicSSHAddress.
461 Info(context.Context, *emptypb.Empty) (*InfoResponse, error)
462 // SSHAddress returns the address used to SSH into the guest. For drivers that
463 // report Features.dynamicSSHAddress the address is not known until after
464 // Start, so the host agent re-queries it at that point.
465 SSHAddress(context.Context, *emptypb.Empty) (*SSHAddressResponse, error)
466 // AdditionalSetupForSSH provides additional setup required for SSH connection.
467 // It is called right after Start returns (boot initiated, the guest is not
468 // necessarily up yet), before the first SSH connection.
469 AdditionalSetupForSSH(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
470 mustEmbedUnimplementedDriverServer()
471}
472
473// UnimplementedDriverServer must be embedded to have
474// forward compatible implementations.
475//
476// NOTE: this should be embedded by value instead of pointer to avoid a nil
477// pointer dereference when methods are called.
478type UnimplementedDriverServer struct{}
479
480func (UnimplementedDriverServer) Validate(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
481 return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented")
482}
483func (UnimplementedDriverServer) Create(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
484 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
485}
486func (UnimplementedDriverServer) CreateDisk(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
487 return nil, status.Errorf(codes.Unimplemented, "method CreateDisk not implemented")
488}
489func (UnimplementedDriverServer) Start(*emptypb.Empty, grpc.ServerStreamingServer[StartResponse]) error {
490 return status.Errorf(codes.Unimplemented, "method Start not implemented")
491}
492func (UnimplementedDriverServer) Stop(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
493 return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented")
494}
495func (UnimplementedDriverServer) Delete(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
496 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
497}
498func (UnimplementedDriverServer) BootScripts(context.Context, *emptypb.Empty) (*BootScriptsResponse, error) {
499 return nil, status.Errorf(codes.Unimplemented, "method BootScripts not implemented")
500}
501func (UnimplementedDriverServer) RunGUI(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
502 return nil, status.Errorf(codes.Unimplemented, "method RunGUI not implemented")
503}
504func (UnimplementedDriverServer) ChangeDisplayPassword(context.Context, *ChangeDisplayPasswordRequest) (*emptypb.Empty, error) {
505 return nil, status.Errorf(codes.Unimplemented, "method ChangeDisplayPassword not implemented")
506}
507func (UnimplementedDriverServer) GetDisplayConnection(context.Context, *emptypb.Empty) (*GetDisplayConnectionResponse, error) {
508 return nil, status.Errorf(codes.Unimplemented, "method GetDisplayConnection not implemented")
509}
510func (UnimplementedDriverServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*emptypb.Empty, error) {
511 return nil, status.Errorf(codes.Unimplemented, "method CreateSnapshot not implemented")
512}
513func (UnimplementedDriverServer) ApplySnapshot(context.Context, *ApplySnapshotRequest) (*emptypb.Empty, error) {
514 return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshot not implemented")
515}
516func (UnimplementedDriverServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*emptypb.Empty, error) {
517 return nil, status.Errorf(codes.Unimplemented, "method DeleteSnapshot not implemented")
518}
519func (UnimplementedDriverServer) ListSnapshots(context.Context, *emptypb.Empty) (*ListSnapshotsResponse, error) {
520 return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented")
521}
522func (UnimplementedDriverServer) ForwardGuestAgent(context.Context, *emptypb.Empty) (*ForwardGuestAgentResponse, error) {
523 return nil, status.Errorf(codes.Unimplemented, "method ForwardGuestAgent not implemented")
524}
525func (UnimplementedDriverServer) GuestAgentConn(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
526 return nil, status.Errorf(codes.Unimplemented, "method GuestAgentConn not implemented")
527}
528func (UnimplementedDriverServer) Configure(context.Context, *SetConfigRequest) (*SetConfigResponse, error) {
529 return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
530}
531func (UnimplementedDriverServer) Info(context.Context, *emptypb.Empty) (*InfoResponse, error) {
532 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented")
533}
534func (UnimplementedDriverServer) SSHAddress(context.Context, *emptypb.Empty) (*SSHAddressResponse, error) {
535 return nil, status.Errorf(codes.Unimplemented, "method SSHAddress not implemented")
536}
537func (UnimplementedDriverServer) AdditionalSetupForSSH(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
538 return nil, status.Errorf(codes.Unimplemented, "method AdditionalSetupForSSH not implemented")
539}
540func (UnimplementedDriverServer) mustEmbedUnimplementedDriverServer() {}
541func (UnimplementedDriverServer) testEmbeddedByValue() {}
542
543// UnsafeDriverServer may be embedded to opt out of forward compatibility for this service.
544// Use of this interface is not recommended, as added methods to DriverServer will
545// result in compilation errors.
546type UnsafeDriverServer interface {
547 mustEmbedUnimplementedDriverServer()
548}
549
550func RegisterDriverServer(s grpc.ServiceRegistrar, srv DriverServer) {
551 // If the following call pancis, it indicates UnimplementedDriverServer was
552 // embedded by pointer and is nil. This will cause panics if an
553 // unimplemented method is ever invoked, so we test this at initialization
554 // time to prevent it from happening at runtime later due to I/O.
555 if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
556 t.testEmbeddedByValue()
557 }
558 s.RegisterService(&Driver_ServiceDesc, srv)
559}
560
561func _Driver_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
562 in := new(emptypb.Empty)
563 if err := dec(in); err != nil {
564 return nil, err
565 }
566 if interceptor == nil {
567 return srv.(DriverServer).Validate(ctx, in)
568 }
569 info := &grpc.UnaryServerInfo{
570 Server: srv,
571 FullMethod: Driver_Validate_FullMethodName,
572 }
573 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
574 return srv.(DriverServer).Validate(ctx, req.(*emptypb.Empty))
575 }
576 return interceptor(ctx, in, info, handler)
577}
578
579func _Driver_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
580 in := new(emptypb.Empty)
581 if err := dec(in); err != nil {
582 return nil, err
583 }
584 if interceptor == nil {
585 return srv.(DriverServer).Create(ctx, in)
586 }
587 info := &grpc.UnaryServerInfo{
588 Server: srv,
589 FullMethod: Driver_Create_FullMethodName,
590 }
591 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
592 return srv.(DriverServer).Create(ctx, req.(*emptypb.Empty))
593 }
594 return interceptor(ctx, in, info, handler)
595}
596
597func _Driver_CreateDisk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
598 in := new(emptypb.Empty)
599 if err := dec(in); err != nil {
600 return nil, err
601 }
602 if interceptor == nil {
603 return srv.(DriverServer).CreateDisk(ctx, in)
604 }
605 info := &grpc.UnaryServerInfo{
606 Server: srv,
607 FullMethod: Driver_CreateDisk_FullMethodName,
608 }
609 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
610 return srv.(DriverServer).CreateDisk(ctx, req.(*emptypb.Empty))
611 }
612 return interceptor(ctx, in, info, handler)
613}
614
615func _Driver_Start_Handler(srv interface{}, stream grpc.ServerStream) error {
616 m := new(emptypb.Empty)
617 if err := stream.RecvMsg(m); err != nil {
618 return err
619 }
620 return srv.(DriverServer).Start(m, &grpc.GenericServerStream[emptypb.Empty, StartResponse]{ServerStream: stream})
621}
622
623// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
624type Driver_StartServer = grpc.ServerStreamingServer[StartResponse]
625
626func _Driver_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
627 in := new(emptypb.Empty)
628 if err := dec(in); err != nil {
629 return nil, err
630 }
631 if interceptor == nil {
632 return srv.(DriverServer).Stop(ctx, in)
633 }
634 info := &grpc.UnaryServerInfo{
635 Server: srv,
636 FullMethod: Driver_Stop_FullMethodName,
637 }
638 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
639 return srv.(DriverServer).Stop(ctx, req.(*emptypb.Empty))
640 }
641 return interceptor(ctx, in, info, handler)
642}
643
644func _Driver_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
645 in := new(emptypb.Empty)
646 if err := dec(in); err != nil {
647 return nil, err
648 }
649 if interceptor == nil {
650 return srv.(DriverServer).Delete(ctx, in)
651 }
652 info := &grpc.UnaryServerInfo{
653 Server: srv,
654 FullMethod: Driver_Delete_FullMethodName,
655 }
656 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
657 return srv.(DriverServer).Delete(ctx, req.(*emptypb.Empty))
658 }
659 return interceptor(ctx, in, info, handler)
660}
661
662func _Driver_BootScripts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
663 in := new(emptypb.Empty)
664 if err := dec(in); err != nil {
665 return nil, err
666 }
667 if interceptor == nil {
668 return srv.(DriverServer).BootScripts(ctx, in)
669 }
670 info := &grpc.UnaryServerInfo{
671 Server: srv,
672 FullMethod: Driver_BootScripts_FullMethodName,
673 }
674 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
675 return srv.(DriverServer).BootScripts(ctx, req.(*emptypb.Empty))
676 }
677 return interceptor(ctx, in, info, handler)
678}
679
680func _Driver_RunGUI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
681 in := new(emptypb.Empty)
682 if err := dec(in); err != nil {
683 return nil, err
684 }
685 if interceptor == nil {
686 return srv.(DriverServer).RunGUI(ctx, in)
687 }
688 info := &grpc.UnaryServerInfo{
689 Server: srv,
690 FullMethod: Driver_RunGUI_FullMethodName,
691 }
692 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
693 return srv.(DriverServer).RunGUI(ctx, req.(*emptypb.Empty))
694 }
695 return interceptor(ctx, in, info, handler)
696}
697
698func _Driver_ChangeDisplayPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
699 in := new(ChangeDisplayPasswordRequest)
700 if err := dec(in); err != nil {
701 return nil, err
702 }
703 if interceptor == nil {
704 return srv.(DriverServer).ChangeDisplayPassword(ctx, in)
705 }
706 info := &grpc.UnaryServerInfo{
707 Server: srv,
708 FullMethod: Driver_ChangeDisplayPassword_FullMethodName,
709 }
710 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
711 return srv.(DriverServer).ChangeDisplayPassword(ctx, req.(*ChangeDisplayPasswordRequest))
712 }
713 return interceptor(ctx, in, info, handler)
714}
715
716func _Driver_GetDisplayConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
717 in := new(emptypb.Empty)
718 if err := dec(in); err != nil {
719 return nil, err
720 }
721 if interceptor == nil {
722 return srv.(DriverServer).GetDisplayConnection(ctx, in)
723 }
724 info := &grpc.UnaryServerInfo{
725 Server: srv,
726 FullMethod: Driver_GetDisplayConnection_FullMethodName,
727 }
728 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
729 return srv.(DriverServer).GetDisplayConnection(ctx, req.(*emptypb.Empty))
730 }
731 return interceptor(ctx, in, info, handler)
732}
733
734func _Driver_CreateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
735 in := new(CreateSnapshotRequest)
736 if err := dec(in); err != nil {
737 return nil, err
738 }
739 if interceptor == nil {
740 return srv.(DriverServer).CreateSnapshot(ctx, in)
741 }
742 info := &grpc.UnaryServerInfo{
743 Server: srv,
744 FullMethod: Driver_CreateSnapshot_FullMethodName,
745 }
746 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
747 return srv.(DriverServer).CreateSnapshot(ctx, req.(*CreateSnapshotRequest))
748 }
749 return interceptor(ctx, in, info, handler)
750}
751
752func _Driver_ApplySnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
753 in := new(ApplySnapshotRequest)
754 if err := dec(in); err != nil {
755 return nil, err
756 }
757 if interceptor == nil {
758 return srv.(DriverServer).ApplySnapshot(ctx, in)
759 }
760 info := &grpc.UnaryServerInfo{
761 Server: srv,
762 FullMethod: Driver_ApplySnapshot_FullMethodName,
763 }
764 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
765 return srv.(DriverServer).ApplySnapshot(ctx, req.(*ApplySnapshotRequest))
766 }
767 return interceptor(ctx, in, info, handler)
768}
769
770func _Driver_DeleteSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
771 in := new(DeleteSnapshotRequest)
772 if err := dec(in); err != nil {
773 return nil, err
774 }
775 if interceptor == nil {
776 return srv.(DriverServer).DeleteSnapshot(ctx, in)
777 }
778 info := &grpc.UnaryServerInfo{
779 Server: srv,
780 FullMethod: Driver_DeleteSnapshot_FullMethodName,
781 }
782 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
783 return srv.(DriverServer).DeleteSnapshot(ctx, req.(*DeleteSnapshotRequest))
784 }
785 return interceptor(ctx, in, info, handler)
786}
787
788func _Driver_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
789 in := new(emptypb.Empty)
790 if err := dec(in); err != nil {
791 return nil, err
792 }
793 if interceptor == nil {
794 return srv.(DriverServer).ListSnapshots(ctx, in)
795 }
796 info := &grpc.UnaryServerInfo{
797 Server: srv,
798 FullMethod: Driver_ListSnapshots_FullMethodName,
799 }
800 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
801 return srv.(DriverServer).ListSnapshots(ctx, req.(*emptypb.Empty))
802 }
803 return interceptor(ctx, in, info, handler)
804}
805
806func _Driver_ForwardGuestAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
807 in := new(emptypb.Empty)
808 if err := dec(in); err != nil {
809 return nil, err
810 }
811 if interceptor == nil {
812 return srv.(DriverServer).ForwardGuestAgent(ctx, in)
813 }
814 info := &grpc.UnaryServerInfo{
815 Server: srv,
816 FullMethod: Driver_ForwardGuestAgent_FullMethodName,
817 }
818 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
819 return srv.(DriverServer).ForwardGuestAgent(ctx, req.(*emptypb.Empty))
820 }
821 return interceptor(ctx, in, info, handler)
822}
823
824func _Driver_GuestAgentConn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
825 in := new(emptypb.Empty)
826 if err := dec(in); err != nil {
827 return nil, err
828 }
829 if interceptor == nil {
830 return srv.(DriverServer).GuestAgentConn(ctx, in)
831 }
832 info := &grpc.UnaryServerInfo{
833 Server: srv,
834 FullMethod: Driver_GuestAgentConn_FullMethodName,
835 }
836 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
837 return srv.(DriverServer).GuestAgentConn(ctx, req.(*emptypb.Empty))
838 }
839 return interceptor(ctx, in, info, handler)
840}
841
842func _Driver_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
843 in := new(SetConfigRequest)
844 if err := dec(in); err != nil {
845 return nil, err
846 }
847 if interceptor == nil {
848 return srv.(DriverServer).Configure(ctx, in)
849 }
850 info := &grpc.UnaryServerInfo{
851 Server: srv,
852 FullMethod: Driver_Configure_FullMethodName,
853 }
854 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
855 return srv.(DriverServer).Configure(ctx, req.(*SetConfigRequest))
856 }
857 return interceptor(ctx, in, info, handler)
858}
859
860func _Driver_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
861 in := new(emptypb.Empty)
862 if err := dec(in); err != nil {
863 return nil, err
864 }
865 if interceptor == nil {
866 return srv.(DriverServer).Info(ctx, in)
867 }
868 info := &grpc.UnaryServerInfo{
869 Server: srv,
870 FullMethod: Driver_Info_FullMethodName,
871 }
872 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
873 return srv.(DriverServer).Info(ctx, req.(*emptypb.Empty))
874 }
875 return interceptor(ctx, in, info, handler)
876}
877
878func _Driver_SSHAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
879 in := new(emptypb.Empty)
880 if err := dec(in); err != nil {
881 return nil, err
882 }
883 if interceptor == nil {
884 return srv.(DriverServer).SSHAddress(ctx, in)
885 }
886 info := &grpc.UnaryServerInfo{
887 Server: srv,
888 FullMethod: Driver_SSHAddress_FullMethodName,
889 }
890 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
891 return srv.(DriverServer).SSHAddress(ctx, req.(*emptypb.Empty))
892 }
893 return interceptor(ctx, in, info, handler)
894}
895
896func _Driver_AdditionalSetupForSSH_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
897 in := new(emptypb.Empty)
898 if err := dec(in); err != nil {
899 return nil, err
900 }
901 if interceptor == nil {
902 return srv.(DriverServer).AdditionalSetupForSSH(ctx, in)
903 }
904 info := &grpc.UnaryServerInfo{
905 Server: srv,
906 FullMethod: Driver_AdditionalSetupForSSH_FullMethodName,
907 }
908 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
909 return srv.(DriverServer).AdditionalSetupForSSH(ctx, req.(*emptypb.Empty))
910 }
911 return interceptor(ctx, in, info, handler)
912}
913
914// Driver_ServiceDesc is the grpc.ServiceDesc for Driver service.
915// It's only intended for direct use with grpc.RegisterService,
916// and not to be introspected or modified (even as a copy)
917var Driver_ServiceDesc = grpc.ServiceDesc{
918 ServiceName: "Driver",
919 HandlerType: (*DriverServer)(nil),
920 Methods: []grpc.MethodDesc{
921 {
922 MethodName: "Validate",
923 Handler: _Driver_Validate_Handler,
924 },
925 {
926 MethodName: "Create",
927 Handler: _Driver_Create_Handler,
928 },
929 {
930 MethodName: "CreateDisk",
931 Handler: _Driver_CreateDisk_Handler,
932 },
933 {
934 MethodName: "Stop",
935 Handler: _Driver_Stop_Handler,
936 },
937 {
938 MethodName: "Delete",
939 Handler: _Driver_Delete_Handler,
940 },
941 {
942 MethodName: "BootScripts",
943 Handler: _Driver_BootScripts_Handler,
944 },
945 {
946 MethodName: "RunGUI",
947 Handler: _Driver_RunGUI_Handler,
948 },
949 {
950 MethodName: "ChangeDisplayPassword",
951 Handler: _Driver_ChangeDisplayPassword_Handler,
952 },
953 {
954 MethodName: "GetDisplayConnection",
955 Handler: _Driver_GetDisplayConnection_Handler,
956 },
957 {
958 MethodName: "CreateSnapshot",
959 Handler: _Driver_CreateSnapshot_Handler,
960 },
961 {
962 MethodName: "ApplySnapshot",
963 Handler: _Driver_ApplySnapshot_Handler,
964 },
965 {
966 MethodName: "DeleteSnapshot",
967 Handler: _Driver_DeleteSnapshot_Handler,
968 },
969 {
970 MethodName: "ListSnapshots",
971 Handler: _Driver_ListSnapshots_Handler,
972 },
973 {
974 MethodName: "ForwardGuestAgent",
975 Handler: _Driver_ForwardGuestAgent_Handler,
976 },
977 {
978 MethodName: "GuestAgentConn",
979 Handler: _Driver_GuestAgentConn_Handler,
980 },
981 {
982 MethodName: "Configure",
983 Handler: _Driver_Configure_Handler,
984 },
985 {
986 MethodName: "Info",
987 Handler: _Driver_Info_Handler,
988 },
989 {
990 MethodName: "SSHAddress",
991 Handler: _Driver_SSHAddress_Handler,
992 },
993 {
994 MethodName: "AdditionalSetupForSSH",
995 Handler: _Driver_AdditionalSetupForSSH_Handler,
996 },
997 },
998 Streams: []grpc.StreamDesc{
999 {
1000 StreamName: "Start",
1001 Handler: _Driver_Start_Handler,
1002 ServerStreams: true,
1003 },
1004 },
1005 Metadata: "driver.proto",
1006}