discovery

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package discovery implements discovery mechanism for etcd clusters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	ConfigFile                string
	Platform                  string
	ClientPort                int
	ServerPort                int
	ClientScheme              string
	ServerScheme              string
	MaxTries                  int
	ProxyMode                 bool
	MasterFilter              string
	MasterCount               int
	DryRun                    bool
	IgnoreNamingMismatch      bool
	MinUptimeToJoin           time.Duration
	MaxWaitForExpectedMasters time.Duration
}

Discovery provides correct startup details for etcd with respect to known vs. expected cluster membership

func (*Discovery) DiscoverEnvironment

func (d *Discovery) DiscoverEnvironment() (map[string]string, error)

DiscoverEnvironment produces an environment hash

Jump to

Keyboard shortcuts

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