Documentation ¶
Index ¶
- Constants
- func CreateBackup(config *CreateBackupConfig) error
- func DeleteBackup(config *DeleteBackupConfig) error
- func ListBackups(config *ListBackupConfig) (map[string][]int64, error)
- func RestoreBackup(config *RestoreBackupConfig) error
- type CreateBackupConfig
- type DeleteBackupConfig
- type ListBackupConfig
- type RestoreBackupConfig
Constants ¶
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 ¶
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 ¶
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.