testing

package
v0.28.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(in string) string

AddPrefix adds the ETCD_PREFIX to the provided key

func PathPrefix

func PathPrefix() string

PathPrefix returns the prefix set via the ETCD_PREFIX environment variable (if any).

Types

type EtcdTestServer

type EtcdTestServer struct {
	V3Client *clientv3.Client
}

EtcdTestServer encapsulates the datastructures needed to start local instance for testing

func NewUnsecuredEtcd3TestClientServer

func NewUnsecuredEtcd3TestClientServer(t *testing.T) (*EtcdTestServer, *storagebackend.Config)

NewUnsecuredEtcd3TestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL