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