etcd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDial added in v1.1.0

type ClientDial func(url string) (etcdclient.EtcdClient, error)

ClientDial dials up an etcd client

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

Etcd and represents the data in a remote etcd server

func Dial

func Dial(etcdURI string, clientDial ClientDial) (*Etcd, error)

Dial creates a Etcd from the remote etcd server. Leave clientDial nil to use the default etcd client

func (*Etcd) KeyValuePairs

func (etcd *Etcd) KeyValuePairs(namespace string) ([]keyvalue.KeyValue, error)

KeyValuePairs returns a list key value pairs recursively under the namespace

func (*Etcd) Set

func (etcd *Etcd) Set(keyValue keyvalue.KeyValue) error

Set sets the keyValue on the remote Etcd

func (*Etcd) SetAll

func (etcd *Etcd) SetAll(keyValues []keyvalue.KeyValue) error

SetAll sets all keyValues on the remote Etcd

Jump to

Keyboard shortcuts

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