discovery

package
v3.2.0-rc.0.0...-f0ca65a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package discovery provides an implementation of the cluster discovery that is used by etcd.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidURL           = errors.New("discovery: invalid URL")
	ErrBadSizeKey           = errors.New("discovery: size key is bad")
	ErrSizeNotFound         = errors.New("discovery: size key not found")
	ErrTokenNotFound        = errors.New("discovery: token not found")
	ErrDuplicateID          = errors.New("discovery: found duplicate id")
	ErrDuplicateName        = errors.New("discovery: found duplicate name")
	ErrFullCluster          = errors.New("discovery: cluster is full")
	ErrTooManyRetries       = errors.New("discovery: too many retries")
	ErrBadDiscoveryEndpoint = errors.New("discovery: bad discovery endpoint")
)

Functions

func GetCluster

func GetCluster(durl, dproxyurl string) (string, error)

GetCluster will connect to the discovery service at the given url and retrieve a string describing the cluster

func JoinCluster

func JoinCluster(durl, dproxyurl string, id types.ID, config string) (string, error)

JoinCluster will connect to the discovery service at the given url, and register the server represented by the given id and config to the cluster

func SRVGetCluster

func SRVGetCluster(name, dns string, apurls types.URLs) (string, error)

SRVGetCluster gets the cluster information via DNS discovery. TODO(barakmich): Currently ignores priority and weight (as they don't make as much sense for a bootstrap) Also sees each entry as a separate instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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