MCPcopy
hub / github.com/vulcand/vulcand / Stapler

Interface Stapler

stapler/stapler.go:28–39  ·  view source on GitHub ↗

Stapler is an interface for the OCSP staple cache implementations

Source from the content-addressed store, hash-verified

26
27// Stapler is an interface for the OCSP staple cache implementations
28type 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
42type StaplerOption func(s *stapler)

Callers 24

TestOCSPStaplingMethod · 0.65
ocspStapleToCertFunction · 0.65
TestCRUDMethod · 0.65
TestUpdateSettingsMethod · 0.65
TestStapleReplacedMethod · 0.65
TestFanOutUnsubscribeMethod · 0.65
processChangeFunction · 0.65
TestCRUDMethod · 0.65
initMethod · 0.65

Implementers 1

staplerstapler/stapler.go

Calls

no outgoing calls

Tested by

no test coverage detected