@@ -26,7 +26,7 @@ type TestExecutor struct {
2626}
2727
2828// Describe just returns empty NodeDescription.
29- func (e * TestExecutor ) Describe (ctx context.Context ) (* api.NodeDescription , error ) {
29+ func (e * TestExecutor ) Describe (_ context.Context ) (* api.NodeDescription , error ) {
3030 e .mu .Lock ()
3131 defer e .mu .Unlock ()
3232 if e .desc == nil {
@@ -36,7 +36,7 @@ func (e *TestExecutor) Describe(ctx context.Context) (*api.NodeDescription, erro
3636}
3737
3838// Configure does nothing.
39- func (e * TestExecutor ) Configure (ctx context.Context , node * api.Node ) error {
39+ func (e * TestExecutor ) Configure (_ context.Context , _ * api.Node ) error {
4040 return nil
4141}
4242
@@ -46,7 +46,7 @@ func (e *TestExecutor) SetNetworkBootstrapKeys([]*api.EncryptionKey) error {
4646}
4747
4848// Controller returns TestController.
49- func (e * TestExecutor ) Controller (t * api.Task ) (exec.Controller , error ) {
49+ func (e * TestExecutor ) Controller (_ * api.Task ) (exec.Controller , error ) {
5050 return & TestController {
5151 ch : make (chan struct {}),
5252 }, nil
@@ -66,17 +66,17 @@ type TestController struct {
6666}
6767
6868// Update does nothing.
69- func (t * TestController ) Update (ctx context.Context , task * api.Task ) error {
69+ func (t * TestController ) Update (_ context.Context , _ * api.Task ) error {
7070 return nil
7171}
7272
7373// Prepare does nothing.
74- func (t * TestController ) Prepare (ctx context.Context ) error {
74+ func (t * TestController ) Prepare (_ context.Context ) error {
7575 return nil
7676}
7777
7878// Start does nothing.
79- func (t * TestController ) Start (ctx context.Context ) error {
79+ func (t * TestController ) Start (_ context.Context ) error {
8080 return nil
8181}
8282
@@ -90,23 +90,23 @@ func (t *TestController) Wait(ctx context.Context) error {
9090}
9191
9292// Shutdown closes internal channel
93- func (t * TestController ) Shutdown (ctx context.Context ) error {
93+ func (t * TestController ) Shutdown (_ context.Context ) error {
9494 t .closeOnce .Do (func () {
9595 close (t .ch )
9696 })
9797 return nil
9898}
9999
100100// Terminate closes internal channel if it wasn't closed before.
101- func (t * TestController ) Terminate (ctx context.Context ) error {
101+ func (t * TestController ) Terminate (_ context.Context ) error {
102102 t .closeOnce .Do (func () {
103103 close (t .ch )
104104 })
105105 return nil
106106}
107107
108108// Remove does nothing.
109- func (t * TestController ) Remove (ctx context.Context ) error {
109+ func (t * TestController ) Remove (_ context.Context ) error {
110110 return nil
111111}
112112
0 commit comments