func (info TlsInlineCertKey) ClientConfigInlineCertKey() (*tls.Config, error) {
	var cfg *tls.Config
	var err error
	if info.Cert == "" || info.Key == "" {
		return nil, fmt.Errorf("Certificate and Key must both be present inline.")
	}
	if info.Cert != "" && info.Key != "" {
		cfg, err = info.baseCertConfig()
		if err != nil {
			return nil, err
		}
	}
	if info.CACert != "" {
		cfg.RootCAs, err = newCertPool(info.CACert)
		if err != nil {
			return nil, err
		}
	}
	return cfg, nil
}
ClientConfigInlineCertKey() returns a pointer to tls.Config struct object with certificate data
for client creation using only the inline certificate, key and CA certificate data.
package etcdv3
import (
	"crypto/tls"
	"crypto/x509"
	"encoding/pem"
	"fmt"
)
type TlsInlineCertKey struct {
	Cert   string
	Key    string
	CACert string
}