Skip to content

Commit 2fb4747

Browse files
committed
Add missing method ListByUUIDs
1 parent 64ac95c commit 2fb4747

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
@@ -45,6 +45,7 @@ type fakeLBService struct {
4545
getFn func(context.Context, string) (*godo.LoadBalancer, *godo.Response, error)
4646
listFn func(context.Context, *godo.ListOptions) ([]godo.LoadBalancer, *godo.Response, error)
4747
listByNamesFn func(context.Context, []string, *godo.ListOptions) ([]godo.LoadBalancer, *godo.Response, error)
48+
listByUUIDs func(context.Context, []string, *godo.ListOptions) ([]godo.LoadBalancer, *godo.Response, error)
4849
createFn func(context.Context, *godo.LoadBalancerRequest) (*godo.LoadBalancer, *godo.Response, error)
4950
updateFn func(ctx context.Context, lbID string, lbr *godo.LoadBalancerRequest) (*godo.LoadBalancer, *godo.Response, error)
5051
deleteFn func(ctx context.Context, lbID string) (*godo.Response, error)
@@ -67,6 +68,10 @@ func (f *fakeLBService) ListByNames(ctx context.Context, names []string, listOpt
6768
return f.listByNamesFn(ctx, names, listOpts)
6869
}
6970

71+
func (f *fakeLBService) ListByUUIDs(ctx context.Context, uuids []string, listOpts *godo.ListOptions) ([]godo.LoadBalancer, *godo.Response, error) {
72+
return f.listByUUIDs(ctx, uuids, listOpts)
73+
}
74+
7075
func (f *fakeLBService) Create(ctx context.Context, lbr *godo.LoadBalancerRequest) (*godo.LoadBalancer, *godo.Response, error) {
7176
return f.createFn(ctx, lbr)
7277
}

0 commit comments

Comments
 (0)