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

Struct fakeProvider

credentials/xds/xds_client_test.go:187–190  ·  credentials/xds/xds_client_test.go::fakeProvider

fakeProvider is an implementation of the certprovider.Provider interface which returns the configured key material and error in calls to KeyMaterial().

Source from the content-addressed store, hash-verified

185// which returns the configured key material and error in calls to
186// KeyMaterial().
187type fakeProvider struct {
188 km *certprovider.KeyMaterial
189 err error
190}
191
192func (f *fakeProvider) KeyMaterial(context.Context) (*certprovider.KeyMaterial, error) {
193 return f.km, f.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected