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

Function NewProvider

credentials/tls/certprovider/pemfile/watcher.go:100–105  ·  view source on GitHub ↗

NewProvider returns a new certificate provider plugin that is configured to watch the PEM files specified in the passed in options.

(o Options)

Source from the content-addressed store, hash-verified

98// NewProvider returns a new certificate provider plugin that is configured to
99// watch the PEM files specified in the passed in options.
100func NewProvider(o Options) (certprovider.Provider, error) {
101 if err := o.validate(); err != nil {
102 return nil, err
103 }
104 return newProvider(o), nil
105}
106
107// newProvider is used to create a new certificate provider plugin after
108// validating the options, and hence does not return an error.

Callers 10

createProvidersFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
makeRootProviderFunction · 0.92
makeIdentityProviderFunction · 0.92
makeRootProviderFunction · 0.92
makeIdentityProviderFunction · 0.92
TestNewProviderMethod · 0.85
initializeProviderFunction · 0.85

Calls 2

newProviderFunction · 0.85
validateMethod · 0.45

Tested by 4

createProvidersFunction · 0.74
TestNewProviderMethod · 0.68
initializeProviderFunction · 0.68