(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver)
| 665 | } |
| 666 | |
| 667 | func (i *imlLocalModel) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error { |
| 668 | releases, err := i.getLocalModels(ctx, "") |
| 669 | if err != nil { |
| 670 | return err |
| 671 | } |
| 672 | |
| 673 | for _, p := range releases { |
| 674 | client, err := clientDriver.Dynamic(p.Resource) |
| 675 | if err != nil { |
| 676 | return err |
| 677 | } |
| 678 | err = client.Online(ctx, p) |
| 679 | if err != nil { |
| 680 | return err |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | return nil |
| 685 | } |
nothing calls this directly
no test coverage detected