MCPcopy
hub / github.com/grpc/grpc-go / GetProvider

Function GetProvider

credentials/tls/certprovider/store.go:190–196  ·  view source on GitHub ↗

GetProvider is a convenience function to create a provider given the name, config and build options.

(name string, config any, opts BuildOptions)

Source from the content-addressed store, hash-verified

188// GetProvider is a convenience function to create a provider given the name,
189// config and build options.
190func GetProvider(name string, config any, opts BuildOptions) (Provider, error) {
191 bc, err := ParseConfig(name, config)
192 if err != nil {
193 return nil, err
194 }
195 return bc.Build(opts)
196}

Callers 2

NewBundleFunction · 0.92
createProviderFunction · 0.85

Calls 2

ParseConfigFunction · 0.70
BuildMethod · 0.65

Tested by 1

createProviderFunction · 0.68