etcdutils

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishEtcd added in v0.12.0

func PublishEtcd(t *testing.T, ecli *EtcdHandle)

PublishEtcd sets canonical etcd values into a test etcd instance.

func SetEtcd added in v0.12.0

func SetEtcd(t *testing.T, keys []string, values []string, c *etcd.Client)

SetEtcd sets an array of values into a test etcd instance.

Types

type EtcdHandle

type EtcdHandle struct {
	Dirs []string
	Keys []string
	C    *etcd.Client
}

EtcdHandle is used to set keys and values in a test etcd instance.

func InitEtcd added in v0.12.0

func InitEtcd(setdir, setkeys []string, port string) *EtcdHandle

InitEtcd configures a test etcd instance.

Jump to

Keyboard shortcuts

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