func Test_buildClientCertificateManager(t *testing.T) { … }
func Test_buildClientCertificateManager_populateCertDir(t *testing.T) { … }
func getFileInfo(dir string) map[string]os.FileInfo { … }
type rotater …
func getCSR(req *http.Request) (*certapi.CertificateSigningRequest, error) { … }
func mustMarshal(obj interface{ … }
type csrSimulator …
func (s *csrSimulator) SetExpectUserAgent(a string) { … }
func (s *csrSimulator) ExpectUserAgent() string { … }
func (s *csrSimulator) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }
func genClientCert(t *testing.T, from, to time.Time) ([]byte, []byte) { … }