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

Interface Provider

credentials/tls/certprovider/provider.go:83–90  ·  credentials/tls/certprovider/provider.go::Provider

Provider makes it possible to keep channel credential implementations up to date with secrets that they rely on to secure communications on the underlying channel. Provider implementations are free to rely on local or remote sources to fetch the latest secrets, and free to share any state between d

Source from the content-addressed store, hash-verified

81// the latest secrets, and free to share any state between different
82// instantiations as they deem fit.
83type Provider interface {
84 // KeyMaterial returns the key material sourced by the Provider.
85 // Callers are expected to use the returned value as read-only.
86 KeyMaterial(ctx context.Context) (*KeyMaterial, error)
87
88 // Close cleans up resources allocated by the Provider.
89 Close()
90}
91
92// KeyMaterial wraps the certificates and keys returned by a Provider instance.
93type KeyMaterial struct {

Callers 1

CloseMethod · 0.85

Implementers 7

closedProvidercredentials/tls/certprovider/store.go
singleCloseWrappedProvidercredentials/tls/certprovider/store.go
watchercredentials/tls/certprovider/pemfile/w
fakeProvidercredentials/xds/xds_client_test.go
fakeProvidersecurity/advancedtls/advancedtls_test.
systemRootCertsProviderinternal/xds/balancer/clusterimpl/clus
failingProviderinternal/xds/bootstrap/tlscreds/bundle

Calls

no outgoing calls

Tested by

no test coverage detected