MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / initGateway

Method initGateway

module/ai/iml.go:744–762  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver)

Source from the content-addressed store, hash-verified

742}
743
744func (i *imlProviderModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error {
745 providers, err := i.getAiProviders(ctx)
746 if err != nil {
747 return err
748 }
749
750 for _, p := range providers {
751 client, err := clientDriver.Dynamic(p.Resource)
752 if err != nil {
753 return err
754 }
755 err = client.Online(ctx, p)
756 if err != nil {
757 return err
758 }
759 }
760
761 return nil
762}
763
764func (i *imlProviderModule) syncGateway(ctx context.Context, clusterId string, releases []*gateway.DynamicRelease, online bool) error {
765 client, err := i.clusterService.GatewayClient(ctx, clusterId)

Callers

nothing calls this directly

Calls 3

getAiProvidersMethod · 0.95
DynamicMethod · 0.65
OnlineMethod · 0.65

Tested by

no test coverage detected