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

Method GetDefine

service/plugin-cluster/iml.go:85–94  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

83}
84
85func (i *imlPluginService) GetDefine(ctx context.Context, name string) (*PluginDefine, error) {
86 define, err := i.defineStore.First(ctx, map[string]interface{}{
87 "name": name,
88 })
89 if err != nil {
90 return nil, err
91 }
92 return FromEntity(define), nil
93
94}
95
96func (i *imlPluginService) GetConfig(ctx context.Context, clusterId string, name string) (*Config, *PluginDefine, error) {
97

Callers

nothing calls this directly

Calls 1

FromEntityFunction · 0.70

Tested by

no test coverage detected