mysql

package
v0.0.15 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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBackup

func CreateBackup(e exec.Executor, cfHome string, instance cf.ServiceInstance) flow.StepFunc

func DownloadBackup

func DownloadBackup(e exec.Executor, instance *cf.ServiceInstance, downloader s3.ObjectDownloader, dateTimeExtractor BackupDateTimeExtractor, idExtractor BackupIDExtractor, fso sio.FileSystemOperations, exportDir string) flow.StepFunc

func GetBackupStatus

func GetBackupStatus(e exec.Executor, cfHome string, instance cf.ServiceInstance, timeout time.Duration, pause time.Duration) flow.StepFunc

func GetLatestBackup

func GetLatestBackup(e exec.Executor, cfHome string, instance cf.ServiceInstance) flow.StepFunc

func InstallADBRPlugin

func InstallADBRPlugin(e exec.Executor, cfHome string) flow.StepFunc

func NewExportSequence

func NewExportSequence(api, org, space string, instance *cf.ServiceInstance, om config.OpsManager, downloader s3.ObjectDownloader, executor exec.Executor, exportDir string) flow.Flow

func NewImportSequence

func NewImportSequence(api, org, space string, instance *cf.ServiceInstance, om config.OpsManager, executor exec.Executor) flow.Flow

func RestoreBackup

func RestoreBackup(e exec.Executor, om config.OpsManager, instance *cf.ServiceInstance) flow.StepFunc

func RetrieveEncryptionKey

func RetrieveEncryptionKey(e exec.Executor, om config.OpsManager, instance *cf.ServiceInstance, encryptionKeyExtractor EncryptionKeyExtractor) flow.StepFunc

func TransferBackup

func TransferBackup(e exec.Executor, om config.OpsManager, instance *cf.ServiceInstance) flow.StepFunc

Types

type BackupDateTimeExtractor

type BackupDateTimeExtractor func(s string) (string, string, error)

type BackupFilenameExtractor

type BackupFilenameExtractor func(s string) (string, error)

type BackupIDExtractor

type BackupIDExtractor func(s string) (string, error)

type EncryptionKeyExtractor

type EncryptionKeyExtractor func(s string) (string, error)

type Migrator

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

func NewMigrator

func NewMigrator(flow flow.Flow, mr config.MigrationReader) *Migrator

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context) (*cf.ServiceInstance, error)

func (*Migrator) Validate

func (m *Migrator) Validate(*cf.ServiceInstance, bool) error

Directories

Path Synopsis
s3
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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