raft join tls (#6932)

This commit is contained in:
Vishal Nayak
2019-06-21 17:41:07 -04:00
committed by GitHub
parent ab2abca8c5
commit c356df69a1
3 changed files with 73 additions and 14 deletions

View File

@@ -15,9 +15,11 @@ type RaftJoinResponse struct {
// RaftJoinRequest represents the parameters consumed by the raft join API
type RaftJoinRequest struct {
LeaderAddr string `json:"leader_api_addr"`
CACert string `json:"ca_cert":`
Retry bool `json:"retry"`
LeaderAPIAddr string `json:"leader_api_addr"`
LeaderCACert string `json:"leader_ca_cert":`
LeaderClientCert string `json:"leader_client_cert"`
LeaderClientKey string `json:"leader_client_key"`
Retry bool `json:"retry"`
}
// RaftJoin adds the node from which this call is invoked from to the raft