etcd

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 18 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 {
	EncPass   string
	Endpoints string
	Logger    micrologger.Logger
	Prefix    string
	// contains filtered or unexported fields
}

func NewV3Backup

func NewV3Backup(tlsConfig *tls.Config, p *proxy.Proxy, encPass string, endpoints string, logger micrologger.Logger, prefix string) (V3Backup, error)

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
Package proxy implements kubeadm proxy functionality.
Package proxy implements kubeadm proxy functionality.

Jump to

Keyboard shortcuts

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