@@ -44,6 +44,7 @@ type fakeLBService struct {
4444 store map [string ]* godo.LoadBalancer
4545 getFn func (context.Context , string ) (* godo.LoadBalancer , * godo.Response , error )
4646 listFn func (context.Context , * godo.ListOptions ) ([]godo.LoadBalancer , * godo.Response , error )
47+ listByNamesFn func (context.Context , []string , * godo.ListOptions ) ([]godo.LoadBalancer , * godo.Response , error )
4748 createFn func (context.Context , * godo.LoadBalancerRequest ) (* godo.LoadBalancer , * godo.Response , error )
4849 updateFn func (ctx context.Context , lbID string , lbr * godo.LoadBalancerRequest ) (* godo.LoadBalancer , * godo.Response , error )
4950 deleteFn func (ctx context.Context , lbID string ) (* godo.Response , error )
@@ -62,6 +63,10 @@ func (f *fakeLBService) List(ctx context.Context, listOpts *godo.ListOptions) ([
6263 return f .listFn (ctx , listOpts )
6364}
6465
66+ func (f * fakeLBService ) ListByNames (ctx context.Context , names []string , listOpts * godo.ListOptions ) ([]godo.LoadBalancer , * godo.Response , error ) {
67+ return f .listByNamesFn (ctx , names , listOpts )
68+ }
69+
6570func (f * fakeLBService ) Create (ctx context.Context , lbr * godo.LoadBalancerRequest ) (* godo.LoadBalancer , * godo.Response , error ) {
6671 return f .createFn (ctx , lbr )
6772}
0 commit comments