etcd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

Etcd Backup

func New

func New(log *zap.SugaredLogger, datadir, caCert, cert, key, endpoints, name string) *Etcd

New instantiates a new etcd database

func (*Etcd) Backup

func (db *Etcd) Backup() error

Backup takes a full Backup of etcd with etcdctl.

func (*Etcd) Check

func (db *Etcd) Check() (bool, error)

Check checks whether a backup needs to be restored or not, returns true if it needs a backup

func (*Etcd) Probe

func (db *Etcd) Probe() error

Probe figures out if the database is running and available for taking backups.

func (*Etcd) Recover

func (db *Etcd) Recover() error

Recover restores a database backup

func (*Etcd) Upgrade added in v0.7.0

func (db *Etcd) Upgrade() error

Upgrade performs an upgrade of the database in case a newer version of the database is detected.

Jump to

Keyboard shortcuts

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