319 func newHTTPSTransport(certFile, keyFile, caFile string) (*http.Transport, error) {
320 info := transport.TLSInfo{
321 CertFile: certFile,
322 KeyFile: keyFile,
323 CAFile: caFile,
324 }
325 cfg, err := info.ClientConfig()
unknown field 'CAFile' in struct literal of type "github.com/coreos/etcd/pkg/transport".
not found transport.TLSInfo in struct define
type TLSInfo struct {
CertFile string
KeyFile string
TrustedCAFile string
ClientCertAuth bool
CRLFile string
InsecureSkipVerify bool
// ServerName ensures the cert matches the given host in case of discovery / virtual hosting
ServerName string
// HandshakeFailure is optionally called when a connection fails to handshake. The
// connection will be closed immediately afterwards.
HandshakeFailure func(*tls.Conn, error)
selfCert bool
// parseFunc exists to simplify testing. Typically, parseFunc
// should be left nil. In that case, tls.X509KeyPair will be used.
parseFunc func([]byte, []byte) (tls.Certificate, error)
// AllowedCN is a CN which must be provided by a client.
AllowedCN string
// Logger logs TLS errors.
// If nil, all logs are discarded.
Logger *zap.Logger
}
323 TrustedCAFile: caFile,
build pass
unknown field 'CAFile' in struct literal of type "github.com/coreos/etcd/pkg/transport".
not found transport.TLSInfo in struct define
build pass