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.
| 130 | // files and provides the most up-to-date key material for consumption by |
| 131 | // credentials implementation. |
| 132 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected