MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Options

Method Options

service/plugin-cluster/iml.go:143–157  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

141}
142
143func (i *imlPluginService) Options(ctx context.Context) []*PluginOption {
144 list, err := i.defineStore.List(ctx, map[string]interface{}{
145 "kind": plugin_model.OpenKind,
146 })
147 if err != nil {
148 return nil
149 }
150 return utils.SliceToSlice(list, func(s *plugin.Define) *PluginOption {
151 return &PluginOption{
152 Cname: s.Cname,
153 Desc: s.Description,
154 Name: s.Name,
155 }
156 })
157}
158
159func (i *imlPluginService) SetCluster(ctx context.Context, clusterId string, name string, status plugin_model.Status, config plugin_model.ConfigType) error {
160 operator := utils.UserId(ctx)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected