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

Struct watcher

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

watcher is a certificate provider plugin that implements the certprovider.Provider interface. It watches a set of certificate and key files and provides the most up-to-date key material for consumption by credentials implementation.

Source from the content-addressed store, hash-verified

130// files and provides the most up-to-date key material for consumption by
131// credentials implementation.
132type watcher struct {
133 identityDistributor distributor
134 rootDistributor distributor
135 opts Options
136 certFileContents []byte
137 keyFileContents []byte
138 rootFileContents []byte
139 spiffeBundleMapFileContents []byte
140 cancel context.CancelFunc
141}
142
143// distributor wraps the methods on certprovider.Distributor which are used by
144// the plugin. This is very useful in tests which need to know exactly when the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected