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

Method EnablePlugin

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

Source from the content-addressed store, hash-verified

272}
273
274func (c client) EnablePlugin(ctx context.Context, name string) error {
275 r := pluginsv1.EnablePluginRequest_builder{}.Build()
276 r.SetName(name)
277 _, err := c.engineClient.EnablePlugin(ctx, connect.NewRequest(r))
278 if isDialError(err) {
279 return fmt.Errorf("%w: %w", ErrSecretsEngineNotAvailable, err)
280 }
281 return err
282}
283
284func (c client) DisablePlugin(ctx context.Context, name string) error {
285 r := pluginsv1.DisablePluginRequest_builder{}.Build()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected