Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue #340

Open
xiang193 opened this issue Apr 28, 2018 · 0 comments
Open

build issue #340

xiang193 opened this issue Apr 28, 2018 · 0 comments

Comments

@xiang193
Copy link

xiang193 commented Apr 28, 2018

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                 CAFile:   caFile,
323                  TrustedCAFile:   caFile,

build pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant