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 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) Upload ¶
func (b *EtcdBackupV3) Upload() (int64, error)
Upload resulted etcd to S3.
func (*EtcdBackupV3) Version ¶
func (b *EtcdBackupV3) Version() string
Click to show internal directories.
Click to hide internal directories.