Documentation ¶
Index ¶
- func NewEtcdClient() *clientv3.Client
- type Cluster
- func (c *Cluster) Add(node *Node)
- func (c *Cluster) ConfigureFlannel(network string) error
- func (c *Cluster) ListenEvents()
- func (c *Cluster) Remove(node *Node)
- func (c *Cluster) Start(body io.ReadCloser)
- func (c *Cluster) StartSingleNodeEtcd(config *configuration.Configuration) (e *embed.Etcd, err error)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdClient ¶
Types ¶
type Cluster ¶
type Cluster struct { Node *Node Cluster []string EtcdClient *clientv3.Client KVStore *raft.KVStore RaftNode *raft.RaftNode }
func Restore ¶
func Restore(config *configuration.Configuration) (*Cluster, error)
func (*Cluster) ConfigureFlannel ¶
func (*Cluster) ListenEvents ¶
func (c *Cluster) ListenEvents()
func (*Cluster) Start ¶
func (c *Cluster) Start(body io.ReadCloser)
func (*Cluster) StartSingleNodeEtcd ¶
func (c *Cluster) StartSingleNodeEtcd(config *configuration.Configuration) (e *embed.Etcd, err error)
Click to show internal directories.
Click to hide internal directories.