backup

package
v0.0.0-...-18e7589 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const GCSSequenceFileToBigtableTemplatePath = "gs://dataflow-templates/latest/GCS_SequenceFile_to_Cloud_Bigtable"

Variables

This section is empty.

Functions

func CreateBackup

func CreateBackup(config *CreateBackupConfig) error

CreateBackup creates the backup.

func DeleteBackup

func DeleteBackup(config *DeleteBackupConfig) error

DeleteBackup deletes the backups.

func ListBackups

func ListBackups(config *ListBackupConfig) (map[string][]int64, error)

ListBackups lists the available backups. It returns a map from the tableID to the backup timestamps for that table.

func RestoreBackup

func RestoreBackup(config *RestoreBackupConfig) error

RestoreBackup restores the backups.

Types

type CreateBackupConfig

type CreateBackupConfig struct {
	BigtableProjectID     string
	BigtableInstanceID    string
	BigtableTableIDPrefix string
	DestinationPath       string
	TempPrefix            string
	JobLocation           string
}

CreateBackupConfig is the config for CreateBackup command.

func RegisterCreateBackupFlags

func RegisterCreateBackupFlags(cmd *kingpin.CmdClause) *CreateBackupConfig

RegisterCreateBackupFlags registers the flags for CreateBackup command.

type DeleteBackupConfig

type DeleteBackupConfig struct {
	BigtableTableID string
	BackupPath      string
	BackupTimestamp string
}

DeleteBackupConfig has the config to delete the backups.

func RegisterDeleteBackupsFlags

func RegisterDeleteBackupsFlags(cmd *kingpin.CmdClause) *DeleteBackupConfig

RegisterDeleteBackupsFlags registers the flags for DeleteBackup command.

type ListBackupConfig

type ListBackupConfig struct {
	BackupPath   string
	OutputFormat string
}

ListBackupConfig has the config for ListBackup command.

func RegisterListBackupsFlags

func RegisterListBackupsFlags(cmd *kingpin.CmdClause) *ListBackupConfig

RegisterListBackupsFlags registers the flags for list backups.

type RestoreBackupConfig

type RestoreBackupConfig struct {
	BackupPath         string
	BigtableProjectID  string
	BigtableInstanceID string
	BigtableTableID    string
	TempPrefix         string
	BackupTimestamp    int64
}

RestoreBackupConfig is the config for RestoreBackup command.

func RegisterRestoreBackupsFlags

func RegisterRestoreBackupsFlags(cmd *kingpin.CmdClause) *RestoreBackupConfig

RegisterRestoreBackupsFlags registers the flags for RestoreBackup command.

Jump to

Keyboard shortcuts

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