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

Method delete

gateway/apinto/project.go:136–142  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

134}
135
136func (p *ProjectClient) delete(ctx context.Context, id string) error {
137 err := p.deleteByLabels(ctx, gateway.ProfessionRouter, map[string]string{"project": id})
138 if err != nil {
139 return err
140 }
141 return p.deleteByLabels(ctx, gateway.ProfessionService, map[string]string{"project": id})
142}
143func matchLabels[T any](ctx context.Context, client admin_client.Client, profession string, labels map[string]string, t ...[]*T) ([]*T, error) {
144 list, err := client.MatchLabels(ctx, profession, labels)
145 if err != nil {

Callers 2

OfflineMethod · 0.95
PluginSlotHubProviderFunction · 0.80

Calls 1

deleteByLabelsMethod · 0.95

Tested by

no test coverage detected