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

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
	// 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 (*EtcdTestServer) Terminate

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

Terminate will shutdown the running etcd server

Source Files

utils.go

Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
darwin/amd64
Imports
16 packages
Last checked
2 minutes ago

Tools for package owners.