kubernetesk8s.io/kubernetes/pkg/storage/etcd/testing Index | Files | Directories

package testing

import "k8s.io/kubernetes/pkg/storage/etcd/testing"

Index

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

func NewUnsecuredEtcdTestClientServer

func NewUnsecuredEtcdTestClientServer(t *testing.T) *EtcdTestServer

NewUnsecuredEtcdTestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate

func (m *EtcdTestServer) Terminate(t *testing.T)

Terminate will shutdown the running etcd server

Source Files

utils.go

Directories

PathSynopsis
pkg/storage/etcd/testing/testingcert
Version
v1.4.0-beta.5
Published
Sep 15, 2016
Platform
js/wasm
Imports
19 packages
Last checked
16 minutes ago

Tools for package owners.