etcdutils

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package etcdutils helps test interactions with etcd.

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.

func SetSingle added in v0.13.0

func SetSingle(t *testing.T, key string, value string, port string)

SetSingle sets a key and value into a test etcd instance.

func VerifyEtcdKey added in v0.13.0

func VerifyEtcdKey(t *testing.T, key string, port string)

VerifyEtcdKey verifies that an etcd key exists.

func VerifyEtcdValue added in v0.13.0

func VerifyEtcdValue(t *testing.T, key string, expectedValue string, port string)

VerifyEtcdValue verifies the value of an etcd key.

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