MCPcopy Create free account
hub / github.com/docker/secrets-engine / DisablePlugin

Method DisablePlugin

client/client.go:284–292  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

282}
283
284func (c client) DisablePlugin(ctx context.Context, name string) error {
285 r := pluginsv1.DisablePluginRequest_builder{}.Build()
286 r.SetName(name)
287 _, err := c.engineClient.DisablePlugin(ctx, connect.NewRequest(r))
288 if isDialError(err) {
289 return fmt.Errorf("%w: %w", ErrSecretsEngineNotAvailable, err)
290 }
291 return err
292}
293
294type PluginInfo struct {
295 Name api.Name

Callers

nothing calls this directly

Calls 5

isDialErrorFunction · 0.85
DisablePluginMethod · 0.65
ErrorfMethod · 0.65
BuildMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected