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
Types ¶
type Peer ¶
type Peer struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Addresses []string `json:"addresses"` }
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"` }
PeerAddRequest represents the structure to be added into the store
Click to show internal directories.
Click to hide internal directories.