@@ -295,7 +295,7 @@ func (rs *resourceServer) register() error {
295295}
296296
297297// ListAndWatch lists devices and update that list according to the health status
298- func (rs * resourceServer ) ListAndWatch (e * pluginapi.Empty , s pluginapi.DevicePlugin_ListAndWatchServer ) error {
298+ func (rs * resourceServer ) ListAndWatch (_ * pluginapi.Empty , s pluginapi.DevicePlugin_ListAndWatchServer ) error {
299299 log .Printf ("ListAndWatch called by kubelet for: %s" , rs .resourceName )
300300 resp := new (pluginapi.ListAndWatchResponse )
301301
@@ -366,7 +366,7 @@ func (rs *resourceServer) sendDevices(resp *pluginapi.ListAndWatchResponse,
366366}
367367
368368// Allocate which return list of devices.
369- func (rs * resourceServer ) Allocate (ctx context.Context , r * pluginapi.AllocateRequest ) (
369+ func (rs * resourceServer ) Allocate (_ context.Context , r * pluginapi.AllocateRequest ) (
370370 * pluginapi.AllocateResponse , error ) {
371371 log .Println ("allocate request:" , r )
372372
@@ -420,7 +420,7 @@ func (rs *resourceServer) cleanup() error {
420420}
421421
422422// GetInfo get info of plugin
423- func (rs * resourceServer ) GetInfo (ctx context.Context , rqt * registerapi.InfoRequest ) (* registerapi.PluginInfo , error ) {
423+ func (rs * resourceServer ) GetInfo (_ context.Context , _ * registerapi.InfoRequest ) (* registerapi.PluginInfo , error ) {
424424 pluginInfoResponse := & registerapi.PluginInfo {
425425 Type : registerapi .DevicePlugin ,
426426 Name : rs .resourceName ,
@@ -431,7 +431,7 @@ func (rs *resourceServer) GetInfo(ctx context.Context, rqt *registerapi.InfoRequ
431431}
432432
433433// NotifyRegistrationStatus notify for registration status
434- func (rs * resourceServer ) NotifyRegistrationStatus (ctx context.Context , regstat * registerapi.RegistrationStatus ) (
434+ func (rs * resourceServer ) NotifyRegistrationStatus (_ context.Context , regstat * registerapi.RegistrationStatus ) (
435435 * registerapi.RegistrationStatusResponse , error ) {
436436 if regstat .PluginRegistered {
437437 log .Printf ("%s gets registered successfully at Kubelet \n " , rs .socketName )
@@ -490,7 +490,7 @@ func (rs *resourceServer) UpdateDevices(devices []types.PciNetDevice) {
490490}
491491
492492func (rs * resourceServer ) GetPreferredAllocation (
493- ctx context.Context , req * pluginapi.PreferredAllocationRequest ) (* pluginapi.PreferredAllocationResponse , error ) {
493+ _ context.Context , _ * pluginapi.PreferredAllocationRequest ) (* pluginapi.PreferredAllocationResponse , error ) {
494494 return nil , nil
495495}
496496
0 commit comments