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

Function newRegisterClient

plugin/register.go:37–44  ·  view source on GitHub ↗
(c *http.Client, pluginName string, config Config, timeout time.Duration)

Source from the content-addressed store, hash-verified

35}
36
37func newRegisterClient(c *http.Client, pluginName string, config Config, timeout time.Duration) *registerClient {
38 return &registerClient{
39 engineClient: pluginsv1connect.NewRegisterServiceClient(c, "http://unix"),
40 pluginName: pluginName,
41 config: config,
42 timeout: timeout,
43 }
44}
45
46func (c *registerClient) register(ctx context.Context) (*runtimeConfig, error) {
47 c.config.Logger.Printf("Registering plugin %s...", c.pluginName)

Callers 1

doRegisterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected