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

Method initAllCluster

module/plugin-cluster/iml.go:35–49  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

33 return m.initAllCluster(ctx)
34}
35func (m *imlPluginClusterModule) initAllCluster(ctx context.Context) error {
36
37 clusters, err := m.clusterService.List(ctx)
38 if err != nil {
39 return err
40 }
41
42 for _, c := range clusters {
43 err := m.initCluster(ctx, c.Uuid)
44 if err != nil {
45 log.Warn("init cluster:%s %s", c.Name, err.Error())
46 }
47 }
48 return nil
49}
50func (m *imlPluginClusterModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error {
51 configForPartitions, err := m.service.ListCluster(ctx, clusterId)
52 if err != nil {

Callers 1

UpdateDefineMethod · 0.95

Calls 2

initClusterMethod · 0.95
ListMethod · 0.65

Tested by

no test coverage detected