(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver)
| 318 | } |
| 319 | |
| 320 | func (i *imlBalanceModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error { |
| 321 | releases, err := i.getBalances(ctx) |
| 322 | if err != nil { |
| 323 | return err |
| 324 | } |
| 325 | for _, p := range releases { |
| 326 | client, err := clientDriver.Dynamic(p.Resource) |
| 327 | if err != nil { |
| 328 | return err |
| 329 | } |
| 330 | err = client.Online(ctx, p) |
| 331 | if err != nil { |
| 332 | return err |
| 333 | } |
| 334 | } |
| 335 | return nil |
| 336 | } |
nothing calls this directly
no test coverage detected