MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / NewClient

Function NewClient

internal/cnpi/plugin/client/create.go:33–36  ·  view source on GitHub ↗

NewClient creates a new CNPI client

(ctx context.Context, enabledPlugin *stringset.Data)

Source from the content-addressed store, hash-verified

31
32// NewClient creates a new CNPI client
33func NewClient(ctx context.Context, enabledPlugin *stringset.Data) (Client, error) {
34 cli, err := innerNewClient(ctx, enabledPlugin)
35 return cli, wrapAsPluginErrorIfNeeded(err)
36}
37
38func innerNewClient(ctx context.Context, enabledPlugin *stringset.Data) (Client, error) {
39 contextLogger := log.FromContext(ctx)

Callers

nothing calls this directly

Calls 2

innerNewClientFunction · 0.85

Tested by

no test coverage detected