@@ -470,13 +470,13 @@ func (m *mockPlugin) onClose() {
470470 }
471471}
472472
473- func (m * mockPlugin ) Configure (cfg , runtime , version string ) (stub.EventMask , error ) {
473+ func (m * mockPlugin ) Configure (_ context. Context , cfg , runtime , version string ) (stub.EventMask , error ) {
474474 m .q .Add (PluginConfigured )
475475
476476 return m .mask , nil
477477}
478478
479- func (m * mockPlugin ) Synchronize (pods []* api.PodSandbox , ctrs []* api.Container ) ([]* api.ContainerUpdate , error ) {
479+ func (m * mockPlugin ) Synchronize (_ context. Context , pods []* api.PodSandbox , ctrs []* api.Container ) ([]* api.ContainerUpdate , error ) {
480480 for _ , pod := range pods {
481481 m .pods [pod .Id ] = pod
482482 }
@@ -489,88 +489,88 @@ func (m *mockPlugin) Synchronize(pods []*api.PodSandbox, ctrs []*api.Container)
489489 return nil , nil
490490}
491491
492- func (m * mockPlugin ) Shutdown () {
492+ func (m * mockPlugin ) Shutdown (_ context. Context ) {
493493 m .q .Add (PluginShutdown )
494494}
495495
496- func (m * mockPlugin ) RunPodSandbox (pod * api.PodSandbox ) error {
496+ func (m * mockPlugin ) RunPodSandbox (_ context. Context , pod * api.PodSandbox ) error {
497497 m .pods [pod .Id ] = pod
498498 err := m .runPodSandbox (m , pod , nil )
499499 m .q .Add (PodSandboxEvent (pod , RunPodSandbox ))
500500 return err
501501}
502502
503- func (m * mockPlugin ) StopPodSandbox (pod * api.PodSandbox ) error {
503+ func (m * mockPlugin ) StopPodSandbox (_ context. Context , pod * api.PodSandbox ) error {
504504 m .pods [pod .Id ] = pod
505505 err := m .stopPodSandbox (m , pod , nil )
506506 m .q .Add (PodSandboxEvent (pod , StopPodSandbox ))
507507 return err
508508}
509509
510- func (m * mockPlugin ) RemovePodSandbox (pod * api.PodSandbox ) error {
510+ func (m * mockPlugin ) RemovePodSandbox (_ context. Context , pod * api.PodSandbox ) error {
511511 delete (m .pods , pod .Id )
512512 err := m .removePodSandbox (m , pod , nil )
513513 m .q .Add (PodSandboxEvent (pod , RemovePodSandbox ))
514514 return err
515515}
516516
517- func (m * mockPlugin ) CreateContainer (pod * api.PodSandbox , ctr * api.Container ) (* api.ContainerAdjustment , []* api.ContainerUpdate , error ) {
517+ func (m * mockPlugin ) CreateContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) (* api.ContainerAdjustment , []* api.ContainerUpdate , error ) {
518518 m .pods [pod .Id ] = pod
519519 m .ctrs [ctr .Id ] = ctr
520520 m .q .Add (ContainerEvent (ctr , CreateContainer ))
521521
522522 return m .createContainer (m , pod , ctr )
523523}
524524
525- func (m * mockPlugin ) PostCreateContainer (pod * api.PodSandbox , ctr * api.Container ) error {
525+ func (m * mockPlugin ) PostCreateContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) error {
526526 m .pods [pod .Id ] = pod
527527 m .ctrs [ctr .Id ] = ctr
528528 m .q .Add (ContainerEvent (ctr , PostCreateContainer ))
529529
530530 return m .postCreateContainer (m , pod , ctr )
531531}
532532
533- func (m * mockPlugin ) StartContainer (pod * api.PodSandbox , ctr * api.Container ) error {
533+ func (m * mockPlugin ) StartContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) error {
534534 m .pods [pod .Id ] = pod
535535 m .ctrs [ctr .Id ] = ctr
536536 m .q .Add (ContainerEvent (ctr , StartContainer ))
537537
538538 return m .startContainer (m , pod , ctr )
539539}
540540
541- func (m * mockPlugin ) PostStartContainer (pod * api.PodSandbox , ctr * api.Container ) error {
541+ func (m * mockPlugin ) PostStartContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) error {
542542 m .pods [pod .Id ] = pod
543543 m .ctrs [ctr .Id ] = ctr
544544 m .q .Add (ContainerEvent (ctr , PostStartContainer ))
545545
546546 return m .postStartContainer (m , pod , ctr )
547547}
548548
549- func (m * mockPlugin ) UpdateContainer (pod * api.PodSandbox , ctr * api.Container ) ([]* api.ContainerUpdate , error ) {
549+ func (m * mockPlugin ) UpdateContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) ([]* api.ContainerUpdate , error ) {
550550 m .pods [pod .Id ] = pod
551551 m .ctrs [ctr .Id ] = ctr
552552 m .q .Add (ContainerEvent (ctr , UpdateContainer ))
553553
554554 return m .updateContainer (m , pod , ctr )
555555}
556556
557- func (m * mockPlugin ) PostUpdateContainer (pod * api.PodSandbox , ctr * api.Container ) error {
557+ func (m * mockPlugin ) PostUpdateContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) error {
558558 m .pods [pod .Id ] = pod
559559 m .ctrs [ctr .Id ] = ctr
560560 m .q .Add (ContainerEvent (ctr , PostUpdateContainer ))
561561
562562 return m .postUpdateContainer (m , pod , ctr )
563563}
564564
565- func (m * mockPlugin ) StopContainer (pod * api.PodSandbox , ctr * api.Container ) ([]* api.ContainerUpdate , error ) {
565+ func (m * mockPlugin ) StopContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) ([]* api.ContainerUpdate , error ) {
566566 m .pods [pod .Id ] = pod
567567 m .ctrs [ctr .Id ] = ctr
568568 m .q .Add (ContainerEvent (ctr , StopContainer ))
569569
570570 return m .stopContainer (m , pod , ctr )
571571}
572572
573- func (m * mockPlugin ) RemoveContainer (pod * api.PodSandbox , ctr * api.Container ) error {
573+ func (m * mockPlugin ) RemoveContainer (_ context. Context , pod * api.PodSandbox , ctr * api.Container ) error {
574574 delete (m .ctrs , ctr .Id )
575575 m .q .Add (ContainerEvent (ctr , RemoveContainer ))
576576
0 commit comments