Stapler is an interface for the OCSP staple cache implementations
| 26 | |
| 27 | // Stapler is an interface for the OCSP staple cache implementations |
| 28 | type Stapler interface { |
| 29 | // HasHost returns true if Stapler holds the response in cache |
| 30 | HasHost(host engine.HostKey) bool |
| 31 | // StapleHost returns the relevant StapleResponse, or error in case if response is unavailable |
| 32 | StapleHost(host *engine.Host, opts ...StapleHostOption) (*StapleResponse, error) |
| 33 | // DeleteHost deletes any OCSP data associated with the host entry |
| 34 | DeleteHost(host engine.HostKey) |
| 35 | // Subscribe subscribes the channel to the series of OCSP updates |
| 36 | Subscribe(chan *StapleUpdated, chan struct{}) |
| 37 | // Close closes all subscription activities and deallocate internal resources |
| 38 | Close() error |
| 39 | } |
| 40 | |
| 41 | // StaplerOption is used for optional parameters for the New function |
| 42 | type StaplerOption func(s *stapler) |
no outgoing calls
no test coverage detected