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

Method Set

module/plugin-cluster/iml.go:152–160  ·  view source on GitHub ↗
(ctx context.Context, clusterId string, name string, config *dto.PluginSetting)

Source from the content-addressed store, hash-verified

150}
151
152func (m *imlPluginClusterModule) Set(ctx context.Context, clusterId string, name string, config *dto.PluginSetting) error {
153
154 err := m.service.SetCluster(ctx, clusterId, name, config.Status, config.Config)
155 if err != nil {
156 return err
157 }
158
159 return m.initCluster(ctx, clusterId)
160}
161
162func (m *imlPluginClusterModule) initCluster(ctx context.Context, clusterId string) error {
163 client, err := m.clusterService.GatewayClient(ctx, clusterId)

Callers

nothing calls this directly

Calls 2

initClusterMethod · 0.95
SetClusterMethod · 0.65

Tested by

no test coverage detected