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

Method UpdateDefine

module/plugin-cluster/iml.go:28–34  ·  view source on GitHub ↗
(ctx context.Context, defines []*plugin_model.Define)

Source from the content-addressed store, hash-verified

26}
27
28func (m *imlPluginClusterModule) UpdateDefine(ctx context.Context, defines []*plugin_model.Define) error {
29 err := m.service.SaveDefine(ctx, defines)
30 if err != nil {
31 return err
32 }
33 return m.initAllCluster(ctx)
34}
35func (m *imlPluginClusterModule) initAllCluster(ctx context.Context) error {
36
37 clusters, err := m.clusterService.List(ctx)

Callers

nothing calls this directly

Calls 2

initAllClusterMethod · 0.95
SaveDefineMethod · 0.65

Tested by

no test coverage detected