github.com/caddyserver/caddy/v2/internal/testmocks
No package summary is available.
Package
Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Vars
var (
_ caddy.Module = dummyVerifier{}
_ caddytls.ClientCertificateVerifier = dummyVerifier{}
_ caddyfile.Unmarshaler = dummyVerifier{}
)
Types
dummyVerifier
This type doesn't have documentation.
type dummyVerifier struct{}
Functions
func (dummyVerifier) CaddyModule
CaddyModule implements caddy.Module.
func (dummyVerifier) CaddyModule() caddy.ModuleInfo {
return caddy.ModuleInfo{
ID: "tls.client_auth.verifier.dummy",
New: func() caddy.Module {
return new(dummyVerifier)
},
}
}
Cognitive complexity: 2
, Cyclomatic complexity: 1
func (dummyVerifier) UnmarshalCaddyfile
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (dummyVerifier) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
return nil
}
Cognitive complexity: 0
, Cyclomatic complexity: 1
func (dummyVerifier) VerifyClientCertificate
VerifyClientCertificate implements ClientCertificateVerifier.
func (dummyVerifier) VerifyClientCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
return nil
}
Cognitive complexity: 0
, Cyclomatic complexity: 1
Private functions
func init
init ()