etcd

package
v0.0.0-...-402c6be Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullBackup

func FullBackup(b BackupInterface) (error, *metrics.BackupMetrics)

Types

type BackupInterface

type BackupInterface interface {
	Create() error
	Encrypt() error
	Upload() (int64, error)
	Version() string
}

type EtcdBackupV2

type EtcdBackupV2 struct {
	Aws      config.AWSConfig
	Datadir  string
	EncPass  string
	Filename string
	Logger   micrologger.Logger
	Prefix   string
	TmpDir   string
}

func (*EtcdBackupV2) Create

func (b *EtcdBackupV2) Create() error

Create etcd in temporary directory, tar and compress.

func (*EtcdBackupV2) Encrypt

func (b *EtcdBackupV2) Encrypt() error

func (*EtcdBackupV2) Upload

func (b *EtcdBackupV2) Upload() (int64, error)

Upload resulted etcd to S3.

func (*EtcdBackupV2) Version

func (b *EtcdBackupV2) Version() string

type EtcdBackupV3

type EtcdBackupV3 struct {
	Aws       config.AWSConfig
	CACert    string
	Cert      string
	EncPass   string
	Endpoints string
	Filename  string
	Logger    micrologger.Logger
	Key       string
	Prefix    string
	TmpDir    string
}

func (*EtcdBackupV3) Create

func (b *EtcdBackupV3) Create() error

Create etcd in temporary directory.

func (*EtcdBackupV3) Encrypt

func (b *EtcdBackupV3) Encrypt() error

encrypt backup

func (*EtcdBackupV3) Upload

func (b *EtcdBackupV3) Upload() (int64, error)

Upload resulted etcd to S3.

func (*EtcdBackupV3) Version

func (b *EtcdBackupV3) Version() string

Jump to

Keyboard shortcuts

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