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

Method initGateway

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

Source from the content-addressed store, hash-verified

665}
666
667func (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}

Callers

nothing calls this directly

Calls 3

getLocalModelsMethod · 0.95
DynamicMethod · 0.65
OnlineMethod · 0.65

Tested by

no test coverage detected