etcd

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugString

func DebugString(o interface{}) string

Types

type EtcdClusterSpec

type EtcdClusterSpec struct {
	// ClusterKey is a key that identifies the etcd cluster (main or events)
	ClusterKey string `json:"clusterKey,omitempty"`
	// NodeName is my nodename in the cluster
	NodeName string `json:"nodeName,omitempty"`
	// NodeNames is a collection of node members in the cluster
	NodeNames []string `json:"nodeNames,omitempty"`
}

EtcdClusterSpec is configuration for the etcd cluster

func ParseEtcdClusterSpec

func ParseEtcdClusterSpec(clusterKey, v string) (*EtcdClusterSpec, error)

ParseEtcdClusterSpec parses a tag on a volume that encodes an etcd cluster role The format is "<myname>/<allnames>", e.g. "node1/node1,node2,node3"

func (*EtcdClusterSpec) String

func (e *EtcdClusterSpec) String() string

String returns a string representation of the EtcdClusterSpec

Jump to

Keyboard shortcuts

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