Skip to content

Commit 64ac95c

Browse files
committed
Add missing LB method
1 parent 76905e2 commit 64ac95c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cloud-controller-manager/do/loadbalancers_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
6570
func (f *fakeLBService) Create(ctx context.Context, lbr *godo.LoadBalancerRequest) (*godo.LoadBalancer, *godo.Response, error) {
6671
return f.createFn(ctx, lbr)
6772
}

0 commit comments

Comments
 (0)