etcd

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backupper

type Backupper interface {
	Create() (string, error)
	Cleanup()
	Encrypt() (string, error)
	Version() string
}

type V2Backup

type V2Backup struct {
	Datadir string
	EncPass string
	Logger  micrologger.Logger
	Prefix  string
	// contains filtered or unexported fields
}

func NewV2Backup

func NewV2Backup(dataDir string, encPass string, logger micrologger.Logger, prefix string) V2Backup

func (V2Backup) Cleanup

func (b V2Backup) Cleanup()

Clear temporary directory.

func (V2Backup) Create

func (b V2Backup) Create() (string, error)

Create etcd in temporary directory, tar and compress.

func (V2Backup) Encrypt

func (b V2Backup) Encrypt() (string, error)

Encrypts the backup file.

func (V2Backup) Version

func (b V2Backup) Version() string

type V3Backup

type V3Backup struct {
	CACert    string
	Cert      string
	EncPass   string
	Endpoints string
	Logger    micrologger.Logger
	Key       string
	Prefix    string
	// contains filtered or unexported fields
}

func NewV3Backup

func NewV3Backup(caCert string, cert string, encPass string, endpoints string, logger micrologger.Logger, key string, prefix string) V3Backup

func (V3Backup) Cleanup

func (b V3Backup) Cleanup()

Cleanup clears temporary directory

func (V3Backup) Create

func (b V3Backup) Create() (string, error)

Create etcd in temporary directory.

func (V3Backup) Encrypt

func (b V3Backup) Encrypt() (string, error)

Encrypt backup.

func (V3Backup) Version

func (b V3Backup) Version() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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