etcdtest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2013 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Responses map[string][]*etcd.Response
}

Client represents a fake etcd client. Used for testing.

func NewClient

func NewClient() *Client

NewClient returns a fake etcd client.

func (*Client) AddResponse

func (c *Client) AddResponse(key string, response []*etcd.Response)

AddResponses adds or updates the Client.Responses map.

func (*Client) Get

func (c *Client) Get(key string) ([]*etcd.Response, error)

Get mimics the etcd.Client.Get() method.

Jump to

Keyboard shortcuts

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