Documentation
¶
Index ¶
Constants ¶
View Source
const CAFileContent = `` /* 1104-byte string literal not displayed */
You can use cfssl tool to generate certificates, please refer https://github.com/coreos/etcd/tree/master/hack/tls-setup for more details.
View Source
const CertFileContent = `` /* 1043-byte string literal not displayed */
View Source
const KeyFileContent = `` /* 289-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdTestServer ¶
type EtcdTestServer struct {
etcdserver.ServerConfig
PeerListeners, ClientListeners []net.Listener
Client etcd.Client
CertificatesDir string
CertFile string
KeyFile string
CAFile string
// contains filtered or unexported fields
}
EtcdTestServer encapsulates the datastructures needed to start local instance for testing
func NewEtcdTestClientServer ¶
func NewEtcdTestClientServer(t *testing.T) *EtcdTestServer
NewEtcdTestClientServer creates a new client and server for testing
Click to show internal directories.
Click to hide internal directories.