etcd: go.etcd.io/etcd/etcdserver/api/v2discovery Index | Files

package v2discovery

import "go.etcd.io/etcd/etcdserver/api/v2discovery"

Package v2discovery provides an implementation of the cluster discovery that is used by etcd with v2 client.

Index

Package Files

discovery.go

Variables

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")
)

func GetCluster Uses

func GetCluster(lg *zap.Logger, 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 Uses

func JoinCluster(lg *zap.Logger, 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

Package v2discovery imports 17 packages (graph) and is imported by 19 packages. Updated 2018-08-29. Refresh now. Tools for package owners.