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

Method GetSecrets

plugin/resolver.go:37–46  ·  view source on GitHub ↗
(ctx context.Context, c *connect.Request[resolverv1.GetSecretsRequest])

Source from the content-addressed store, hash-verified

35}
36
37func (r *resolverService) GetSecrets(ctx context.Context, c *connect.Request[resolverv1.GetSecretsRequest]) (*connect.Response[resolverv1.GetSecretsResponse], error) {
38 select {
39 case <-r.setupCompleted:
40 case <-ctx.Done():
41 return nil, connect.NewError(connect.CodeInternal, errors.New("context cancelled while waiting for registration"))
42 case <-time.After(r.registrationTimeout):
43 return nil, connect.NewError(connect.CodeDeadlineExceeded, fmt.Errorf("registration incomplete (timeout after %s)", r.registrationTimeout))
44 }
45 return r.handler.GetSecrets(ctx, c)
46}

Callers 1

Calls 2

ErrorfMethod · 0.65
GetSecretsMethod · 0.65

Tested by 1