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
| 81 | // the latest secrets, and free to share any state between different |
| 82 | // instantiations as they deem fit. |
| 83 | type 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. |
| 93 | type KeyMaterial struct { |
no outgoing calls
no test coverage detected