cluster

package
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdClient

func NewEtcdClient() *clientv3.Client

func SendRequest added in v0.0.69

func SendRequest(client *client.Http, user *authentication.User, URL string, data string) *contracts.Response

Types

type Cluster

type Cluster struct {
	Node       *node.Node
	Cluster    *node.Nodes
	Client     *client.Http
	EtcdClient *clientv3.Client
	KVStore    *raft.KVStore
	RaftNode   *raft.RaftNode
	Started    bool
}

func New

func New() *Cluster

func Restore

func Restore(config *configuration.Configuration) (*Cluster, error)

func (*Cluster) ConfigureFlannel

func (c *Cluster) ConfigureFlannel(network string) error

func (*Cluster) ListenEvents

func (c *Cluster) ListenEvents(agent string)

func (*Cluster) ListenObjects added in v0.0.69

func (c *Cluster) ListenObjects(agent string)

func (*Cluster) ListenUpdates added in v0.0.65

func (c *Cluster) ListenUpdates(agent string)

func (*Cluster) Regenerate added in v0.0.73

func (cluster *Cluster) Regenerate(config *configuration.Configuration, keys *keys.Keys)

func (*Cluster) StartSingleNodeEtcd

func (c *Cluster) StartSingleNodeEtcd(config *configuration.Configuration) (e *embed.Etcd, err error)

Jump to

Keyboard shortcuts

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