Documentation ¶
Overview ¶
Package peer implements the Peer type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdatePeer ¶
AddOrUpdatePeer adds/updates given peer in the store
func AddSelfDetails ¶
func AddSelfDetails()
AddSelfDetails function adds its own details into the central store
func GetInitialCluster ¶
GetInitialCluster() form and returns the etcd initial cluster value in a string
Types ¶
type ETCDConfig ¶
type ETCDConfig struct { PeerName string Name string InitialCluster string ClusterState string Client bool }
ETCDConfig represents the structure which holds the ETCD env variables & other configurations to be used to set at the remote peer & bring up the etcd instance
type Peer ¶
type Peer struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Addresses []string `json:"addresses"` Client bool `json:"client"` MemberID string `json:"memberID"` }
Peer reperesents a GlusterD
func GetPeerByName ¶
GetPeerByName returns the peer with the given name from store
type PeerAddRequest ¶
type PeerAddRequest struct { Addresses []string `json:"addresses"` Name string `json:"name,omitempty"` Client bool `json:"client,omitempty"` }
PeerAddRequest represents the structure to be added into the store
Click to show internal directories.
Click to hide internal directories.