remove list

This commit is contained in:
Jesse Haka 2022-02-03 21:06:09 +02:00
parent d3fac0c1be
commit 6aeccc1c9e
1 changed files with 0 additions and 18 deletions

View File

@ -125,24 +125,6 @@ func (c *targetPoolClient) List(ctx context.Context, project, region string) ([]
return l, nil return l, nil
} }
func (c *targetPoolClient) List(ctx context.Context, project, region string) ([]*compute.TargetPool, error) {
c.Lock()
defer c.Unlock()
regions, ok := c.targetPools[project]
if !ok {
return nil, nil
}
tps, ok := regions[region]
if !ok {
return nil, nil
}
var l []*compute.TargetPool
for _, tp := range tps {
l = append(l, tp)
}
return l, nil
}
func (c *targetPoolClient) AddHealthCheck(project, region, name string, req *compute.TargetPoolsAddHealthCheckRequest) (*compute.Operation, error) { func (c *targetPoolClient) AddHealthCheck(project, region, name string, req *compute.TargetPoolsAddHealthCheckRequest) (*compute.Operation, error) {
// TODO: AddHealthCheck test // TODO: AddHealthCheck test
return doneOperation(), nil return doneOperation(), nil