etcd

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package etcd provides objects for creating an embedded etcd server process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAndTestEtcdClient added in v0.4.2

func GetAndTestEtcdClient(etcdURL string) (*etcdclient.Client, error)

getAndTestEtcdClient creates an etcd client based on the provided config and waits until etcd server is reachable. It errors out and exits if the server cannot be reached for a certain amount of time.

func NewOpenShiftEtcdHelper added in v0.4.2

func NewOpenShiftEtcdHelper(etcdURL string) (helper tools.EtcdHelper, err error)

newOpenShiftEtcdHelper returns an EtcdHelper for the provided arguments or an error if the version is incorrect.

Types

type Config

type Config struct {
	BindAddr     string
	PeerBindAddr string
	MasterAddr   string
	EtcdDir      string
}

Config is an object that can run an etcd server

func (*Config) Run

func (c *Config) Run()

Run starts an etcd server and runs it forever

Jump to

Keyboard shortcuts

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