@@ -53,7 +53,7 @@ func (s *DriverServer) Start(_ *emptypb.Empty, stream pb.Driver_StartServer) err
53
53
}
54
54
}
55
55
56
- func (s * DriverServer ) SetConfig (_ context.Context , req * pb.SetConfigRequest ) (* emptypb.Empty , error ) {
56
+ func (s * DriverServer ) SetConfig (ctx context.Context , req * pb.SetConfigRequest ) (* emptypb.Empty , error ) {
57
57
s .logger .Debugf ("Received SetConfig request" )
58
58
var inst store.Instance
59
59
@@ -62,7 +62,7 @@ func (s *DriverServer) SetConfig(_ context.Context, req *pb.SetConfigRequest) (*
62
62
return & emptypb.Empty {}, err
63
63
}
64
64
65
- _ = s .driver .Configure (& inst )
65
+ _ = s .driver .Configure (ctx , & inst )
66
66
67
67
return & emptypb.Empty {}, nil
68
68
}
@@ -76,7 +76,7 @@ func (s *DriverServer) GuestAgentConn(ctx context.Context, _ *emptypb.Empty) (*e
76
76
}
77
77
78
78
if connType != "unix" {
79
- proxySocketPath := filepath .Join (s .driver .Info ().InstanceDir , filenames .GuestAgentSock )
79
+ proxySocketPath := filepath .Join (s .driver .Info (ctx ).InstanceDir , filenames .GuestAgentSock )
80
80
81
81
var lc net.ListenConfig
82
82
listener , err := lc .Listen (ctx , "unix" , proxySocketPath )
@@ -102,9 +102,9 @@ func (s *DriverServer) GuestAgentConn(ctx context.Context, _ *emptypb.Empty) (*e
102
102
return & emptypb.Empty {}, nil
103
103
}
104
104
105
- func (s * DriverServer ) GetInfo (_ context.Context , _ * emptypb.Empty ) (* pb.InfoResponse , error ) {
105
+ func (s * DriverServer ) GetInfo (ctx context.Context , _ * emptypb.Empty ) (* pb.InfoResponse , error ) {
106
106
s .logger .Debug ("Received GetInfo request" )
107
- info := s .driver .Info ()
107
+ info := s .driver .Info (ctx )
108
108
109
109
infoJSON , err := json .Marshal (info )
110
110
if err != nil {
@@ -161,9 +161,9 @@ func (s *DriverServer) Stop(ctx context.Context, empty *emptypb.Empty) (*emptypb
161
161
return empty , nil
162
162
}
163
163
164
- func (s * DriverServer ) RunGUI (_ context.Context , empty * emptypb.Empty ) (* emptypb.Empty , error ) {
164
+ func (s * DriverServer ) RunGUI (ctx context.Context , empty * emptypb.Empty ) (* emptypb.Empty , error ) {
165
165
s .logger .Debug ("Received RunGUI request" )
166
- err := s .driver .RunGUI ()
166
+ err := s .driver .RunGUI (ctx )
167
167
if err != nil {
168
168
s .logger .Errorf ("RunGUI failed: %v" , err )
169
169
return empty , err
@@ -260,7 +260,7 @@ func (s *DriverServer) Unregister(ctx context.Context, empty *emptypb.Empty) (*e
260
260
return empty , nil
261
261
}
262
262
263
- func (s * DriverServer ) ForwardGuestAgent (_ context.Context , _ * emptypb.Empty ) (* pb.ForwardGuestAgentResponse , error ) {
263
+ func (s * DriverServer ) ForwardGuestAgent (ctx context.Context , _ * emptypb.Empty ) (* pb.ForwardGuestAgentResponse , error ) {
264
264
s .logger .Debug ("Received ForwardGuestAgent request" )
265
- return & pb.ForwardGuestAgentResponse {ShouldForward : s .driver .ForwardGuestAgent ()}, nil
265
+ return & pb.ForwardGuestAgentResponse {ShouldForward : s .driver .ForwardGuestAgent (ctx )}, nil
266
266
}
0 commit comments