1
1
syntax = "proto3" ;
2
2
3
- option go_package = "github.com/lima-vm/lima/pkg/driver/external" ;
4
-
5
3
import "google/protobuf/empty.proto" ;
6
4
5
+ option go_package = "github.com/lima-vm/lima/pkg/driver/external" ;
6
+
7
7
service Driver {
8
- rpc Validate (google .protobuf .Empty ) returns (google .protobuf .Empty );
9
- rpc Initialize (google .protobuf .Empty ) returns (google .protobuf .Empty );
10
- rpc CreateDisk (google .protobuf .Empty ) returns (google .protobuf .Empty );
11
- rpc Start (google .protobuf .Empty ) returns (stream StartResponse );
12
- rpc Stop (google .protobuf .Empty ) returns (google .protobuf .Empty );
8
+ rpc Validate (google .protobuf .Empty ) returns (google .protobuf .Empty );
9
+ rpc Initialize (google .protobuf .Empty ) returns (google .protobuf .Empty );
10
+ rpc CreateDisk (google .protobuf .Empty ) returns (google .protobuf .Empty );
11
+ rpc Start (google .protobuf .Empty ) returns (stream StartResponse );
12
+ rpc Stop (google .protobuf .Empty ) returns (google .protobuf .Empty );
13
13
14
- rpc RunGUI (google .protobuf .Empty ) returns (google .protobuf .Empty );
15
- rpc ChangeDisplayPassword (ChangeDisplayPasswordRequest ) returns (google .protobuf .Empty );
16
- rpc GetDisplayConnection (google .protobuf .Empty ) returns (GetDisplayConnectionResponse );
14
+ rpc RunGUI (google .protobuf .Empty ) returns (google .protobuf .Empty );
15
+ rpc ChangeDisplayPassword (ChangeDisplayPasswordRequest ) returns (google .protobuf .Empty );
16
+ rpc GetDisplayConnection (google .protobuf .Empty ) returns (GetDisplayConnectionResponse );
17
17
18
- rpc CreateSnapshot (CreateSnapshotRequest ) returns (google .protobuf .Empty );
19
- rpc ApplySnapshot (ApplySnapshotRequest ) returns (google .protobuf .Empty );
20
- rpc DeleteSnapshot (DeleteSnapshotRequest ) returns (google .protobuf .Empty );
21
- rpc ListSnapshots (google .protobuf .Empty ) returns (ListSnapshotsResponse );
18
+ rpc CreateSnapshot (CreateSnapshotRequest ) returns (google .protobuf .Empty );
19
+ rpc ApplySnapshot (ApplySnapshotRequest ) returns (google .protobuf .Empty );
20
+ rpc DeleteSnapshot (DeleteSnapshotRequest ) returns (google .protobuf .Empty );
21
+ rpc ListSnapshots (google .protobuf .Empty ) returns (ListSnapshotsResponse );
22
22
23
- rpc Register (google .protobuf .Empty ) returns (google .protobuf .Empty );
24
- rpc Unregister (google .protobuf .Empty ) returns (google .protobuf .Empty );
23
+ rpc Register (google .protobuf .Empty ) returns (google .protobuf .Empty );
24
+ rpc Unregister (google .protobuf .Empty ) returns (google .protobuf .Empty );
25
25
26
- rpc ForwardGuestAgent (google .protobuf .Empty ) returns (ForwardGuestAgentResponse );
27
- rpc GuestAgentConn (google .protobuf .Empty ) returns (google .protobuf .Empty );
26
+ rpc ForwardGuestAgent (google .protobuf .Empty ) returns (ForwardGuestAgentResponse );
27
+ rpc GuestAgentConn (google .protobuf .Empty ) returns (google .protobuf .Empty );
28
28
29
- rpc SetConfig (SetConfigRequest ) returns (google .protobuf .Empty );
29
+ rpc SetConfig (SetConfigRequest ) returns (google .protobuf .Empty );
30
30
31
- rpc GetInfo (google .protobuf .Empty ) returns (InfoResponse );
31
+ rpc GetInfo (google .protobuf .Empty ) returns (InfoResponse );
32
32
}
33
33
34
34
message InfoResponse {
35
- bytes info_json = 1 ;
35
+ bytes info_json = 1 ;
36
36
}
37
37
38
38
message StartResponse {
39
- bool success = 1 ;
40
- string error = 2 ;
39
+ bool success = 1 ;
40
+ string error = 2 ;
41
41
}
42
42
43
43
message SetConfigRequest {
44
- bytes instance_config_json = 1 ;
45
- int64 ssh_local_port = 3 ;
44
+ bytes instance_config_json = 1 ;
45
+ int64 ssh_local_port = 3 ;
46
46
}
47
47
48
48
message ChangeDisplayPasswordRequest {
49
- string password = 1 ;
49
+ string password = 1 ;
50
50
}
51
51
52
52
message GetDisplayConnectionResponse {
53
- string connection = 1 ;
53
+ string connection = 1 ;
54
54
}
55
55
56
56
message CreateSnapshotRequest {
57
- string tag = 1 ;
57
+ string tag = 1 ;
58
58
}
59
59
60
60
message ApplySnapshotRequest {
61
- string tag = 1 ;
61
+ string tag = 1 ;
62
62
}
63
63
64
64
message DeleteSnapshotRequest {
65
- string tag = 1 ;
65
+ string tag = 1 ;
66
66
}
67
67
68
68
message ListSnapshotsResponse {
69
- string snapshots = 1 ;
69
+ string snapshots = 1 ;
70
70
}
71
71
72
72
message ForwardGuestAgentResponse {
73
- bool should_forward = 1 ;
74
- }
73
+ bool should_forward = 1 ;
74
+ }
0 commit comments